/*
Theme Name: oned
Template: twentytwentyfive
Description: ONED Theme. Twenty Twenty-Five children.
*/
:root {
    --oned-color-red: #ec615b;
    --oned-color-black: #191919;
    --oned-color-light-gray: #f6f6f6;
    --oned-color-gray: #686868;
}

/**
Button
 */
.wp-block-button,
.wp-block-button__link {
    transition: 100ms ease;
}

.wp-block-button__link {
    word-break: keep-all;
    text-rendering: optimizeLegibility;
}

.wp-block-button__link.has-impact-font-family,
.has-impact-font-family .wp-block-button__link {
    text-shadow: 0 0 2px white;
}

.wp-block-button__link.has-base-color {
    text-shadow: none;
}

:where(.wp-site-blocks :focus) {
    outline-width: 1px !important;
}

:where(.wp-block-button__link),
:root :where(.is-style-post-terms-1--3 a:where(:not(.wp-element-button))),
:root :where(.is-style-post-terms-1--2 a:where(:not(.wp-element-button))) {
    border-radius: 0;
}

/* post-date */
.wp-block-post-date {
    white-space: nowrap;
}

/* post-terms : tag and categories */

.wp-block-oned-oned-events-date-block {
    font-size: var(--sm);
}

:root :where(.wp-block-oned-oned-events-date-block) {
    font-size: var(--wp--preset--font-size--small);
    border-bottom: 4px solid var(--oned-color-red);
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
}

.taxonomy-category.wp-block-post-terms a {
    border-bottom: 4px solid var(--oned-color-red);
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
}

.taxonomy-category.wp-block-post-terms a:hover {
    border-color: transparent;
}

/* Loop */

.wp-block-query-pagination {
    background: var(--oned-color-light-gray);
    justify-content: space-between;
    padding: var(--wp--preset--spacing--20);
    color: var(--oned-color-gray);
}

.wp-block-query-pagination a,
.wp-block-query-pagination .current {
    display: inline-block;
    padding: 4px;
    text-decoration: none;
    color: var(--oned-color-gray);
    border: 4px solid var(--oned-color-light-gray);
}

.wp-block-query-pagination a:hover {
    text-decoration: underline;
    text-decoration-color: var(--oned-color-red);
    border-color: var(--oned-color-red);
}

.wp-block-query-pagination .current {
    border-bottom-color: var(--oned-color-red);
    border-top-color: var(--oned-color-red);
}


/**
post
 */
.single h1.wp-block-post-title {
    font-family: var(--wp--preset--font-family--impact);
    font-size: xxx-large;
}

.single .entry-content .wp-block-paragraph strong {
    border-bottom: 4px solid var(--oned-color-red);
}

.single .oned-cat-container .taxonomy-category a {
    border: 0 none;
    text-decoration: none !important;
    display: inline-flex;
    justify-content: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1rem;
    line-height: 2rem;
    height: 2rem;
    padding-right: 1rem;
    transition: linear 100ms;
}

.single .oned-cat-container .taxonomy-category .wp-block-post-terms__separator {
    display: inline-block;
    width: 1rem;
}

.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next,
.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous {
    color: var(--oned-color-red);
    font-weight: bold;
}

/*
.single .oned-cat-container .taxonomy-category a::before {
    content: '';
    display: block;
    background: var(--oned-color-red);
    margin-inline: auto;
    transform: rotate(-2deg) skew(29deg);
    transform-origin: center;
    padding: 0.5rem;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: -1;
    height: 1rem;
}
.single .oned-cat-container .taxonomy-category a::before {
    content: '\25B6';
    font-size: 2rem;
    line-height: 2rem;
    display: inline-block;
    padding-right: 4px;
}
*/

.single .oned-cat-container .taxonomy-category a::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 1rem solid transparent;
    border-bottom: 1rem solid transparent;
    border-left: 2rem solid var(--oned-color-red);
    padding-right: 6px;
    transition: linear 100ms;
}

.single .oned-cat-container .taxonomy-category a:hover::before {
    border-left-color: var(--oned-color-black);

}

.single .oned-cat-container .taxonomy-category a:hover {
    background: var(--oned-color-light-gray);
}

.single main img {
    max-width: 100%;
    height: auto;
}

.oned-published-date-prefix {
    color: var(--wp--preset--color--accent-4);
    font-size: var(--wp--preset--font-size--small);
}


/**
Loops, Taxonomies et archives
 */

.oned-query-list-post .wp-block-post-date {
    min-width: 100px;
}

@media screen and (max-width: 720px) {
    .oned-query-list-post .wp-block-post-date {
        display: none;
    }
}

.oned-query-loop-with-border .wp-block-post-template-is-layout-grid {
    border-top: 4px solid var(--oned-color-light-gray);
    border-left: 4px solid var(--oned-color-light-gray);
    gap: 0;
}

.oned-query-loop-with-border .wp-block-post-template-is-layout-grid .wp-block-post {
    border-bottom: 4px solid var(--oned-color-light-gray);
    border-right: 4px solid var(--oned-color-light-gray);
    padding: 1.2rem;
}

/**
Header
 */
.wp-block-site-logo img,
.site-logo-img .custom-logo {
    max-width: none;
}

.block-editor-iframe__body .wp-block-site-logo img,
.block-editor-iframe__body .site-logo-img .custom-logo,
.wp-admin .wp-block-site-logo img,
.wp-admin .site-logo-img .custom-logo {
    max-width: 100% !important;
}

.oned-header-container {
    padding-bottom: 1rem;
    box-sizing: border-box;
    background: var(--oned-color-red);
    width: 100%;
    transform: skewY(-1deg) translateY(-16px);
}

.oned-header-bg {
    transform: skewY(1deg) translateY(16px);
    box-sizing: border-box;
}

.oned-header-container .wp-block-button .wp-block-button__link {
    background: var(--oned-color-light-gray);
    padding: 0.5rem 1.5rem;
    transition: color 100ms linear;
}

.oned-header-container .wp-block-button .wp-block-button__link:hover {
    color: var(--oned-color-red);
}

.oned-header-container .wp-block-navigation__responsive-container-open {
    background: var(--oned-color-light-gray);
}

.oned-header-container .wp-block-navigation__responsive-container-open svg {
    height: 1rem;
    width: 1rem;
    padding: 10px;
    border: 1px solid var(--oned-color-black);
}

.oned-header-container .wp-block-navigation {
    font-size: var(--wp--preset--font-size--large);
}

.oned-header-container .wp-block-navigation a.wp-block-navigation-item__content {
    transition: text-decoration 50ms linear;
}

.oned-header-container .wp-block-navigation a.wp-block-navigation-item__content:hover {
    text-decoration-thickness: 4px !important;
    text-underline-offset: 6px;
    text-decoration-color: var(--oned-color-light-gray);
}

.oned-header-container .wp-block-navigation__overlay-container {
    background: var(--oned-color-light-gray);
}


/**
Newsletter
 */

input[type="text"],
input[type="email"],
input[type="number"] {
    line-height: inherit;
    background: transparent;
    border: 1px solid var(--oned-color-gray);
    height: auto;
    width: 100%;
    box-sizing: border-box;
    font-size: inherit;
    padding: 1rem;
}

.inf-group-inline {
    display: flex;
}

.inf-group-inline > div {
    flex-grow: 1;
}

.inf-main_fb9498c98b58294f190a52c37c2972d9 .inf-input.inf-error label,
.inf-main_fb9498c98b58294f190a52c37c2972d9 .inf-input.inf-error span.inf-message {
    color: #fff;
}

.inf-main_fb9498c98b58294f190a52c37c2972d9 .inf-input.inf-error input {
    border: 1px solid var(--oned-color-red);
}

.inf-main_fb9498c98b58294f190a52c37c2972d9 .inf-input.inf-error span.inf-message {
    display: block;
}

.inf-main_fb9498c98b58294f190a52c37c2972d9 .inf-submit input.disabled {
    opacity: 0.4;
}

#inf-button,
#inf-email {
    background: transparent none;
    border-color: currentColor;
    border-width: 1px;
    border-style: solid;
    color: currentColor;
    padding: calc(0.75rem - 1px) calc(1.75rem - 1px);
    font-size: smaller;
    line-height: inherit;
}

#inf-button {
    padding-left: 10px;
    padding-right: 10px;
    width: auto;
}

#inf-email {
    border-right: 0 none;
}

.inf-group-inline > .inf-input {
    width: 100%;
}

#inf-email:focus,
#inf-button:hover {
    background: color-mix(in srgb, var(--oned-color-light-gray) 20%, transparent);
}

.oned-conseil-administration-grille .wp-block-group {
    text-align: center;
    padding: 1rem 1rem 0;
}

.oned-conseil-administration-grille .wp-block-group figure.wp-block-image {
    margin: auto;
    width: 170px;
    padding-bottom: 0.75rem;
}

.oned-conseil-administration-grille .wp-block-group > p.wp-block-paragraph {
    font-size: smaller;
    margin: 0;
    color: var(--oned-color-gray);
}

.oned-conseil-administration-grille .wp-block-group > p:nth-child(even) {
    font-weight: bold;
    font-size: inherit;
    color: inherit;
}

.oned-conseil-administration-grille .wp-block-group details {
    font-size: smaller;
    background: var(--oned-color-light-gray);
    padding: 0.75rem;
}

.oned-conseil-administration-grille .wp-block-group details p {
    font-size: smaller;
    font-weight: inherit;
    text-align: left;
}

@media screen and (max-width: 1100px) {
    .oned-hide-on-tablet {
        display: none;
    }
}

@media screen and (max-width: 720px) {
    .oned-hide-on-mobile {
        display: none;
    }

    .oned-header-container,
    .oned-header-bg {
        transform: none !important;
    }

    .oned-header-logo-and-nav {
        justify-content: space-between;
    }

    .oned-header-container .wp-block-buttons {
        display: none;
    }

    .oned-header-container {
        padding: 0 !important;
    }
}
