/*
Theme Name: SRPA
Text Domain: srpa
*/

/* 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: #253D91;
    --darker: #092453;
    --secondary: #BACE0D;
    --yellow: #EFAC08;
    --lightblue: #53B2E5;
    --red: #E4032F;
    --mw: 1200px;
    --ratio: 1.61;
}
html {
    font-size: 20px;
}
body {
    color: var(--primary);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

::selection {
    background-color: var(--secondary);
    color: #fff;
}

/* TYPE */

p {
    font-size: 1rem;
    line-height: var(--ratio);
    margin-bottom: 1.62rem;
    font-weight: 200;
}

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

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

h1 {
    /* font-size: calc(2 * var(--ratio) * 1rem); */
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.2;
}

h2 {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 1rem;
    font-weight: 500;
}

.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: 2rem 0;
}

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

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

.col-50 {
    width: 50%;
}

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

    .ctn {
        padding: 0 1rem;
    }

    .hero .ctn {

    }

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

    .page-template-page-fiche-animal .fw {
        flex-direction: column-reverse;
    }

    .col-50 {
        width: 100%;
    }
 }

/* COMPONENTS */

button,.btn, .wp-block-button__link, input.wpcf7-form-control.wpcf7-submit.has-spinner,.wp-block-file__button {
    background: var(--secondary);
    color: white;
    font-weight: 500;
    padding: .65rem 1.3rem;
    border-radius: 2rem;
    border: none;
    transition: all .5s;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover, .wp-block-button__link:hover, input.wpcf7-form-control.wpcf7-submit.has-spinner:hover, .wp-block-file__button:hover {
    background: #a3b50a;
    color: white;
}

/* HEADER */

header {
    background: var(--primary);
    color: white;
    padding: calc(var(--ratio) * .5rem) 0;
    position: relative;
    z-index: 20;
}

header .ctn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 19;
    position: relative;
}

.hero {
    min-height: 20rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 0 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: -6%;
    top: -3rem;
    /* aspect-ratio: 1 / 1; */
    width: clamp(30rem, 50vw, 40rem);
    background: var(--lightblue);
    border-radius: 100%;
    z-index: -2;
}

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

header a {
    color: white;
}

header img {
    width: 10rem;
}

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) {

    .hero__image {
    position: absolute;
    right: auto;
    top: -3rem;
    width: clamp(18rem, 50vw, 40rem);
    background: var(--lightblue);
    border-radius: 100%;
    z-index: -2;
    left: -9%;
    opacity: 0.6;

    }

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

/* 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;
    cursor: pointer;
}


.topbar__block:hover {
    color: var(--secondary);
}

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

/* Styles de base pour le dialog */
#infoDialog {
    position: absolute;
    background: white;
    color: var(--primary);
    top: 2rem;
    padding: 2rem;
    box-shadow: 0 5px 88px rgba(0, 0, 0, 0.2);
    z-index: 22;
    border-radius: 1rem;
    display: none;
    gap: 2rem;

}

.dialog__close {
    position: absolute;
    top: 0.4rem;
    right: 1rem;
    font-size: 1.3rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
    padding: 0;
}

.dialog__close:hover {
background: none;
color: var(--secondary);
}

.dialog__content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    flex: 1;
}

.dialog__content p {
    text-transform: none;
    font-size: .75rem;
    margin-bottom: .25rem;
}

.dialog__content p strong {
    margin-bottom: .25rem;
}

.dialog__title {
    margin-bottom: 0.45rem;
    text-transform: none;
    font-size: 0.8rem;
}

span.dialog__tag {
    color: #1F6142;
    font-weight: 600;
    font-size: 0.7em;
    margin-left: 0.25rem;
    padding: .25em 0.7em;
    background: #E8FDF1;
    border-radius: 20.5em;
}

span.dialog__tag.closed {
    background: #ff000020;
    color: red;
}

.dialog__image {
    /* max-width: 100%; */
    /* margin-top: 15px; */
    /* border-radius: 5px; */
    max-width: 7.7rem;
    transform: translateY(6px);
    aspect-ratio: 1.5;
    object-fit: cover;
    border-radius: .5rem;
}


.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 ul {
    list-style-type: none;
    display: flex;
    gap: 1rem;
}

nav ul a {
    text-decoration: none;
}

.current-menu-item a {
    color: var(--secondary);
}


ul.sub-menu {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: var(--secondary);
    color: white;
    padding: .5rem 1rem;
    margin-top: .5rem;
    position: absolute;
    display:none;
    border-radius: .4rem;
}

ul.sub-menu a:hover {
    color: var(--primary);
}

.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    /* line-height: 7px; */
    transition: transform 0.15s ease;
    height : 0;
    width : 0;
    border-top: .5rem solid var(--secondary);
    border-right: .3rem solid transparent;
    border-left: .3rem solid transparent;
    margin-left:.3rem;
   }


.menu-item-has-children.active > a::after {
    transform: rotate(180deg); 
}

ul.sub-menu a {
    color: white;
}


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

.menu__icon svg {
    width: 2rem;
}

.menu__icon .line {
    stroke: white;
}

.menu__icon .cross {
    display: none;
}

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

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

.open path.cross {
    stroke: white;
}

.nav__right {
    display:none;
}




@media screen and (max-width: 991px) {
    
    .header__cta {
        display: none;
    }

    #menu {
        display: none;
    }

    .menu__button {
        height: 1.5rem;
        display: block;
        cursor: pointer;
    }

    .nav__right  {
        height: 100%;
        position: fixed;
        z-index: 18;
        background: var(--primary);
        inset: 0;
        width: 100%;
        align-content: center;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }


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

    }

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

    .nav__right ul.sub-menu {
        display: none;
        position: static;
        margin-top: .75rem;
    }

    .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 {
    background: var(--primary);
    color: white;
}

footer a {
    color: white;
}

.footer__cta {
    text-align: center;
    padding: 4rem 0 0;
    position: relative;
}

.footer__cta svg {
    margin-bottom: -1px;
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
}

.footer__cta ul {
    list-style-type: none;
    margin-top: 4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.footer__cta li {
    min-height: 17rem;
    background: var(--red);
    width: calc(var(--mw) / 4 - 1.25rem);
    padding: 2.5rem 1rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    transition: all .25s ease;
}

.footer__cta li:hover {
    transform: scale(1.06);
}

.footer__cta li:nth-child(1) {
    background-color: var(--secondary); 
}

.footer__cta li:nth-child(2) {
    background-color: var(--red); 
}

.footer__cta li:nth-child(3) {
    background-color: var(--yellow); 
}

.footer__cta li:nth-child(4) {
    background-color: var(--lightblue); 
}


.footer__cta a {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: 100%;
}

.footer__cta h2 {
    font-size: 2.3rem;
}

.footer__cta h3 {
    padding: 0 1rem;
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 500;
}

.footer__cta p {
    margin: 2rem 0 0;
    font-weight:  200;
}
.footer__info {
    display: grid;
    justify-content: space-around;
    gap: 2rem;
    font-size: .85rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-align: center;
    grid-template-columns: 1fr 1fr 1fr;
}

.footer__info p {
    font-size: .85rem;
    margin-bottom: .5rem;
}



.footer__info li {
    list-style-type: none;
    margin-bottom: .5rem;
}

.footer__info li b {
    font-size: 1rem;

}

.footer__sm {
    text-align: center;
    font-size: .8rem;
}

.footer__sm ul {
    display: flex;
    justify-content: center;
    gap: .75rem;
    list-style-type: none;
    margin-top: .5rem;
}

.footer__sm svg:hover {
    fill: var(--secondary);
    transform: scale(1.05);
}

#copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: .84rem;
}

.footer__menu {
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin-top: 2rem;
    font-size: .85rem;
    flex-direction: row;
    gap: 1rem;
}


.footer__menu a {
text-decoration: none;
}

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

    .footer__cta ul {
        justify-content: center;
    }

    .footer__info {
        grid-template-columns: 1fr;
}
 }

/* 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;
    height: 100%;
    overflow: hidden;
}

.slider__wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    z-index: 4;
    width: 100%;
    stroke: none;
    pointer-events: none;
}

.slider__track {
    position: relative;
    height: 100%;
}

.slider__item {
    width: 100%;
    height: calc(100vh - 12rem);
    object-fit: cover;
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility .8s ease;
}

.slider__item.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

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

.slider__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 36, 83, .62), rgba(9, 36, 83, .08));
    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;
}

.slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 4rem;
    height: 4rem;
    padding: 0;
    background: none;
    color: var(--secondary);
    transform: translateY(-70%);
    display: grid;
    place-items: center;
}

.slider__arrow:hover {
    background: none;
    color: #a3b50a;
}

.slider__arrow svg {
    width: 30px;
    height: 30px;
}

.slider__arrow--prev {
    left: 1.25rem;
}

.slider__arrow--next {
    right: 1.25rem;
}

.slider__dots {
    position: absolute;
    left: 50%;
    bottom: 5.2rem;
    z-index: 5;
    display: flex;
    gap: .45rem;
    transform: translateX(-50%);
}

.slider__dot {
    width: .55rem;
    height: .55rem;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .58);
}

.slider__dot.is-active,
.slider__dot:hover {
    background: var(--secondary);
}

@media screen and (max-width: 991px) {
    .home .hero,
    .slider__item {
        height: 70vh;
        min-height: 28rem;
    }

    .slider input {
        width: calc(100% - 2rem);
    }

    .slider__infos {
        margin-top: -2rem;
    }

    .slider__arrow {
        top: auto;
        bottom: 4.5rem;
        transform: none;
    }

    .slider__dots {
        bottom: 3.4rem;
    }
}

.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

}

.fw {
    min-height: 60vh;
    display: flex;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 2rem;
    overflow: hidden;
}


.fw iframe {
    width: calc(50% - 4rem);
    border-radius: 0 2rem 2rem 0;
    position: absolute;
    z-index: -1;
    left: 0;
    height: 60vh;
    object-fit: cover;
    z-index: 99999;
}

.fw img {
    width: 50%;
    border-radius: 2rem;
    position: absolute;
    z-index: -1;
    left: -4rem;
    height: 60vh;
    object-fit: cover;
}

.fw ul {
    width: 50%;
    margin-left: 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
        text-align: center;
}

.fw li {
    width: 50%;
    display: inline-block;

    font-weight: 500;
    padding: .5rem 1.25rem;
}

.fw h3 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1;
}

.fw p {

    font-weight: 500;
}

.fw.invert ul {
    all: unset;
    text-align: left;
    padding-right: 20%;
    display: flex;
    flex-direction: column;
}


.fw.invert img {
    left:unset;
    right:-2rem;
}

.fw__list h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: .4rem;
}

.fw__list p {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 1rem;
    padding-right: 10%;
}

.fw__list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 60%;
}

.fw__list svg {
    width: 8rem;
}
@media screen and (max-width: 991px) {

    .fw ul, .fw img {
        width: 100%;
        position: relative;
        margin: 0;
        left: 0;
    }

    .fw li {
       width: 100%;
    }

    .fw.invert ul {
        padding-right: 0;
    }

    .fw.invert img {
        left:unset;
        right:0rem;
    }

    .fw iframe {
    width: calc(100% - 2rem);
    border-radius: 2rem;
    position: relative;
    margin: 0 auto;
}
 }

/* HOME - NEWS */


/* HOME - NEWS */

#news .cards__list > a {
    padding: 0;
    justify-content: flex-start;
    gap: .25rem;
    filter: drop-shadow(2px 4px 6px #00000019);
    background: white;
    max-height: 25rem;
}

#news time {
    color: var(--secondary)!important;
}

#news .cards__list img {
    height: 50%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -1;
    position: relative;
    border-radius:  .5rem .5rem 0 0;;
}

#news .cards__list > a * {
    color: var(--primary);
}

#news .cards__list > a h3 {
    font-size: 1rem;
}

#news .cards__list > a p {
    font-size: .85rem;
    margin-bottom: 0;

}

#news .card__content {
    padding: .75rem;
}

#news .card__category {
    position: absolute;
    text-transform: uppercase;
    background: var(--secondary);
    color: white !important;
    border-radius: 0 .2rem .2rem 0;
    padding: .25rem .5rem;
    font-size: 0.7em;
    top: 1rem;
}



/* 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__icon {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: .5rem;
    background: linear-gradient(135deg, #e8eaed 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card__icon .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #9ca3af;
    opacity: 0.6;
}

.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 svg.plus__eight {
    right: 1.5rem;
}

.card__info svg.video__icon--shift1 {
    right: 1.5rem;
}

.card__info svg.video__icon--shift2 {
    right: 4rem;
}

.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;
}

.star-fill {
    fill: var(--yellow) !important;
}

.card__info svg .label {
    fill: white!important;
    font: 700 33.5px system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.star-outline {
        stroke: var(--yellow) !important;

}


.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;
}


.hero.smaller {
    min-height: auto;
    padding: 4rem 0 0;

    .ctn {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-grow: 1;
    flex-direction: column;
    gap: .5rem;
    }
}

a.notice-toggle {
    font-size: .85rem;
    color: var(--primary);
    opacity: 1;
    text-decoration: none;
    text-underline-offset: 3px;
    cursor: pointer;
}
a.notice-toggle:hover {
    opacity: 1;
}
.notice-adopter {
    font-size: .85rem;
    /* max-width: 60ch;*/
    line-height: 1.6;
    margin-top: .25rem;
}

html:has(.page-template-page-adopter) {
    scroll-behavior: auto;
}


/* Styles pour la page animaux perdus avec filtre + tri */
.perdus-controls {
    margin-bottom: 2rem;
}

.perdus-controls form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.perdus-controls .perdus-filters,
.perdus-controls .perdus-sort {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.perdus-controls .perdus-filters span,
.perdus-controls .perdus-sort span {
    font-weight: 600;
    color: var(--secondary);
}

.perdus-controls 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;
}

.perdus-select {
    position: relative;
}

.perdus-select::after {
    content: '';
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NCIgaGVpZ2h0PSI0NCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNCQUNFMUQiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9ImJ1dHQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik02IDlsNiA2IDYtNiIvPjwvc3ZnPg==');
    background-size: contain;
    background-repeat: no-repeat;
}

.perdus-count {
    margin: 0 0 1.5rem;
    font-weight: 600;
    color: var(--secondary);
}

.perdus-count__reset {
    margin-left: .75rem;
    font-weight: 500;
}

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

.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%;
    }
    .perdus-controls .perdus-filters,
    .perdus-controls .perdus-sort {
        flex-direction: column;
        align-items: flex-start;
    }
    .perdus-controls form {
        width: 100%;
    }
}


/* SINGLE BLOG */

.single-post .hero img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    margin: 1rem 0;
    border-radius: 2rem;
}

.single-post__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.single-post__meta p {
    margin-bottom: 0;
}

.share-links {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.share-links__item {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(37, 61, 145, .22);
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    transition: all .25s;
}

.share-links__item svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.share-links__item:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.fiche__share {
    margin: .25rem 0;
}

.hero time {
    font-weight: 500;
}

@media screen and (max-width: 600px) {
    .single-post__meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* SINGLE ANIMALS */

.fiche {
    margin-top: 2rem;
    padding-bottom: 0rem;
}

.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__icons li[data-tooltip] {
    cursor: help;
}

.fiche__icons li[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #333;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.3;
    width: max-content;
    max-width: 220px;
    text-align: center;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10;
}

.fiche__icons li[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 0.1rem);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10;
}

.fiche__icons li[data-tooltip]:hover::after,
.fiche__icons li[data-tooltip]:hover::before,
.fiche__icons li[data-tooltip]:focus-visible::after,
.fiche__icons li[data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Évite que le tooltip de la 1ère/dernière icône déborde du viewport */
.fiche__icons li:first-child[data-tooltip]::after {
    left: 0;
    transform: translateX(0) translateY(4px);
}
.fiche__icons li:first-child[data-tooltip]:hover::after,
.fiche__icons li:first-child[data-tooltip]:focus-visible::after {
    transform: translateX(0) translateY(0);
}

.fiche__icons li:last-child[data-tooltip]::after {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(4px);
}
.fiche__icons li:last-child[data-tooltip]:hover::after,
.fiche__icons li:last-child[data-tooltip]:focus-visible::after {
    transform: translateX(0) translateY(0);
}

.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;
}

.fiche__icon {
    width: 100%;
    height: 29rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 2rem;
    color: #9ca3af;
}

.fiche__icon .dashicons {
    font-size: 120px;
    width: 120px;
    height: 120px;
    opacity: 0.5;
}

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

.prev {
    left: 0;
} 

.next {
    right: 0;
}


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

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

}

/* 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; /* Nécessaire pour positionner l'icône SVG */
    padding: 0;
}

/* Cacher le triangle par défaut */
details summary::-webkit-details-marker {
    display: none;
}

details summary::marker {
    display: none;
}

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

/* Ajouter l'icône SVG avec ::after */
details summary::after {
    content: '';
    width: 2rem; /* Taille de la boîte pour l'icône */
    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: calc(50% - .4rem);
    transform: translateY(-50%);
    transition: transform 0s ease;
}

details[open] summary::after {
    transform: rotate(540deg);
}

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


/* 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, textarea {
    border-radius: 1.5rem;
    width: 100%;
    padding: .75rem 1.5rem;
    border: 1px solid lightgrey;
    cursor: auto;
}
