@charset "UTF-8";

/* ==========================================================================
   1. Reset / normalize
   ========================================================================== */

html {
    box-sizing: border-box;
}

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

.remodal,
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body,
figure {
    margin: 0;
}

body {
    background: var(--wp--preset--color--white);
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
section,
summary {
    display: block;
}

audio,
canvas,
progress,
video {
    display: inline-block;
    vertical-align: baseline;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

[hidden],
template {
    display: none;
}

hr,
img,
legend {
    border: 0;
}

legend,
td,
th {
    padding: 0;
}

address,
table {
    margin: 0 0 1.5em;
}

img,
pre {
    max-width: 100%;
}

img {
    height: auto;
}

svg:not(:root) {
    overflow: hidden;
}

hr {
    box-sizing: content-box;
    background-color: #ebebeb;
    height: 1px;
    margin-bottom: 1.5em;
}

abbr[title] {
    border-bottom: 1px dotted;
}

abbr,
acronym {
    border-bottom: 1px dotted #898989;
    cursor: help;
}

b,
optgroup,
strong {
    font-weight: 700;
}

cite,
dfn,
em,
i {
    font-style: italic;
}

ins,
mark {
    text-decoration: none;
}

ins,
mark,
pre {
    background: #ebebeb;
}

mark {
    color: var(--wp--preset--color--black);
}

small {
    font-size: 80%;
}

big {
    font-size: 125%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

blockquote,
q {
    quotes: "" "";
}

blockquote:after,
blockquote:before,
q:after,
q:before {
    content: "";
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 1.5em 1.5em;
}

code,
kbd,
pre,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

pre {
    font-family: "Courier 10 Pitch", Courier, monospace;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.6em;
    padding: 1.6em;
}

pre,
textarea {
    overflow: auto;
}

code,
kbd,
tt,
var {
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 0.9375rem;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

fieldset {
    border: 1px solid silver;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

/* Formulaires */

button,
input,
optgroup,
select,
textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}

.menu-toggle:before,
button,
select {
    text-transform: none;
}

button {
    overflow: visible;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button[disabled],
html input[disabled] {
    cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input {
    line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

input[type="search"] {
    -webkit-appearance: textfield;
    box-sizing: inherit;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

label {
    font-weight: 400 !important;
}

.menu-toggle:before {
    -moz-osx-font-smoothing: grayscale;
    font-family: FontAwesome;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    text-decoration: inherit;
}

/* ==========================================================================
   2. Classes utilitaires (WordPress + projet)
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:active,
.screen-reader-text:focus,
.screen-reader-text:hover {
    background-color: #ebebeb;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: var(--wp--preset--color--black);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Texte réservé aux lecteurs d'écran */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Clearfix */
.clear:after,
.clear:before,
.comment-content:after,
.comment-content:before,
.container:after,
.container:before,
.entry-content:after,
.entry-content:before,
.nav-links:after,
.nav-links:before,
.site-content:after,
.site-content:before,
.site-footer:after,
.site-footer:before,
.site-header:after,
.site-header:before {
    content: "";
    display: table;
    table-layout: fixed;
}

.clear:after,
.comment-content:after,
.container:after,
.entry-content:after,
.nav-links:after,
.post-list:after,
.site-content:after,
.site-footer:after,
.site-header:after {
    clear: both;
}

.clearfix:before,
.clearfix:after {
    display: table;
    content: " ";
}

.clearfix:after {
    clear: both;
}

.uppercase {
    text-transform: uppercase;
}

.center {
    text-align: center;
}

.full-width {
    width: 100%;
}

.no-padding,
.no-padding [class^="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.flex {
    display: flex;
    justify-content: space-around;
}

.wrap {
    flex-wrap: wrap;
}

.grid {
    display: grid;
}

.col2 {
    grid-template-columns: 50% 50%;
}

.mt100 {
    margin-top: 100px;
}

/* ==========================================================================
   3. Polices
   ========================================================================== */

@font-face {
    font-family: geomanist;
    src: url(pixelle/fonts/geomanist-black-webfont.woff2) format("woff2"),
        url(pixelle/fonts/geomanist-black-webfont.woff) format("woff"),
        url(pixelle/fonts/geomanist-black-webfont.ttf) format("truetype");
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: geomanist;
    src: url(pixelle/fonts/geomanist-black-italic-webfont.woff2) format("woff2"),
        url(pixelle/fonts/geomanist-black-italic-webfont.woff) format("woff"),
        url(pixelle/fonts/geomanist-black-italic-webfont.ttf) format("truetype");
    font-weight: 900;
    font-style: italic;
}

@font-face {
    font-family: geomanist;
    src: url(pixelle/fonts/geomanist-bold-webfont.woff2) format("woff2"),
        url(pixelle/fonts/geomanist-bold-webfont.woff) format("woff"),
        url(pixelle/fonts/geomanist-bold-webfont.ttf) format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: geomanist;
    src: url(pixelle/fonts/geomanist-bold-italic-webfont.woff2) format("woff2"),
        url(pixelle/fonts/geomanist-bold-italic-webfont.woff) format("woff"),
        url(pixelle/fonts/geomanist-bold-italic-webfont.ttf) format("truetype");
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: geomanist;
    src: url(pixelle/fonts/geomanist-book-webfont.woff2) format("woff2"),
        url(pixelle/fonts/geomanist-book-webfont.woff) format("woff"),
        url(pixelle/fonts/geomanist-book-webfont.ttf) format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: geomanist;
    src: url(pixelle/fonts/geomanist-medium-webfont.woff2) format("woff2"),
        url(pixelle/fonts/geomanist-medium-webfont.woff) format("woff"),
        url(pixelle/fonts/geomanist-medium-webfont.ttf) format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: geomanist;
    src: url(pixelle/fonts/geomanist-regular-webfont.woff2) format("woff2"),
        url(pixelle/fonts/geomanist-regular-webfont.woff) format("woff");
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: geomanist;
    src: url(pixelle/fonts/geomanist-regular-italic-webfont.woff2) format("woff2"),
        url(pixelle/fonts/geomanist-regular-italic-webfont.woff) format("woff"),
        url(pixelle/fonts/geomanist-regular-italic-webfont.ttf) format("truetype");
    font-weight: 200;
    font-style: italic;
}

/* ==========================================================================
   4. Typographie de base
   ========================================================================== */

body,
html {
    height: 100% !important;
    font-family: geomanist, sans-serif;
    font-size: 16px !important;
    font-weight: 200;
    line-height: 1.5;
    color: #191818;
}

h1 {
    max-width: 66%;
    margin: 0 auto;
    font-size: 4em;
    font-weight: 700;
    font-style: italic;
    text-align: center;
    color: var(--wp--preset--color--primary);
}

h2 {
    font-size: 40px;
    font-weight: 500;
}

h3 {
    margin: 5px 0;
    font-size: 1.8em;
    font-weight: 500;
}

h3,
h4 {
    line-height: 1.5;
}

h4,
h5,
h6 {
    font-size: var(--wp--preset--font-size--medium);
}

h4,
h6 {
    font-weight: 700;
}

h4 {
    margin: 0;
    color: #6b6b6b;
}

h5 {
    line-height: 1.8;
    color: #c44f5a;
}

h6 {
    line-height: 1.4;
    color: #393939;
}

a {
    color: var(--wp--preset--color--primary) !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}

a:focus,
a:hover {
    color: var(--wp--preset--color--black) !important;
    text-decoration: underline !important;
}

.button:hover {
    color: var(--wp--preset--color--secondary);
    cursor: pointer !important;
}

/* Accordéons <details> : flèche personnalisée */

details {
    margin-bottom: 10px;
}

details summary {
    position: relative;
    padding-left: 14px; /* place pour la flèche */
    cursor: pointer;
}

details summary::before {
    content: ">";
    position: absolute;
    top: 0;
    left: 0;
    font-weight: 700;
    transition: transform 0.3s ease;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details summary::-webkit-details-marker {
    display: none; /* masque le marqueur natif (Safari) */
}

details summary::marker {
    content: ""; /* masque le marqueur natif (Firefox, Chrome) */
}

ion-icon {
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 18px;
    color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   5. Médias
   ========================================================================== */

embed,
iframe,
object {
    max-width: 100%;
}

iframe {
    width: 100%;
    height: 400px;
}

/* Vidéo responsive 16:9 (ancien conteneur) */
.conteneur {
    position: relative;
    height: 0;
    padding-top: 25px;
    padding-bottom: 56.25%;
}

.conteneur embed,
.conteneur iframe,
.conteneur object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wp-block-embed-vimeo iframe,
.wp-block-embed-youtube iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* ==========================================================================
   6. Pagination et fil d'Ariane
   ========================================================================== */

.navigation {
    clear: both;
    overflow: hidden;
    width: 100%;
    margin-bottom: 20px;
    padding: 15px 20px;
    text-align: center;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.navigation .current {
    margin-right: 5px;
    font-size: 32px;
    color: #111;
}

.navigation,
.navigation a {
    font-size: 13px;
    color: #000;
}

.navigation a,
.site-title,
.site-title a {
    text-decoration: none;
}

.navigation a {
    margin: 0;
}

.navigation a:hover {
    color: var(--wp--preset--color--secondary) !important;
    text-decoration: underline;
}

.navigation .nav-previous {
    float: right;
}

.navigation .nav-next {
    float: left;
}

.breadcrumbs {
    float: right;
    margin-top: 5px;
    font-size: 11px;
}

.breadcrumbs span {
    position: relative;
    margin-right: 20px;
}

.breadcrumbs span span {
    margin-right: 0;
}

.breadcrumbs span:last-child {
    margin: 0;
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs a::after,
.breadcrumbs a::before {
    content: "";
    display: inline-block;
    position: absolute;
}

.breadcrumbs a::before {
    top: 2px;
    right: -11px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid rgba(0, 0, 0, 0.2);
}

.breadcrumbs a::after {
    top: 3px;
    right: -10px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid #fff;
}

@media (min-width: 499px) {
    .breadcrumbs span {
        margin-right: 40px;
    }

    .breadcrumbs a::before {
        top: 3px;
        right: -23px;
    }

    .breadcrumbs a::after {
        top: 4px;
        right: -22px;
    }
}

/* ==========================================================================
   7. Fenêtre modale (Remodal)
   ========================================================================== */

html.remodal-is-locked {
    overflow-y: hidden;
    touch-action: none;
}

.remodal-overlay {
    position: fixed;
    z-index: 9999;
    top: -5000px;
    right: -5000px;
    bottom: -5000px;
    left: -5000px;
    display: none;
    background: rgba(43, 46, 56, 0.9);
}

.remodal-wrapper {
    position: fixed;
    z-index: 10000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    padding: 10px 10px 0;
}

.remodal-wrapper:after {
    content: "";
    display: inline-block;
    height: 100%;
    margin-left: -0.05em;
}

.remodal-overlay,
.remodal-wrapper {
    backface-visibility: hidden;
}

.remodal {
    position: relative;
    outline: 0;
    text-size-adjust: 100%;
    margin-bottom: 10px;
    padding: 35px;
    transform: translate3d(0, 0, 0);
    color: #2b2e38;
    background: #fff;
}

.remodal,
.remodal-wrapper:after {
    vertical-align: middle;
}

.remodal-is-initialized {
    display: inline-block;
}

.remodal-bg.remodal-is-opened,
.remodal-bg.remodal-is-opening {
    filter: blur(3px);
}

.remodal-cancel,
.remodal-close,
.remodal-confirm {
    overflow: visible;
    margin: 0;
    cursor: pointer;
    border: 0;
    outline: 0;
    text-decoration: none;
}

.remodal-cancel::-moz-focus-inner,
.remodal-close::-moz-focus-inner,
.remodal-confirm::-moz-focus-inner {
    padding: 0;
    border: 0;
}

.remodal-close,
.remodal-close:before {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 35px;
}

.remodal-close {
    height: 35px;
    padding: 0;
    transition: color 0.2s;
    color: #95979c;
    background: 0 0;
}

.remodal-close:focus,
.remodal-close:hover {
    color: var(--wp--preset--color--secondary);
}

.remodal-close:before {
    font-weight: 500;
    font-size: 25px;
    line-height: 35px;
    content: "\00d7";
}

.remodal-cancel,
.remodal-confirm {
    font: inherit;
    display: inline-block;
    min-width: 110px;
    padding: 12px 0;
    transition: background 0.2s;
    text-align: center;
    vertical-align: middle;
}

.remodal-confirm {
    color: var(--wp--preset--color--white);
}

.remodal-confirm,
.remodal-confirm:focus,
.remodal-confirm:hover {
    background: var(--wp--preset--color--secondary);
}

.remodal-overlay.remodal-is-closing,
.remodal-overlay.remodal-is-opening,
.remodal.remodal-is-closing,
.remodal.remodal-is-opening {
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}

.remodal-overlay.remodal-is-opening {
    animation-name: remodal-overlay-opening-keyframes;
}

.remodal-overlay.remodal-is-closing {
    animation-name: remodal-overlay-closing-keyframes;
}

.remodal.remodal-is-opening {
    animation-name: remodal-opening-keyframes;
}

.remodal.remodal-is-closing {
    animation-name: remodal-closing-keyframes;
}

@keyframes remodal-opening-keyframes {
    from {
        transform: scale(1.05);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes remodal-closing-keyframes {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.95);
        opacity: 0;
        filter: blur(0);
    }
}

@keyframes remodal-overlay-opening-keyframes {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes remodal-overlay-closing-keyframes {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@media only screen and (min-width: 641px) {
    .remodal {
        max-width: 700px;
    }
}

/* ==========================================================================
   8. Préchargement
   ========================================================================== */

#preloader {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background-color: #f5f5f5;
}

.pre-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
}

.spinner {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 100px auto;
}

.double-bounce1,
.double-bounce2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--wp--preset--color--black);
    opacity: 0.6;
    animation: bounce 2s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1s;
}

@keyframes bounce {
    0%,
    100% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
}

@keyframes intro {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes finger {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ==========================================================================
   9. En-tête et navigation principale
   ========================================================================== */

header#main-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 74px;
    background: var(--wp--preset--color--primary);
}

#main-nav {
    display: flex;
}

.custom-logo-link {
    width: 180px;
    margin-left: 15px;
}

.box-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    background: 0 0;
    box-shadow: none;
    transition: background-color 0.3s;
    transform: translate3d(0, 0, 0);
}

.box-header,
.box-primary-nav {
    backface-visibility: hidden;
}

.box-header,
.box-primary-nav li {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.box-header.is-fixed {
    position: fixed;
    top: -95px;
    transition: transform 0.3s;
}

.box-header.is-visible {
    transform: translate3d(0, 100%, 0);
}

.box-intro,
.box-primary-nav {
    position: relative;
    text-align: center;
}

/* Bouton burger */

.box-primary-nav-trigger {
    position: absolute;
    top: 50%;
    left: 10px;
    width: 100px;
    height: 30px;
    padding-left: 1em;
    line-height: 30px;
    background-color: transparent;
    transform: translateY(-50%);
}

.box-primary-nav-trigger .box-menu-text {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--wp--preset--color--white);
}

.box-primary-nav-trigger .box-menu-icon {
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 1em;
    width: 18px;
    height: 2px;
    background-color: var(--wp--preset--color--white);
    transform: translateX(0) translateY(-50%);
    transition: background-color 0.3s;
}

.box-primary-nav-trigger .box-menu-icon::before,
.box-primary-nav-trigger .box-menu-icon::after {
    content: "";
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--wp--preset--color--white);
    transition: transform 0.3s, top 0.3s, background-color 0s;
}

.box-primary-nav-trigger .box-menu-icon::before {
    top: -5px;
}

.box-primary-nav-trigger .box-menu-icon::after {
    top: 5px;
}

.box-primary-nav-trigger .box-menu-icon.is-clicked {
    background-color: rgba(255, 255, 255, 0);
}

.box-primary-nav-trigger .box-menu-icon.is-clicked::before,
.box-primary-nav-trigger .box-menu-icon.is-clicked::after {
    background-color: #393939;
}

.box-primary-nav-trigger .box-menu-icon.is-clicked::before {
    top: 0;
    transform: rotate(135deg);
}

.box-primary-nav-trigger .box-menu-icon.is-clicked::after {
    top: 0;
    transform: rotate(225deg);
}

@media only screen and (min-width: 960px) {
    .box-logo .custom-logo-link,
    .box-logo a {
        display: block;
    }

    .box-header {
        width: 120px;
    }

    .box-header.is-fixed {
        position: absolute;
        top: 0;
    }

    .box-header.is-visible {
        transform: translate3d(0, 0, 0);
    }

    .box-header.menu-is-open {
        background-color: #b8860b;
    }

    .box-logo {
        padding: 6px;
    }

    .box-logo a img {
        width: 260px;
    }

    .box-primary-nav-trigger,
    .box-primary-nav-trigger .box-menu-text {
        display: none;
    }

    .box-primary-nav {
        top: 0;
        left: 0;
        z-index: 2;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        padding: 0 50px;
        transform: translateY(0);
    }

    .box-primary-nav li {
        position: relative;
        width: auto;
        margin: 0 5px 0 0;
        font-size: 1rem;
        font-weight: 300;
    }

    .box-primary-nav a {
        display: block;
        padding: 0 1em;
        border-radius: 0.25em;
        font-weight: 700;
        text-decoration: none;
        color: #fff;
        transform: rotate(-3deg);
        transition: all 0.2s;
    }

    .box-primary-nav .box-label {
        display: none;
    }

    .box-primary-nav .box-social {
        display: block;
        width: 35px;
        margin: 0 0 0 5px;
        padding: 0;
    }

    .box-primary-nav li.first-social {
        margin-left: 60px;
    }

    .box-primary-nav .box-social a {
        display: block;
        position: absolute;
        top: 0;
        width: 30px;
        height: 30px;
        padding: 0;
        font-size: 30px;
    }
}

@media only screen and (max-width: 960px) {
    #main-nav {
        display: none !important;
    }

    #main-nav.menu-is-open {
        display: block !important;
        height: 100vh;
    }

    .menu-is-open .ion-social-facebook,
    .menu-is-open .ion-social-instagram-outline {
        position: relative;
    }

    .menu-is-open .ion-social-facebook a,
    .menu-is-open .ion-social-instagram-outline a {
        position: absolute;
        width: 100%;
    }
}

/* ==========================================================================
   10. Réseaux sociaux
   ========================================================================== */

.box-primary-nav .box-social a:before {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 30px;
}

.social-links ul a[href*="facebook.com"]:before {
    font-family: Ionicons;
    content: "\f231";
}

.ion-social-facebook:before {
    content: "\f231";
    margin-right: 15px;
}

.ion-social-facebook:before,
.ion-social-instagram-outline:before {
    font-size: 2em;
    color: var(--wp--preset--color--white);
}

.ion-social-facebook:hover:before,
.ion-social-instagram-outline:hover:before {
    color: var(--wp--preset--color--primary);
}

.secondary .ion-social-facebook:before,
.secondary .ion-social-instagram-outline:before {
    font-size: 1.3em;
    color: var(--wp--preset--color--black);
}

.ion-social-facebook a,
.ion-social-instagram-outline a {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 9px;
    height: 32px;
}

.social-ul {
    display: inline-block;
    padding-left: 0;
    list-style: none;
}

.social-ul li {
    float: left;
    margin: 0 10px;
}

.social-ul li a {
    font-size: 25px;
    color: #555;
    transition: all 0.3s;
}

.social-ul li a:hover {
    color: #888;
}

.social-menu {
    position: relative;
    display: flex;
    gap: 1rem;
    font-size: 1.4rem;
    list-style: none;
}

#main-nav .social-menu a {
    color: white !important;
}

.secondary-nav .social-menu a,
#main-nav .social-menu a:hover {
    color: black !important;
}

.secondary-nav .social-menu a:hover {
    color: var(--wp--preset--color--primary) !important;
}

/* ==========================================================================
   11. Navigation secondaire (panneau latéral)
   ========================================================================== */

.secondary-nav {
    position: fixed;
    top: 74px;
    right: -365px;
    bottom: 0;
    z-index: 400;
    overflow-y: scroll;
    width: 365px;
    padding: 75px 19px 0 16px;
    box-sizing: border-box;
    background-color: #fff;
}

.secondary-nav li {
    transform: rotate(-3deg);
    transition: all 0.2s;
}

.secondary-nav li:hover {
    translate: 1rem;
}

.secondary-nav ul.social-menu {
    margin-top: 50px;
}

.secondary-nav ul.social-menu li:hover {
    translate: none;
}

ul.secondary li {
    font-size: 1.5rem;
    list-style-type: none;
}

ul.secondary li a {
    font-weight: 600;
    color: var(--wp--preset--color--black) !important;
}

ul.secondary li a:hover {
    color: var(--wp--preset--color--primary) !important;
    text-decoration: none !important;
}

.extra {
    font-size: 1.3rem !important;
    font-style: italic;
}

ul.secondary li.extra:first-child {
    margin-top: 20px !important;
    padding-top: 20px;
}

/* Doit rester après .secondary-nav li (même spécificité) */
.menu-footer {
    position: absolute;
    bottom: 20px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.8em;
    height: 20px;
    font-size: 0.85em;
    list-style-type: none;
}

.menu-footer li {
    transform: none;
}

.menu-footer li:hover {
    translate: none !important;
}

.box-secondary-nav-trigger {
    width: 100px;
}

a.box-secondary-nav-trigger,
button.box-secondary-nav-trigger {
    font-weight: 600;
    color: var(--wp--preset--color--white) !important;
}

button.box-secondary-nav-trigger {
    background: none;
    border: none;
}

.close-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    font-size: 0.8em;
    color: var(--wp--preset--color--primary);
    background: none;
    border: 1px solid var(--wp--preset--color--primary);
}

.close-nav ion-icon {
    margin-top: 0 !important;
}

/* ==========================================================================
   12. Accueil / programme
   ========================================================================== */

.titraccueil {
    margin-top: 120px;
}

.theme {
    margin-bottom: 18px;
    font-size: 1.2rem;
    text-align: center;
    color: var(--wp--preset--color--primary);
}

.type {
    font-size: 0.9rem;
    text-align: center;
    color: var(--wp--preset--color--white);
}

.portfolio_item {
    position: relative;
    display: block;
    overflow: hidden;
}
/* Grille programme : ratio carré imposé pour qu'Isotope connaisse la hauteur
   des images (lazy-load) avant leur chargement -> évite le chevauchement des cartes. */
.portfolio_item img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.portfolio-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.show-infos {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: 30px;
    text-align: left;
    color: var(--wp--preset--color--white);
}

.show-infos .titre,
.show-infos .choregraphe,
.show-infos .date-lieu {
    display: block;
    padding: 0 6%;
    font-style: italic;
    color: var(--wp--preset--color--primary);
}

.show-infos .titre {
    font-size: 1.6em;
    font-weight: 900;
    line-height: 1;
}

.show-infos .choregraphe {
    font-weight: 500;
}

.show-infos .date-lieu {
    margin-top: 10px;
    font-size: 0.85em;
    font-weight: 400;
}

#download-programme,
#download-planning,
#teaser {
    margin-top: 10px;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

#download-programme a,
#download-planning a,
#teaser a {
    display: inline-block;
    padding: 0 10px;
    border: none;
    text-overflow: clip;
    color: var(--wp--preset--color--primary) !important;
    transition: all 0.2s;
}

#download-programme a,
#download-planning a {
    box-sizing: content-box;
    padding: 5px 10px;
}

/* ==========================================================================
   13. Fiche spectacle (version 2025)
   ========================================================================== */

.single {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 94px 0 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left center;
    background-attachment: fixed;
}

.single::before {
    content: "";
    display: inline-block;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, transparent, #000 69%);
    opacity: 0.3;
}

.single__header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: calc(100vh - 400px);
    padding-bottom: 72px;
}

.single__header h2 {
    max-width: 362px;
    font-size: 1.8em;
    font-weight: 700;
    font-style: italic;
    text-align: center;
    color: var(--wp--preset--color--primary);
}

.single-content {
    position: relative;
    max-width: 1034px;
    margin: 0 auto;
    padding: 0 0 5px;
    box-sizing: border-box;
    background-color: #fff;
}

.single .single-content {
    display: block;
    margin-bottom: 261px;
    padding-bottom: 100px;
}

.single__leftContent {
    float: left;
    width: 70%;
    padding-top: 45px;
    padding-left: 10%;
    padding-right: 10%;
}

.single__rightContent {
    float: right;
    width: 30%;
    padding-top: 15px;
    padding-right: 8%;
}

.single__fullContent {
    width: 100%;
    padding-top: 45px;
    padding-left: 10%;
    padding-right: 10%;
}

.single-dates_lieu {
    padding: 0 10%;
    font-size: 1em;
    font-style: italic;
    text-align: center;
    color: var(--wp--preset--color--white);
    background: var(--wp--preset--color--primary);
}

.single-dates_lieu_lieu {
    font-weight: 700;
}

.link-connexes a {
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.4;
}

/* Infos pratiques */

#infospratiques {
    margin-bottom: 25px;
    padding: 1px 10px 10px;
}

#infospratiques h6 {
    margin-top: 20px !important;
    margin-bottom: 6px;
    color: var(--wp--preset--color--primary);
}

#infospratiques ul,
#infospratiques ul li {
    padding-left: 0 !important;
    list-style-type: none !important;
}

#infospratiques ul {
    margin-left: 0;
}

#infospratiques p a {
    padding: 7px 10px;
    border-radius: 5px;
    background: var(--wp--preset--color--white);
}

/* Bouton Réserver */

a.reserver {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid var(--wp--preset--color--primary);
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: 700;
    color: white !important;
    background: var(--wp--preset--color--primary);
    transform: rotate(-3deg);
}

a.reserver:hover {
    color: var(--wp--preset--color--primary) !important;
    background: white;
    transform: rotate(-2deg);
}

a.reserver ion-icon {
    position: relative;
    top: 2px;
    flex-shrink: 0;
    margin-left: 3px;
    font-size: 18px;
    color: var(--wp--preset--color--white);
}

a.reserver:hover ion-icon {
    color: var(--wp--preset--color--primary);
}

.reservation-header {
    display: none;
}

/* ==========================================================================
   14. Pied de page
   ========================================================================== */

footer {
    position: relative;
    text-align: center;
    background: #f5f5f5;
}

.copyright {
    margin-bottom: 0;
    color: #ccc;
}

.site-copyright {
    overflow: hidden;
    font-size: 0.8em;
    line-height: 1.75;
}

.contact-info {
    margin-top: 20px;
}

/* ==========================================================================
   15. Mobile (≤ 680px)
   ========================================================================== */

@media only screen and (max-width: 680px) {
    h1 {
        max-width: 80%;
        font-size: 2.1em;
    }

    header#main-header {
        justify-content: space-around;
        align-items: center;
    }

    .custom-logo-link {
        width: 200px;
        margin-left: 0;
    }

    .box-logo {
        display: block;
        width: 226px;
        padding: 0;
    }

    .box-secondary-nav-trigger {
        width: 54px;
    }

    li.ion-social-facebook,
    li.ion-social-instagram-outline {
        display: inline-block;
    }

    .reservation-header {
        display: block !important;
        position: absolute;
        right: 30px;
        bottom: 20px;
    }

    .reservation-header ion-icon {
        font-size: 25px;
    }

    .reservation-header ion-icon:hover {
        color: var(--wp--preset--color--white);
    }

    .flex {
        flex-direction: column;
    }

    .col2 {
        grid-template-columns: 100% !important;
    }

    .single__header h2 {
        font-size: 1.2em;
    }

    .single__leftContent,
    .single__rightContent {
        float: none;
        width: 100%;
    }

    .single__rightContent {
        padding-top: 0 !important;
    }

    #infospratiques {
        margin: 0;
        padding: 0 10%;
    }
}

/* ==========================================================================
   16. Filtres du programme
   À charger APRÈS la feuille du thème (pour écraser un éventuel display:none
   sur .portfolio_filter).
   ========================================================================== */

.portfolio {
    --filter-accent: #111;      /* couleur des puces actives / badge */
    --filter-on-accent: #fff;   /* texte sur l'accent */
    --filter-soft: rgba(0, 0, 0, .06);
    --filter-speed: .3s;
}

/* Le bouton reste centré comme l'ancien filtre ; le panneau est aligné à gauche */
.portfolio .categories-grid {
   /* margin-bottom: 2.5rem;*/
}

.portfolio .categories {
    text-align: center;
}

/* --- Bouton déclencheur ------------------------------------------------- */

.toggle_filter {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    padding: .75em 1.25em;
    border: 2px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease;
}

.toggle_filter:hover,
.toggle_filter[aria-expanded="true"] {
    background: var(--filter-soft);
}

.toggle_filter:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.toggle_filter__icon,
.toggle_filter__chevron {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

/* Flèche : vers le bas = fermé, vers le haut = ouvert */
.toggle_filter__chevron {
    transition: transform var(--filter-speed) ease;
}

.toggle_filter[aria-expanded="true"] .toggle_filter__chevron {
    transform: rotate(180deg);
}

/* Badge "n filtres actifs" */
.toggle_filter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6em;
    height: 1.6em;
    padding: 0 .45em;
    border-radius: 999px;
    background: var(--filter-accent);
    color: var(--filter-on-accent);
    font-size: .8em;
}

.toggle_filter__count[hidden] {
    display: none;
}

/* --- Panneau (ouverture animée, sans hauteur fixe) ----------------------- */

.portfolio_filter {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden; /* retire les boutons du parcours clavier quand fermé */
    transition: grid-template-rows var(--filter-speed) ease, visibility 0s linear var(--filter-speed);
}

.portfolio_filter.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows var(--filter-speed) ease, visibility 0s;
}

.portfolio_filter__inner {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    text-align: left;
}

.portfolio_filter.is-open .portfolio_filter__inner {
    padding: 1.5rem;
}

.filter-group {
    flex: 1 1 calc(50% - 1rem);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* width/border/line-height : neutralise le style "legend" de Bootstrap 3 */
.filter-group__label {
    display: block;
    width: auto;
    margin: 0 0 .6rem;
    padding: 0;
    border: 0;
    line-height: 1.4;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* --- Puces de filtre (boutons radio natifs) ------------------------------ */

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.filter-chip {
    position: relative;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Le radio reste focusable et restitué ; seul son rendu visuel est masqué */
.filter-chip input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.filter-chip > span {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    min-height: 44px; /* cible confortable au toucher */
    padding: .45em 1em;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .9rem;
    line-height: 1.2;
    transition: background-color .2s ease, color .2s ease;
}

.filter-chip:hover span {
    background: var(--filter-soft);
}

.filter-chip input:focus-visible + span {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

/* État coché : couleur + graisse + coche → l'information ne passe pas que par la couleur (RGAA 3.1) */
.filter-chip input:checked + span {
    background: var(--filter-accent);
    border-color: var(--filter-accent);
    color: var(--filter-on-accent);
    font-weight: 700;
    transform: rotate(-5deg);
}

.filter-chip input:checked + span::before {
    content: "✓" / "";
    font-weight: 700;
}

/* --- Version mobile des étiquettes de filtre, optimisation de la hauteur ------------------------------ */
@media only screen and (max-width: 680px) {
.filter-chip > span {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    min-height: 32px;
    padding: .45em .8em;
    border: 1px solid rgb(0 0 0);
    border-radius: 12px;
    font-size: .9rem;
    line-height: 1.2;
    transition: background-color .2s ease, color .2s ease;
}}

/* Mode contraste élevé de Windows : les fonds disparaissent, on garde un repère */
@media (forced-colors: active) {
    .filter-chip input:checked + span {
        outline: 2px solid CanvasText;
        outline-offset: 2px;
    }
}

/* --- Pied du panneau ----------------------------------------------------- */

.filter-footer {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--filter-soft);
}

.filter-results {
    margin: 0;
    font-size: .9rem;
}

.filter-reset {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: .9rem;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}

.filter-reset[hidden] {
    display: none;
}

/* Masquage des cartes en mode sans Isotope */
.portfolio_container .item[hidden] {
    display: none !important;
}

/* --- Mobile : un groupe par ligne, les puces passent à la ligne ---------- */
/* (pas de défilement horizontal : redistribution à 320 px, RGAA 10.11) */

@media (max-width: 767px) {
    .filter-group {
        flex-basis: 100%;
    }

    .filter-footer {
        flex-wrap: wrap;
    }
}

/* --- Respect des préférences de mouvement -------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .portfolio_filter,
    .portfolio_filter.is-open,
    .toggle_filter__chevron {
        transition: none;
    }
}
