/* ================ */
/* LIENS & TYPOGRAPHIE */
/* ================ */
.entry-content a {
    color: #a8b4cd;
    text-decoration: none;
}
.entry-content a:hover,
#widget-area-2 a:hover,
#widget-area-3 a:hover {
    color: #a8b4cd;
    text-decoration: underline;
}
.entry-content a:visited { color: #a8b4cd; }

/* ================ */
/* LAYOUT GENERAL */
/* ================ */
.no-sidebar .site { max-width: 1180px; }
.site { position: relative; }

/* ================ */
/* FORMULAIRES & ELEMENTS */
/* ================ */
.no-resize { resize: none; }
.contact-form .grunion-field-wrap textarea { width: 100%; }
a[id^="wp-block-file--media"] { font-weight: bold; }

/* ================ */
/* ALIGNEMENT & DISPOSITION */
/* ================ */
body,
.has-text-align-justify {
    word-break: break-word;
    overflow-wrap: break-word;
}
.has-text-align-justify { hyphens: auto; }
.has-text-align-justify span { hyphens: initial; }

/* ================ */
/* MEDIA QUERIES - STRUCTURE ORIGINALE */
/* ================ */
@media screen and (min-width: 1000px) {
    .front-page-content-area.content-area,
    .content-wrapper .content-area {
        margin: auto;
        float: none;
        max-width: 900px;
        padding-left: 0;
        padding-right: 0;
    }
}

@media screen and (max-width: 1000px) {
    .front-page-content-area.content-area,
    .content-wrapper .content-area {
        margin: auto;
        float: none;
        max-width: 900px;
        padding-left: 0;
        padding-right: 0;
    }
    .front-page-content-area.content-area .entry-title {
        margin-top: 50px !important;
    }
}

@media screen and (max-width: 700px) {
    .side-image img {
        width: 100px !important;
        height: auto !important;
    }
    .front-page-content-area.content-area .entry-title {
        margin-top: 50px !important;
    }
    .site-description {
        line-height: 1em;
    }
    .wp-block-group {
        flex-direction: column;
    }
    .wp-block-group .wp-block-spacer {
        display: none;
    }
    .wp-block-group img {
        max-width: 200px;
    }
    .wp-block-image {
        order: -1;
    }
    .wp-container-content-5,
    .wp-container-content-6,
    .wp-container-content-7,
    .wp-container-content-8,
    .wp-container-content-9,
    .wp-container-content-10 {
        flex-basis: auto !important;
    }
}

/* ================ */
/* MENU MOBILE - CONSERVATION DE LA STRUCTURE */
/* ================ */
@media screen and (max-width: 1024px) {
    .menu-item-has-children > a {
        position: relative;
        padding-right: 30px !important;
        min-height: 40px;
        display: flex !important;
        align-items: center;
    }
    .menu-item-has-children > a::after {
        content: "▼";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        pointer-events: none;
        transition: transform 0.2s;
    }
    .menu-item-has-children.open > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    .menu-item-has-children > ul {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
        padding-left: 15px !important;
    }
    .menu-item-has-children.open > ul {
        max-height: 1000px;
        opacity: 1;
    }
    .menu-item-has-children > a:before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
    }
    
    /* Titre - version originale */
    .entry-title {
        text-align: center !important;
        line-height: 1em !important;
    }
    .wp-block-columns .wp-block-column:has(.wp-block-image) {
        order: -1;
    }
}

/* ================ */
/* COMPOSANTS SPECIFIQUES - IDENTIQUE A L'ORIGINAL */
/* ================ */
#polylang-2 {
    position: absolute !important;
    top: 20px;
    right: 30px;
    z-index: 9999;
}

#widget-area-2,
#widget-area-3 {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.widget_polylang ul {
    display: flex !important;
    gap: 5px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.widget_polylang li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.wp-element-caption {
    font-size: 1.4rem !important;
    line-height: 1.2;
}

@media screen and (min-width: 1025px) {
    .menu-item-has-children:hover > ul {
        display: block !important;
        opacity: 1 !important;
        max-height: none !important;
    }
}
.menu-item-has-children.open > a::after {
    transform: translateY(-50%) rotate(180deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}