/*!
Theme Name: Kyoru
Theme URI: https://underscores.me/
Author: Kyoru
Author URI: https://kyoru.com
Description: Thème by Kyoru
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: kyoru
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
Kyoru is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
Normalizing styles have been helped along thanks to the fine work of Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
    TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing

# Base
	- Typography
	- Elements
	- Links
	- Forms

# Layouts

# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries

# plugins
	- Jetpack infinite scroll

# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/* # Generic

--------------------------------------------------------------*/

/* Normalize

--------------------------------------------------------------*/

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document

--------------------------------------------------------------*/

/*
   1. Correct the line height in all browsers.
   2. Prevent adjustments of font size after orientation changes in iOS.
*/

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

/* Sections

--------------------------------------------------------------*/

/* Remove the margin in all browsers. */

body {
    margin: 0;
}

/* Render the `main` element consistently in IE. */

main {
    display: block;
}

/* Correct the font size and margin on `h1` elements within `section` and `article` contexts in Chrome, Firefox, and Safari. */

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content

--------------------------------------------------------------*/

/*
   1. Add the correct box sizing in Firefox.
   2. Show the overflow in Edge and IE.
*/

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

/*
   1. Correct the inheritance and scaling of font size in all browsers.
   2. Correct the odd `em` font sizing in all browsers.
*/

pre {
    font-size: 1em;
}

/* Text-level semantics

--------------------------------------------------------------*/

/* Remove the gray background on active links in IE 10. */

a {
    background-color: transparent;
}

/*
   1. Remove the bottom border in Chrome 57-
   2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

/* Add the correct font weight in Chrome, Edge, and Safari. */

b,
strong {
    font-weight: bolder;
}

/*
   1. Correct the inheritance and scaling of font size in all browsers.
   2. Correct the odd `em` font sizing in all browsers.
*/

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

/* Add the correct font size in all browsers. */

small {
    font-size: 80%;
}

/* Prevent `sub` and `sup` elements from affecting the line height in all browsers. */

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

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content

--------------------------------------------------------------*/

/* Remove the border on images inside links in IE 10.*/

img {
    border-style: none;
}

/* Forms

--------------------------------------------------------------*/

/*
   1. Change the font styles in all browsers.
   2. Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

/*
   Show the overflow in IE.
   1. Show the overflow in Edge.
*/

button,
input {
    overflow: visible;
}

/*
   Remove the inheritance of text transform in Edge, Firefox, and IE.
   1. Remove the inheritance of text transform in Firefox.
*/

button,
select {
    text-transform: none;
}

/* Correct the inability to style clickable types in iOS and Safari. */

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

/* Remove the inner border and padding in Firefox. */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/* Restore the focus styles unset by the previous rule. */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/* Correct the padding in Firefox. */

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/*
   1. Correct the text wrapping in Edge and IE.
   2. Correct the color inheritance from `fieldset` elements in IE.
   3. Remove the padding so developers are not caught out when they zero out
      `fieldset` elements in all browsers.
*/

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

/* Add the correct vertical alignment in Chrome, Firefox, and Opera.*/

progress {
    vertical-align: baseline;
}

/* Remove the default vertical scrollbar in IE 10+. */

textarea {
    overflow: auto;
}

/*
   1. Add the correct box sizing in IE 10.
   2. Remove the padding in IE 10.
*/

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

/* Correct the cursor style of increment and decrement buttons in Chrome. */

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

/*
   1. Correct the odd appearance in Chrome and Safari.
   2. Correct the outline style in Safari.
*/

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

/* Remove the inner padding in Chrome and Safari on macOS. */

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/*
   1. Correct the inability to style clickable types in iOS and Safari.
   2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

/* Interactive

--------------------------------------------------------------*/

/* Add the correct display in Edge, IE 10+, and Firefox. */

details {
    display: block;
}

/* Add the correct display in all browsers. */

summary {
    display: list-item;
}

/* Misc

--------------------------------------------------------------*/

/* Add the correct display in IE 10+. */

template {
    display: none;
}

/* Add the correct display in IE 10. */

[hidden] {
    display: none;
}

/* Box sizing

--------------------------------------------------------------*/

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */

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

html {
    box-sizing: border-box;
}

/* # Base

--------------------------------------------------------------*/

/* Typography

--------------------------------------------------------------*/

body,
button,
input,
select,
optgroup,
textarea {
    font-size: 1rem;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
}

p {
    margin-bottom: 1.5em;
}

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

blockquote {
    margin: 0 1.5em;
}

address {
    margin: 0 0 1.5em;
}

pre {
    background: #eee;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}

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

mark,
ins {
    background: #fff9c0;
    text-decoration: none;
}

big {
    font-size: 125%;
}

/* Elements

--------------------------------------------------------------*/

body {
    background: #fff;
}

hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

ul,
ol {
    margin: 0;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li>ul,
li>ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */

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

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

table {
    margin: 0 0 1.5em;
    width: 100%;
}

/* Forms

--------------------------------------------------------------*/

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border: 1px solid;
    border-color: #ccc #ccc #bbb;
    border-radius: 3px;
    background: #e6e6e6;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1;
    padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
    border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: #666;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
    color: #111;
}



select {
    border: 1px solid #ccc;
}



textarea {
    width: 100%;
}

/* # Layouts

--------------------------------------------------------------*/

/* # Components

--------------------------------------------------------------*/

/* Navigation

--------------------------------------------------------------*/

/* Small menu. */

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	position: absolute;
	top: 100%;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
}

/* Small menu. */
.menu-toggle {
	display: none;
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages

--------------------------------------------------------------*/

.sticky {
    display: block;
}

.updated:not(.published) {
    display: none;
}

.page-content,
.entry-content,
.entry-summary {
    margin: 0;
}

.page-links {
    clear: both;
    margin: 0 0 1.5em;
}

/* Comments

--------------------------------------------------------------*/

.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}

/* Widgets

--------------------------------------------------------------*/

.widget {
    margin: 0;
}

.widget select {
    max-width: 100%;
}

/* Media

--------------------------------------------------------------*/

.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/* Make sure logo link wraps around logo image. */

.custom-logo-link {
    display: inline-block;
}

/* Captions

--------------------------------------------------------------*/

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

.wp-caption-text {
    text-align: center;
}

/* Galleries

--------------------------------------------------------------*/

.gallery {
    margin-bottom: 1.5em;
    display: grid;
    grid-gap: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
    grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
    display: block;
}

/* # Plugins

--------------------------------------------------------------*/

/* Jetpack infinite scroll

--------------------------------------------------------------*/

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */

.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
    display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */

.infinity-end.neverending .site-footer {
    display: block;
}

/* # Utilities

--------------------------------------------------------------*/

/* Accessibility

--------------------------------------------------------------*/

/* Text meant only for screen readers. */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    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;
}

/* Do not show the outline on the skip link target. */

#primary[tabindex="-1"]:focus {
    outline: 0;
}

/* Alignments

--------------------------------------------------------------*/

.alignleft {
    /*rtl:ignore*/
    float: left;

    /*rtl:ignore*/
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    /*rtl:ignore*/
    float: right;

    /*rtl:ignore*/
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/* FIN DE CONSERVATION 

--------------------------------------------------------------*/

:root {
    --blanc: #FFFFFF;
    --noir: #000;
    --tendre: #89B133;
    --sapin: #284741;
}

@font-face {
    
}

@font-face {
    
}

@font-face {
    
}

@font-face {
    
}

@font-face {
    
}

/*AUTRES*/

html {overflow-x: hidden;}

/*BARBA*/

.transition {position: fixed; z-index: 10000000; height: 100vh; width: 100vw; top: 0; left: 0; pointer-events: none; display: flex; display: none;}
.transition > div.first {position: absolute; right: 0; top: 0; height: 100vh; background-color: #FFFFFF; width: 100vw; pointer-events: all; display: flex; align-items: center; justify-content: center; overflow: hidden;}
.transition > div.first > svg {height: 90px; position: absolute; top: 50vh; right: 50vw; transform: translate(50%, -50%);}
.transition > div.first > .loading-bg {position: absolute; top: 0; left: 0; height: 100vh; width: 0; mix-blend-mode: difference; z-index: 1; transition: .3s;}
.transition > div.next {position: absolute; top: 0; height: 100vh; background-color: #FFFFFF; width: 0; pointer-events: all; overflow: hidden;}




/*REGLAGES GLOBAUX*/

body {background-color: var(--sapin); font-family: Heebo;}
main#primary {margin: 0 4rem; background-color: var(--blanc);}
h1, h2 {font-family: Josefin Sans;}
h2 {font-size: 2rem; line-height: 1;}
h1 span, h2 span {color: var(--tendre)!important;}

a.wp-element-button {background-color: var(--sapin);}
.wp-block-button__link {border-radius: 0;}
p.souligne a {text-decoration: none; position: relative; display: inline-block;  padding-bottom: 2px;}
p.souligne a::after {content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--tendre); transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);}
p.souligne a:hover::after {width: 100%;}

.boule > a{position:relative; z-index:2; overflow:hidden;}
.boule > a:before{content:""; width:500px; height:500px; background-color:#fff; position:absolute; left:calc(50% - 250px); top:calc(50% - 250px);	border-radius:50%; z-index:-1; transform:scale(0); transition:0.3s ease-in-out all;}
.boule > a:hover:before{background-color:#000; transform:scale(0.5);}

/*NAV*/
#masthead {margin: 4rem 4rem 0 4rem; background-color: var(--blanc);}
#masthead .inner-nav a svg {width: 200px; height: auto; margin: 40px;}

/*Burger*/
/* === BOUTON HAMBURGER === */
.burger-toggle {
    position: fixed;
    top: 110px;
    right: 110px;
    z-index: 1000;
    background: transparent;
    border: solid 1px;
    border-color: var(--tendre)!important;
    border-radius: 500px;
    cursor: pointer;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    height: auto;
    transition: all 0.3s;
}

nav .burger-toggle:hover {background-color: var(--sapin);}

.burger-label {
    display: flex;
    flex-direction: column;
    gap: 6px;          /* Espace entre les deux traits */
    width: 30px;
    flex-shrink: 0;
    width: 75px;
    text-transform: uppercase;
    color: var(--tendre)!important;
}

/* Conteneur des trois traits */
.burger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    flex-shrink: 0; /* empêche l'icône de rétrécir */
}

.burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--tendre);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-toggle.active .burger-label {
    color: var(--blanc);
}

.burger-toggle.active .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-toggle.active .burger-line:nth-child(2) {
    transform: translateY(-9px) rotate(-45deg);
}



/* === OVERLAY PLEIN ÉCRAN === */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98); /* ou couleur de fond */
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Conteneur interne (deux colonnes) */
.menu-overlay-inner {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.menu-col-left  {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    background-color: var(--tendre);
}

.menu-col-right {
    flex: 0 0 70%;
    max-width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    background-color: var(--sapin);
}



/* Style colonne gauche*/

#masthead #menuOverlay .site-branding {text-align: center;}
#masthead #menuOverlay .site-branding svg {width: 200px; padding-top: 110px;}

/* Style du menu dans la colonne droite */
.menu-col-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: end;
    padding: 10vh;
}

.menu-col-right ul li {
    margin-bottom: 15px;
}

.menu-col-right ul li a {
    font-size: 2rem;
    text-decoration: none;
    color: var(--tendre);
    transition: color 0.2s;
}

.menu-col-right ul li a:hover {
    color: var(--blanc);
}

/* Sous-menus (éventuellement) */
.menu-col-right ul ul {
    padding-left: 20px;
    margin-top: 10px;
}
.menu-col-right ul ul li a {
    font-size: 1.5rem;
}

/* Responsive : sur petits écrans, les colonnes passent en ligne */
@media (max-width: 768px) {
    .menu-overlay-inner {
        flex-direction: row;
        padding: 0;
    }
    .menu-col-left,
    .menu-col-right {
        flex: 0 0 100%;
        max-width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 10px 0;
    }
    .menu-col-left {
        border-bottom: none;
        margin-bottom: 0;
    }
    .menu-col-right ul li a {
        font-size: 1.8rem;
    }
}

/* mdr-accueil (accueil page d'accueil) */
#mdr-accueil {padding-bottom: 10rem;}
#mdr-accueil > div {width: 90%;}
#mdr-accueil > div > div {width: 50%;}
#mdr-accueil > div > div:first-child {padding: 2rem;}
#mdr-accueil > div > div:first-child h1 {font-size: 4vw; line-height: 1;}

/* mdr-accueil2 (accueil autres pages)*/
#mdr-accueil2 {width: 100%;padding-bottom: 10rem;}
#mdr-accueil2 > div {width: 90%;}
#mdr-accueil2 > div:last-child {padding-top: 5rem;}
#mdr-accueil2 figure {width: 100%;} 
#mdr-accueil2 img {width: 100%; height: 60vh; object-fit: cover;}
#mdr-accueil2 h1 {font-size: 4vh; line-height: 1;}
 
#mdr-expertise {padding-bottom: 10rem;}
#mdr-expertise > div {width: 70%; background-color: var(--sapin);}
#mdr-expertise > div > div {padding: 3vh;}
#mdr-expertise > div > div > div {padding: 1rem;}
#mdr-expertise h3 {font-size: 1.5rem; line-height: 1;}
.width50 {width: 50%;}
.width50 > div {padding: 1rem;}

#mdr-prestations {padding-bottom: 10rem;}
#mdr-prestations h2 {width: 30%; font-size: 3vh; font-family: Josefin Sans; padding-bottom: 5rem;}
#mdr-prestations > div {width: 90%; justify-content: space-around!important;}
#mdr-prestations .carte {max-width: 600px; background-color: var(--sapin); padding: 3vh; height: 850px;}
#mdr-prestations .carte > div:last-child {padding: 3vh; gap: 5vh;}
#mdr-prestations .carte h3 {font-size: 2.5vh;}
#mdr-prestations .carte h3 span {color: var(--blanc);}
#mdr-prestations .carte > div:last-child > div:last-child {width: 100%;}
#mdr-prestations .carte p {color: var(--blanc);}
#mdr-prestations .carte a {text-decoration: none; color: var(--blanc);}

#mdr-detail {padding-bottom: 10rem;}
#mdr-detail h2 {padding-bottom: 5rem;}
#mdr-detail > div {width: 70%; gap: 2vh;} 
#mdr-detail > div > div {background-color: var(--sapin); padding: 6vh 4vh;}
#mdr-detail > div h3 {font-size: 2.5vh; line-height: 1;}
#mdr-detail > div p {color: var(--blanc);}

#mdr-detail-formations {padding-bottom: 10rem;}
#mdr-detail-formations h2 {padding-bottom: 5rem;}
#mdr-detail-formations p:first-child {padding-bottom: 5rem;}
#mdr-detail-formations > div {width: 70%; gap: 2vh;}
#mdr-detail-formations > div > div {background-color: var(--sapin); padding: 3vh;}
#mdr-detail-formations > div > div > div {width: 70%; padding: 3vh;}
#mdr-detail-formations > div > div > div p {color: var(--blanc);}

#mdr-video, #mdr-preuve {padding-bottom: 10rem; width: 100%;}
#mdr-video > div, #mdr-preuve > div {background-color: var(--sapin); padding: 5rem 0; width: 100%;}
#mdr-video > div > div {width: 70%;}
#mdr-video > div > div h2, #mdr-video > div > div p {color: var(--blanc);}
#mdr-preuve > div > div {width: 80%;}
#mdr-preuve > div > div > div:first-child {width: 30%; background-color: var(--tendre); padding: 5vh;}
#mdr-preuve > div > div > div:last-child {width: 70%; padding: 5vh;}
#mdr-preuve > div > div > div:first-child div p:first-child {color: var(--blanc); font-weight: 700;}
#mdr-preuve > div > div > div:last-child h2 {color: var(--blanc); padding-bottom: 2rem;}
#mdr-preuve > div > div > div:last-child p {color: var(--blanc); font-weight: lighter; font-size: 1.5vh; padding: 1vh; flex: 1;}

#mdr-transformation, #mdr-transformation2 {padding-bottom: 10rem;}
#mdr-transformation > div > div, #mdr-transformation2 > div > div {width: 70%; background-color: var(--tendre); padding: 5vh; color: var(--blanc); gap: 5vh;}
#mdr-transformation > div > div .wp-block-buttons, #mdr-transformation2 > div > div .wp-block-buttons {width: 100%;}
#mdr-transformation > div > div p {width: 70%;}
#mdr-transformation2 > div > div p {width: 100%; padding-bottom: 1rem;}

#mdr-methode {padding-bottom: 15rem;}
#mdr-methode > div {rotate: 10deg; width: 100%; gap: 5vh;padding-bottom: 5rem;}
#mdr-methode > div > div {width: 100%; gap: 3rem;}
#mdr-methode h2 {width: 30%; font-size: 3vh; font-family: Josefin Sans; padding-bottom: 10rem;}
#mdr-methode .carte-methode {width: 350px; padding: 3vh; background-color: var(--sapin); rotate: -10deg;}
#mdr-methode .carte-methode img {height: 80px; object-fit: cover; width: auto; border-radius: 9999px;}
#mdr-methode .carte-methode > div {width: 100%; margin-bottom: 1rem;}
#mdr-methode .carte-methode h3 {font-size: 2vh; line-height: 1; padding-bottom: 1rem;}
#mdr-methode .carte-methode div:last-child p {color: var(--blanc);}

#mdr-maillage-prestations {padding-bottom: 10rem;}
#mdr-maillage-prestations .width50:last-child {gap: 2rem;}
#mdr-maillage-prestations .width50:last-child h3 {width: 100%;}
#mdr-maillage-prestations .width50:last-child p {width: 100%; display: flex; justify-content: flex-end;}
#mdr-maillage-prestations .width50:last-child p a {text-decoration: none; color: var(--blanc);}
#mdr-maillage-prestations h2 {padding-bottom: 5rem;}
#mdr-maillage-prestations h3 {font-size: 2.5vh; line-height: 1;}
#mdr-maillage-prestations h3 span {color: var(--blanc);}
#mdr-maillage-prestations > div > div {width: 60%; background-color: var(--sapin); padding: 5vh; color: var(--blanc); gap: 5vh;}

#mdr-blog {padding-bottom: 10rem;}
#mdr-blog h2 {width: 30%; font-size: 3vh; font-family: Josefin Sans; padding-bottom: 5rem;}

#mdr-tous-les-articles {padding-bottom: 10rem;}

article.wp-show-posts-single img {height: 700px; object-fit: cover !important;}
#mdr-blog section {width: 95%; gap: 1rem;}
#mdr-blog section article > div {margin: 0;}
.wp-show-posts-inner .wp-show-posts-image {margin-bottom: 0!important;}
.wp-show-posts-entry-header {margin: 0!important;}
.article-flex {width: 100%; display: flex; justify-content: space-between; background-color: var(--sapin); color: var(--blanc);}
.article-flex h3 {padding: 1rem; font-size: 1.3rem; line-height: 1;}
.article-flex h3 a {color: var(--tendre);}
.wpsp-read-more {display: flex; justify-content: center; align-items: flex-end;}
.article-flex a.wp-show-posts-read-more, a.wp-show-posts-read-more:visited {position: relative; width: 100px; border: none; color: var(--blanc);}
.article-flex a.wp-show-posts-read-more:focus, a.wp-show-posts-read-more:hover {border: none; color: var(--blanc); background: transparent; text-decoration: none;}

.article-flex a.wp-show-posts-read-more::after {content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--tendre); transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);}
.article-flex a.wp-show-posts-read-more:hover::after {width: 100%;}

/*Filtre par catégories articles*/

#mdr-filtres {padding-bottom: 2rem;}

.category-filter-nav {display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; background-color: var(--tendre); border-radius: 30px; border: solid 2px var(--tendre)}
.filter-btn {padding: 8px 18px; border: 2px solid var(--tendre); background: transparent; cursor: pointer; border-radius: 30px; font-size: 14px; font-weight: 500; transition: all 0.3s ease; color: #333; /* couleur par défaut pour les autres catégories */}
.filter-btn:hover {border-color: var(--sapin);}
.filter-btn.active {background: var(--sapin); /* couleur par défaut pour "Tous" et les autres */ color: #fff; border-color: var(--sapin);}
.filter-btn.active:hover {background: var(--sapin); border-color: var(--sapin);}
.article-hidden {display: none !important;}

#mdr-temoins {padding-bottom: 15rem;}
#mdr-temoins > div {rotate: 10deg; width: 100%;}
#mdr-temoins > div > div {width: 100%;}
#mdr-temoins > div > div > div, #mdr-temoins > div > div > div > div {gap: 5vh;}
#mdr-temoins h2 {width: 30%; font-size: 3vh; font-family: Josefin Sans; padding-bottom: 10rem;}
#mdr-temoins .carte-temoins {width: 350px; padding: 3vh; background-color: var(--sapin); rotate: -10deg; min-height: 565px;}
#mdr-temoins .carte-temoins img {height: 80px; object-fit: cover; width: auto; border-radius: 9999px;}
#mdr-temoins .carte-temoins > div {width: 100%; margin-bottom: 1rem;}
#mdr-temoins .carte-temoins h3 {font-size: 3vh; margin-bottom: -1.5rem;}
#mdr-temoins .carte-temoins > div:last-child {min-height: 370px;}
#mdr-temoins .carte-temoins div:last-child p {color: var(--blanc);}

#mdr-faq {padding-bottom: 10rem;}
#mdr-faq h2 {width: 30%; font-size: 3vh; font-family: Josefin Sans; padding-bottom: 2rem;}
/*#mdr-faq p {width: 50%;}*/
#mdr-faq h3 {border: solid 1px; border-radius: 999px; padding: 0 4rem; color: var(--sapin);}
#mdr-faq .wp-block-accordion-panel.is-layout-flow.wp-block-accordion-panel-is-layout-flow {width: 670px;}
/* Cible le conteneur de la FAQ */
#mdr-faq .wp-block-accordion-item {overflow: hidden; transition: all 0.3s ease-in-out;}
#mdr-faq .wp-block-accordion-panel {max-height: 0; opacity: 0; transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-in-out, margin 0.3s ease; overflow: hidden;}
#mdr-faq .wp-block-accordion-item.is-open .wp-block-accordion-panel {max-height: 800px; opacity: 1;}
#mdr-faq .wp-block-accordion-heading__toggle-icon {transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;}
#mdr-faq .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon {transform: rotate(45deg) !important;}
#mdr-faq h3 {transition: background-color 0.4s ease;}
#mdr-faq h3:hover {background-color: var(--tendre);}

#mdr-formulaire {width: 80%; font-family: Heeboo!important; padding-bottom: 10rem;}
#mdr-formulaire > div:first-child {padding: 0 5vh;}
#mdr-formulaire > div:first-child > div {width: 100%;}
#mdr-formulaire > div:first-child > div > div:first-child p:first-child {font-size: 3vh; margin-bottom: -1.3rem;}
#mdr-formulaire > div:first-child > div > div:last-child p:first-child {margin-bottom: -0.8rem;}
#mdr-formulaire #happyforms-form-190 .input-none input {border-style: none;}
#mdr-formulaire form input {font-family: Heeboo!important;}
#mdr-formulaire form textarea {height: 46px; font-family: Heeboo!important;}
#mdr-formulaire .happyforms-form__part.happyforms-part.happyforms-part--submit {justify-content: center;}
#mdr-formulaire .happyforms-form__part.happyforms-part.happyforms-part--submit button {margin: 0; background-color: var(--sapin);}

#mdr-article-limites {max-width: 1500px; padding-bottom: 10rem;}
#mdr-article-limites #mdr-article-chapo {font-style: italic; font-weight: 600;}
#mdr-article-limites h2 {padding: 5vh 0 3vh 0;}

/* Iframe vidéo page Qui suis-je*/
.page-id-30 .wp-block-embed iframe {width: 100%; height: 80vh;}

#mentions-legales {width: 500px; padding-bottom: 10rem; padding-bottom: 10rem;}
#mentions-legales h2 {font-size: 1.5rem; padding: 5rem 0 2rem 0;}

#mdr-404 {width: 80%; font-family: Heeboo!important; padding: 2rem 0 10rem 0;}
#mdr-404 > div:first-child {padding: 0 5vh;}
#mdr-404 > div:first-child > div {width: 100%;}
#mdr-404 > div:last-child {gap: 2rem;}
#mdr-404 > div:last-child h1 {font-size: 4rem;}


/* Pied de page */

#colophon #block-3 > div > div:first-child {width: 100%; padding: 4rem; justify-content: space-around;}
#colophon #block-3 > div > div:first-child img {width: 300px;}
#colophon #block-3 > div > div:first-child .mdr-footer-contact {width: 30%;}
#colophon #block-3 > div > div:first-child p {color: var(--blanc); font-size: 1.5rem; font-weight: 100;}
#colophon #block-3 > div > div:first-child a {color: var(--blanc); font-size: 1rem; font-weight: 500; text-decoration: none; transition: transform 0.3s ease;}
#colophon #block-3 > div > div:first-child a:hover {transform: scale(1.1);}
#colophon #block-3 > div > div:last-child {width: 100%; background-color: var(--tendre);}
#colophon #block-3 > div > div:last-child p.souligne a:after {background-color: var(--sapin);}
#colophon #block-3 > div > div:last-child a {color: var(--noir);}

div.kyoru-credits {background-color: var(--noir); z-index: 999;}
div.kyoru-credits p {margin: 0;}
div.kyoru-credits > div {display: flex; flex-direction: row; justify-content: center; gap: 10px; padding: 5px 0;}
div.kyoru-credits > div > p {font-family: Outfit!important; color: var(--blanc); font-weight: 100;}
div.kyoru-credits > div svg {height: 20px; margin-top: 4px;}





/* Responsive*/

/* Marges vertes autour du site + position nav */
@media screen and (max-width: 1000px) {
    #masthead {margin: 1rem 1rem 0 1rem;}
    main#primary {margin: 0 1rem;}
    .burger-toggle {top: 60px; right: 50px;}
}
@media screen and (max-width: 500px) {
    span.burger-label {display: none;}
 }
@media screen and (max-width: 480px) {
    #masthead .inner-nav a svg {margin: 20px;}
    .burger-toggle {top: 40px; right: 50px;}
}
/*@media screen and (max-width: 300px) {
   #masthead {margin: 0;}
    main#primary {margin: 0;}
}*/

@media screen and (max-width: 1000px) {
    #mdr-accueil > div {width: 95%; flex-direction: column-reverse;}
    #mdr-accueil > div > div:first-child h1 {font-size: 4vh;}
    #mdr-accueil > div > div {width: 100%;}
}

@media screen and (max-width: 1200px) {
    #mdr-accueil2 > div {width: 95%;}
    #mdr-accueil2 > div:last-child {flex-direction: column-reverse}
    #mdr-accueil2 > div:last-child .width50 {width: 95%;}
    #mdr-accueil2 h1 {text-align: left;}
}

@media screen and (max-width: 1800px) {
    #mdr-expertise > div {width: 95%;}
}
@media screen and (max-width: 1300px) {
    #mdr-expertise > div {flex-direction: column;}
    #mdr-expertise > div >  figure {width: 100%;}
    #mdr-expertise > div > figure img {height: 500px; width: 100%; object-fit: cover;}
    #mdr-expertise > div > div {align-items: center;}
    #mdr-expertise > div > div > div:first-child {flex-direction: column-reverse;}
    #mdr-expertise > div > div > div h2, #mdr-expertise > div > div > div figure {width: 90%;}
}
@media screen and (max-width: 850px) {
    #mdr-expertise > div {width: 95%;}
    #mdr-expertise > div > div {padding: 1rem;}
    #mdr-expertise > div > div > div > div {flex-direction: column;}
    #mdr-expertise > div > div > div:last-child {flex-direction: column;}
    #mdr-expertise .width50 {width: 100%;}
}

@media screen and (max-width: 1500px) {
    #mdr-detail h2 {width: 95%; text-align: center;}
    #mdr-detail > div {width: 95%;}
    #mdr-detail > div > div {flex-direction: column; padding: 6vh 4vh;}
    #mdr-detail > div > div .width50 {width: 95%;}
}

@media screen and (max-width: 1300px) {
    #mdr-detail-formations {width: 95%;}
    #mdr-detail-formations > div {width: 95%;}
}
@media screen and (max-width: 1000px) {
    #mdr-detail-formations {width: 95%;}
    #mdr-detail-formations > div > div {flex-direction: column;}
    #mdr-detail-formations > div > div > div {width: 100%;}
}

@media screen and (max-width: 850px) {
    #mdr-prestations h2 {width: 90%; font-size: 4vh;}
    #mdr-prestations > div {flex-direction: column;}
    #mdr-prestations .carte {height: auto;}
}
@media screen and (max-width: 486px) {
    #mdr-prestations {flex-direction: row; justify-content: center;}
}

@media screen and (max-width: 1350px) {
    #mdr-methode {padding-bottom: 5rem;}
    #mdr-methode h2 {width: 95%; font-size: 4vh; text-align: center; padding-bottom: 5rem;}
    #mdr-methode > div {rotate: 0deg;}
    #mdr-methode > div > div {flex-direction: column; align-items: center;}
    #mdr-methode .carte-methode {rotate: 0deg;}
}

@media screen and (max-width: 1000px) {
    #mdr-video > div > div {width: 95%;}
    #mdr-video > div > div {flex-direction: column-reverse;}
    #mdr-video .width50 {width: 100%;}
    #mdr-video div.width50 {align-items: center;}
}

@media screen and (max-width: 1500px) {
    #mdr-preuve > div > div {width: 95%;}
}
@media screen and (max-width: 1200px) {
    #mdr-preuve > div > div {flex-direction: column;}
    #mdr-preuve > div > div > div:first-child {width: 100%;}
    #mdr-preuve > div > div > div:last-child {width: 100%;}
}
@media screen and (max-width: 1200px) {
    #mdr-preuve > div > div > div:last-child > div {flex-direction: column;}
}

@media screen and (max-width: 1000px) {
    #mdr-transformation > div > div, #mdr-transformation2 > div > div {width: 95%;}
    #mdr-transformation > div > div h2, #mdr-transformation2 > div > div h2 {font-size: 4vh;}
    #mdr-transformation > div > div p {width: 100%;}
}

@media screen and (max-width: 1500px) {
    #mdr-maillage-prestations h2 {width: 95%; font-size: 4vh; text-align: center;}
    #mdr-maillage-prestations > div > div {width: 95%;}
}
@media screen and (max-width: 1000px) {
    #mdr-maillage-prestations > div > div {flex-direction: column;}
    #mdr-maillage-prestations > div > div .width50 {width: 95%;}
}    

@media screen and (max-width: 1000px) {
    #mdr-blog h2 {width: 95%; font-size: 4vh;}
    #mdr-blog section.wp-show-posts-columns.wp-show-posts {align-items: center; justify-content: center;}
    #mdr-blog article {width: 95%;}
    #mdr-blog .wp-show-posts-columns#wpsp-123 {margin-left: 0;}
    #mdr-blog .wp-show-posts-columns#wpsp-123 .wp-show-posts-inner {margin: 0 0 2em 0;}
}
@media screen and (max-width: 1000px) {
    #mdr-filtres #category-filter-nav {flex-direction: column; border: none; border-radius: 20px;}
    #mdr-filtres #category-filter-nav button {border-radius: 20px;}
}
@media screen and (max-width: 1000px) {
    #mdr-tous-les-articles {width: 95%;}
}

@media screen and (max-width: 1800px) {
    #mdr-temoins {padding-bottom: 10rem;}
    #mdr-temoins h2 {font-size: 4vh; padding-bottom: 4rem;}
    #mdr-temoins > div {rotate: 0deg;}
    #mdr-temoins > div > div > div > div {flex-direction: column;}
    #mdr-temoins .carte-temoins {rotate: 0deg;}
}

@media screen and (max-width: 1000px) {
    #mdr-temoins h2 {width: 90%;}
    #mdr-temoins > div > div > div {flex-direction: column;}
}
@media screen and (max-width: 440px) {
    #mdr-temoins .carte-temoins {width: 95%;}
}

@media screen and (max-width: 1000px) {
    #mdr-faq h2 {font-size: 4vh;}
    #mdr-faq h3 {font-size: 1rem;}
    #mdr-faq > div {width: 95%;}
    #mdr-faq .wp-block-accordion-panel.is-layout-flow.wp-block-accordion-panel-is-layout-flow {width: 95%;} 
}

@media screen and (max-width: 1400px) {
    #mdr-formulaire {width: 95%; flex-direction: column;}
}
@media screen and (max-width: 1200px) {
    #mdr-formulaire .width50 {width: 95%;}
    #mdr-formulaire > div:first-child {padding: 0;}
}

/* Iframe vidéo page Qui suis-je*/
@media screen and (max-width: 1200px) {
.page-id-30 .wp-block-embed iframe {height: auto; padding-top: 5rem;}
}

@media screen and (max-width: 1400px) {
    #mdr-404 {width: 95%; flex-direction: column;}
    #mdr-404 h1 {width: 100%;}
}
@media screen and (max-width: 1200px) {
    #mdr-404 .width50 {width: 95%;}
    #mdr-404 > div:first-child {padding: 0;}
}

@media screen and (max-width: 700px) {
    #mentions-legales {max-width: 95%;}
}

@media screen and (max-width: 850px) {
    #colophon #block-3 > div > div:first-child {flex-direction: column; gap: 5rem;}
    #colophon #block-3 > div > div:first-child .mdr-footer-contact {width: 90%; align-items: center;}
}