/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 1.6.2
*/

/* Navigation DECOENLIGNE — menu WordPress « Menu », esprit Prestige Concept. */
:root {
  --deo-ink: #171411;
  --deo-panel: #0a0c0e;
  --deo-gold: #d2aa4c;
  --deo-gold-light: #f6e7c6;
  --deo-border: rgba(210, 170, 76, .72);
}

#Top_bar {
  border-bottom: 1px solid rgba(180, 139, 52, .2);
  box-shadow: 0 8px 26px rgba(24, 18, 10, .07);
}

#Top_bar .container { width: min(100% - 48px, 1440px); max-width: 1440px; }
#Top_bar .top_bar_left { display: flex !important; align-items: center; width: calc(100% - 150px); }
#Top_bar .logo { position: static !important; flex: 0 0 auto; order: 1; }
#Top_bar .menu_wrapper { display: flex !important; align-items: center; justify-content: flex-end; flex: 1 1 auto; order: 2; }
#Top_bar #menu > ul { display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 2.2vw, 38px); }

#Top_bar #menu > ul > li > a {
  padding: 0 !important;
  color: var(--deo-ink);
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 76px !important;
  transition: color .2s ease;
}

#Top_bar #menu > ul > li > a span:not(.description) { padding: 0; border: 0; line-height: inherit; }
#Top_bar #menu > ul > li:not(.deo-menu-contact):hover > a,
#Top_bar #menu > ul > li:not(.deo-menu-contact) > a:focus-visible {
  padding-right: 4px !important;
  padding-left: 4px !important;
  border-bottom: 2px solid #111 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #b07a16 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .48) !important;
}

#Top_bar #menu ul.sub-menu {
  min-width: 290px;
  padding: 12px 22px;
  border: 1px solid rgba(210, 170, 76, .62);
  border-top: 2px solid var(--deo-gold);
  border-radius: 3px;
  background: rgba(10, 12, 14, .98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .35);
}

#Top_bar #menu ul.sub-menu li { border-bottom: 1px solid rgba(220, 195, 140, .16); }
#Top_bar #menu ul.sub-menu li:last-child { border-bottom: 0; }
#Top_bar #menu ul.sub-menu li a {
  padding: 12px 0 !important;
  color: rgba(255, 250, 238, .92);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
#Top_bar #menu ul.sub-menu li:hover > a,
#Top_bar #menu ul.sub-menu li.current-menu-item > a { color: #e4bd68; background: transparent; }

/* Bouton Contact desktop, équivalent de « Prendre contact » sur Prestige. */
#Top_bar #menu > ul > li.deo-menu-contact > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 20px !important;
  border: 1px solid #171411;
  border-radius: 999px;
  background: #171411;
  color: #d2aa4c !important;
  line-height: 38px !important;
  text-transform: none;
}
#Top_bar #menu > ul > li.deo-menu-contact:hover > a,
#Top_bar #menu > ul > li.deo-menu-contact:focus-within > a {
  border-color: #d2aa4c;
  background: #d2aa4c;
  color: #171411 !important;
}

@media only screen and (min-width: 1240px) {
  #Top_bar #menu .menu-toggle,
  #Top_bar #menu .menu-arrow { display: none !important; }
  #Top_bar #menu ul.sub-menu {
    display: none !important;
    width: max-content !important;
    min-width: 330px !important;
    max-width: min(500px, calc(100vw - 40px)) !important;
  }
  #Top_bar #menu ul.sub-menu > li > a { white-space: nowrap !important; }
  #Top_bar #menu li:hover > ul.sub-menu { display: block !important; }
}

.deo-contact-toggle { display: none; }

@media only screen and (max-width: 1239px) {
  #Top_bar .container { width: calc(100% - 28px); }
  #Top_bar .column.one { display: flex; align-items: center; width: 100%; margin: 0; }
  body #Top_bar .top_bar_left { display: flex !important; align-items: center; width: 100% !important; min-height: 76px; }
  body #Top_bar .logo { position: static !important; display: block !important; margin-right: auto; order: 1; }
  #Top_bar .logo #logo { margin: 0 !important; padding: 6px 0 !important; }
  #Top_bar .logo #logo img.logo-mobile {
    width: auto;
    max-width: min(48vw, 220px);
    max-height: 64px !important;
    object-fit: contain;
  }
  body #Top_bar .menu_wrapper,
  body.mobile-header-mini #Top_bar .menu_wrapper {
    position: static !important;
    display: flex !important;
    visibility: visible !important;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    order: 2;
  }

  #Top_bar a.responsive-menu-toggle,
  #Top_bar a.deo-contact-toggle {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--deo-border);
    border-radius: 3px;
    background: var(--deo-panel);
    color: var(--deo-gold-light) !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
    text-decoration: none;
    transition: color .2s, background .2s, transform .2s;
  }
  body.mobile-header-mini #Top_bar a.responsive-menu-toggle,
  body.mobile-header-mini #Top_bar a.deo-contact-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #Top_bar a.responsive-menu-toggle i { color: inherit; font-size: 24px; line-height: 1; }
  #Top_bar a.deo-contact-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
  }
  #Top_bar a.responsive-menu-toggle:hover,
  #Top_bar a.responsive-menu-toggle:focus-visible,
  #Top_bar a.deo-contact-toggle:hover,
  #Top_bar a.deo-contact-toggle:focus-visible {
    color: #17130d !important;
    background: var(--deo-gold);
    outline: 0;
    transform: translateY(-1px);
  }
  #Top_bar a.responsive-menu-toggle:hover i,
  #Top_bar a.responsive-menu-toggle:focus-visible i {
    color: #17130d !important;
  }
  #Top_bar a.deo-contact-toggle:hover svg,
  #Top_bar a.deo-contact-toggle:focus-visible svg {
    color: #17130d !important;
    stroke: #17130d !important;
  }

  #Top_bar .top_bar_right { display: none !important; }
  #Side_slide {
    width: min(390px, calc(100vw - 28px)) !important;
    border-left: 1px solid var(--deo-border);
    background: rgba(10, 12, 14, .99) !important;
    box-shadow: -18px 0 42px rgba(0, 0, 0, .36);
  }
  #Side_slide .close-wrapper a.close { color: var(--deo-gold-light) !important; }
  #Side_slide .menu_wrapper { padding: 8px 22px 28px; }
  #Side_slide .menu_wrapper ul,
  #Side_slide .menu_wrapper li { border-color: rgba(220, 195, 140, .18) !important; }
  #Side_slide .menu_wrapper a {
    color: rgba(255, 250, 238, .94) !important;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
  }
  #Side_slide .menu_wrapper li.current-menu-item > a,
  #Side_slide .menu_wrapper li.current-menu-ancestor > a,
  #Side_slide .menu_wrapper li:hover > a { color: #e4bd68 !important; }
  #Side_slide .menu_wrapper ul.sub-menu a { color: rgba(255, 250, 238, .74) !important; font-size: 15px; font-weight: 500; }
  #Side_slide .menu_wrapper .menu-toggle { color: var(--deo-gold) !important; }
  #Side_slide .extras { border-color: rgba(220, 195, 140, .18) !important; }
  #Side_slide .extras,
  #Side_slide .extras a,
  #Side_slide .extras p,
  #Side_slide .extras .header-cart-total,
  #Side_slide .extras .header-cart-count { color: #fff !important; }
  #Side_slide .extras svg,
  #Side_slide .extras svg .path { color: #fff !important; stroke: #fff !important; }

  #Side_slide .menu_wrapper li > a:not(.menu-toggle),
  #Side_slide .menu_wrapper li.current-menu-item > a:not(.menu-toggle),
  #Side_slide .menu_wrapper li.current-menu-ancestor > a:not(.menu-toggle) {
    background: transparent !important;
    color: rgba(255, 250, 238, .94) !important;
  }
  #Side_slide .menu_wrapper li > a:not(.menu-toggle) span { color: rgba(255, 250, 238, .94) !important; }
  #Side_slide .menu_wrapper li > .menu-toggle { background: transparent !important; color: var(--deo-gold) !important; }
  #Side_slide .menu_wrapper li > .menu-toggle i { color: var(--deo-gold) !important; }
  #Side_slide .menu_wrapper li.submenu.hover > a:not(.menu-toggle),
  #Side_slide .menu_wrapper li.submenu.hover > .menu-toggle { background: var(--deo-gold) !important; color: #111 !important; }
  #Side_slide .menu_wrapper li.submenu.hover > a:not(.menu-toggle) span,
  #Side_slide .menu_wrapper li.submenu.hover > a:not(.menu-toggle) i,
  #Side_slide .menu_wrapper li.submenu.hover > .menu-toggle i { color: #111 !important; }

  #Side_slide .menu_wrapper li > a:not(.menu-toggle):hover,
  #Side_slide .menu_wrapper li > a:not(.menu-toggle):focus-visible,
  #Side_slide .menu_wrapper li > a:not(.menu-toggle):active {
    background: var(--deo-gold) !important;
    color: #111 !important;
  }
  #Side_slide .menu_wrapper li > a:not(.menu-toggle):hover span,
  #Side_slide .menu_wrapper li > a:not(.menu-toggle):hover i,
  #Side_slide .menu_wrapper li > a:not(.menu-toggle):focus-visible span,
  #Side_slide .menu_wrapper li > a:not(.menu-toggle):focus-visible i,
  #Side_slide .menu_wrapper li > a:not(.menu-toggle):active span,
  #Side_slide .menu_wrapper li > a:not(.menu-toggle):active i { color: #111 !important; }
  #Side_slide li.deo-menu-contact { display: none !important; }
}

@media only screen and (max-width: 520px) {
  body #Top_bar .top_bar_left { display: flex !important; min-height: 70px; }
  body #Top_bar .menu_wrapper { display: flex !important; }
  #Top_bar .logo #logo img.logo-mobile { max-width: 42vw; max-height: 56px !important; }
  #Top_bar a.responsive-menu-toggle,
  #Top_bar a.deo-contact-toggle { flex-basis: 42px; width: 42px !important; height: 42px !important; }
}

/* --------------------------------------------------------------------------
   Archives, réalisations et listes d'articles
   -------------------------------------------------------------------------- */

/* L'auteur et la date ne sont affichés sur aucune carte ni archive. */
body :is(.post-meta, .entry-meta, .post-author, .post-date, .author-date),
body .post-meta :is(.author, .date, .category, .cat-wrapper) {
  display: none !important;
}

/* Filtres de sélection : même langage visuel que le bouton « contact ». */
body .filters_buttons,
body .filters_buttons :is(.label, a, span, i),
body .filters_buttons a:is(.open, .close),
body .filters_buttons :is(.categories, .tags, .authors, .reset) a {
  color: #151310 !important;
}

body .filters_buttons a:hover,
body .filters_buttons a:focus-visible,
body .filters_buttons a:hover :is(span, i),
body .filters_buttons a:focus-visible :is(span, i) {
  color: #151310 !important;
  text-decoration-color: #151310 !important;
}

body .filters_wrapper ul.categories li a,
body .filters_wrapper ul li a,
body .portfolio_wrapper .filters_wrapper a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 22px !important;
  border: 1px solid #c99b3d !important;
  border-radius: 999px !important;
  background: #151310 !important;
  color: #d6ad50 !important;
  font-weight: 700;
  line-height: 1.25;
  text-align: center !important;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

body .filters_wrapper ul.categories li a:hover,
body .filters_wrapper ul.categories li a:focus-visible,
body .filters_wrapper ul.categories li.current-cat a,
body .filters_wrapper ul li a:hover,
body .filters_wrapper ul li a:focus-visible,
body .filters_wrapper ul li.current-cat a,
body .portfolio_wrapper .filters_wrapper a:hover,
body .portfolio_wrapper .filters_wrapper a:focus-visible {
  background: #d6ad50 !important;
  color: #151310 !important;
  transform: translateY(-1px);
}

/* Compteurs, précédent et suivant de pagination. */
body :is(.pager, .pagination, .page-numbers) a,
body :is(.pager, .pagination) span,
body a.page-numbers,
body span.page-numbers {
  border-color: #151310 !important;
  background: #151310 !important;
  color: #f4d786 !important;
}

body :is(.pager, .pagination, .page-numbers) a:hover,
body :is(.pager, .pagination, .page-numbers) a:focus-visible,
body :is(.pager, .pagination) span.current,
body span.page-numbers.current {
  border-color: #d6ad50 !important;
  background: #d6ad50 !important;
  color: #151310 !important;
}

/* Liens précédent/suivant présentés comme de vrais boutons. */
body :is(.pager, .pagination) :is(.prev_page, .next_page, .prev, .next),
body :is(.pager, .pagination) a.page-numbers.prev,
body :is(.pager, .pagination) a.page-numbers.next {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 20px !important;
  border: 1px solid #c99b3d !important;
  border-radius: 999px !important;
  background: #151310 !important;
  color: #f4d786 !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
}

body :is(.pager, .pagination) :is(.prev_page, .next_page, .prev, .next):hover,
body :is(.pager, .pagination) :is(.prev_page, .next_page, .prev, .next):focus-visible,
body :is(.pager, .pagination) a.page-numbers.prev:hover,
body :is(.pager, .pagination) a.page-numbers.prev:focus-visible,
body :is(.pager, .pagination) a.page-numbers.next:hover,
body :is(.pager, .pagination) a.page-numbers.next:focus-visible {
  background: #d6ad50 !important;
  color: #151310 !important;
}

@media only screen and (max-width: 640px) {
  body .filters_wrapper ul.categories li a,
  body .filters_wrapper ul li a,
  body .portfolio_wrapper .filters_wrapper a {
    min-height: 42px;
    padding: 9px 16px !important;
  }

  body :is(.pager, .pagination) :is(.prev_page, .next_page, .prev, .next),
  body :is(.pager, .pagination) a.page-numbers.prev,
  body :is(.pager, .pagination) a.page-numbers.next {
    min-height: 40px;
    padding: 8px 14px !important;
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   Accordéons et FAQ — harmonisation globale avec la page d'accueil
   -------------------------------------------------------------------------- */

body :is(.accordion, .faq) .question > .title,
body :is(.accordion, .faq) .question > .title a,
body details > summary,
body .wp-block-details > summary,
body .schema-faq-question,
body .rank-math-question {
  box-sizing: border-box;
  background: #dedede !important;
  color: #151310 !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease;
}

/* Accordéons SiteOrigin, utilisés notamment sur la page À propos. */
body .so-widget-sow-accordion .sow-accordion .sow-accordion-panel-header {
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid rgba(21, 19, 16, .18) !important;
  background: #dedede !important;
  color: #151310 !important;
  transition: background .2s ease, color .2s ease;
}

body .so-widget-sow-accordion .sow-accordion .sow-accordion-panel-header:hover,
body .so-widget-sow-accordion .sow-accordion .sow-accordion-panel-header:focus-visible,
body .so-widget-sow-accordion .sow-accordion .sow-accordion-panel-open > .sow-accordion-panel-header-container .sow-accordion-panel-header {
  background: #d6ad50 !important;
  color: #151310 !important;
}

body .so-widget-sow-accordion .sow-accordion .sow-accordion-panel-header :is(.sow-accordion-title, .sow-accordion-open-close-button, .sow-accordion-open-button, .sow-accordion-close-button),
body .so-widget-sow-accordion .sow-accordion .sow-accordion-panel-header :is(.sow-accordion-title, .sow-accordion-open-close-button, .sow-accordion-open-button, .sow-accordion-close-button)::before,
body .so-widget-sow-accordion .sow-accordion .sow-accordion-panel-header :is(.sow-accordion-title, .sow-accordion-open-close-button, .sow-accordion-open-button, .sow-accordion-close-button)::after {
  border-color: #151310 !important;
  color: #151310 !important;
}

body .so-widget-sow-accordion .sow-accordion .sow-accordion-panel-content,
body .so-widget-sow-accordion .sow-accordion .sow-accordion-panel-border {
  border-color: rgba(21, 19, 16, .18) !important;
  background: #fff !important;
  color: #151310 !important;
}

/* Portrait d'Irina SAVVON sur la page À propos. */
body.page-id-303412 img.wp-image-187 {
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid #c99b3d !important;
  border-radius: 9px !important;
  background: #151310;
  box-shadow:
    inset 0 0 0 2px #151310,
    inset 0 0 0 3px rgba(201, 155, 61, .42),
    0 10px 24px rgba(0, 0, 0, .18);
}

body.page-id-303412 figure:has(img.wp-image-187) {
  width: fit-content;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Portrait : même cadre 1 px noir + 4 px or que les images et produits. */
body.page-id-303412 img.wp-image-187 {
  border: 1px solid #151310 !important;
  box-shadow:
    0 0 0 4px #c99b3d,
    0 10px 24px rgba(0, 0, 0, .18) !important;
}

body :is(.accordion, .faq) .question > .title {
  min-height: 48px;
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  border: 1px solid rgba(21, 19, 16, .18) !important;
}

body :is(.accordion, .faq) .question > .title:hover,
body :is(.accordion, .faq) .question > .title:focus-within,
body :is(.accordion, .faq) .question.active > .title,
body details > summary:hover,
body details > summary:focus-visible,
body details[open] > summary,
body .wp-block-details > summary:hover,
body .wp-block-details > summary:focus-visible,
body .wp-block-details[open] > summary,
body .schema-faq-question:hover,
body .schema-faq-question:focus-visible,
body .rank-math-question:hover,
body .rank-math-question:focus-visible {
  background: #d6ad50 !important;
  color: #151310 !important;
}

body :is(.accordion, .faq) .question > .title :is(i, span, a),
body :is(.accordion, .faq) .question.active > .title :is(i, span, a),
body :is(.accordion, .faq) .question > .title:hover :is(i, span, a) {
  color: #151310 !important;
}

body :is(.accordion, .faq) .question > .answer,
body details:not(.wp-block-details),
body .wp-block-details,
body .schema-faq-answer,
body .rank-math-answer {
  border-color: rgba(21, 19, 16, .18) !important;
  background: #fff !important;
  color: #151310 !important;
}

body details > summary,
body .wp-block-details > summary,
body .schema-faq-question,
body .rank-math-question {
  cursor: pointer;
  min-height: 48px;
  margin: 0;
  padding: 13px 18px !important;
  border: 1px solid rgba(21, 19, 16, .18) !important;
}

body details > :not(summary),
body .wp-block-details > :not(summary),
body .schema-faq-answer,
body .rank-math-answer {
  padding-right: 18px;
  padding-left: 18px;
}

@media (prefers-reduced-motion: reduce) {
  body :is(.accordion, .faq) .question > .title,
  body details > summary,
  body .schema-faq-question,
  body .rank-math-question {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #Top_bar a.responsive-menu-toggle,
  #Top_bar a.deo-contact-toggle,
  #Top_bar #menu a { transition: none; }
}

/* --------------------------------------------------------------------------
   Largeur éditoriale globale : utilise le conteneur responsive de Betheme
   -------------------------------------------------------------------------- */

body.single-post #Content .section_wrapper {
  width: 92% !important;
  max-width: 1600px !important;
}

body #Content p {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

/* --------------------------------------------------------------------------
   Typographie éditoriale globale
   -------------------------------------------------------------------------- */
body #Content p:not(.price):not(.cart-empty):not(.woocommerce-info):not(.woocommerce-message):not(.header-cart-total),
body footer p,
body #Footer p {
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: auto;
}

body #Content p:not(.price):not(.cart-empty):not(.woocommerce-info):not(.woocommerce-message):not(.header-cart-total)::first-letter,
body footer p::first-letter,
body #Footer p::first-letter {
  font-size: 1.1em;
  font-weight: 800;
}

/* Les paragraphes techniques des sliders conservent leur rendu natif. */
body #Content .n2-section-smartslider p,
body #Content [id^="n2-ss-"] p,
body #Content [class*="n2-"] p {
  text-align: inherit !important;
  text-justify: auto;
  hyphens: manual;
}

body #Content .n2-section-smartslider p::first-letter,
body #Content [id^="n2-ss-"] p::first-letter,
body #Content [class*="n2-"] p::first-letter {
  font-size: inherit;
  font-weight: inherit;
}

/* Aligne les listes éditoriales sur les paragraphes du contenu principal. */
body #Content ul,
body #Content ol {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 1.5em;
}

/* Évite de cumuler le retrait lorsqu'un paragraphe se trouve dans un <li>. */
body #Content li > p {
  padding-right: 0;
  padding-left: 0;
}

/* Les listes techniques des composants conservent leur géométrie native. */
body #Content .n2-section-smartslider ul,
body #Content .n2-section-smartslider ol,
body #Content [id^="n2-ss-"] ul,
body #Content [id^="n2-ss-"] ol {
  padding-right: 0;
  padding-left: 0;
}

body #Content .n2-section-smartslider p,
body #Content [id^="n2-ss-"] p,
body #Content .n2-section-smartslider ul,
body #Content .n2-section-smartslider ol,
body #Content [id^="n2-ss-"] ul,
body #Content [id^="n2-ss-"] ol {
  width: auto;
  margin-right: 0;
  margin-left: 0;
}

body h2,
body h3 {
  text-align: center;
}

body .n2-section-smartslider {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

@media only screen and (max-width: 959px) {
  body #Content p,
  body #Content ul,
  body #Content ol,
  body .n2-section-smartslider {
    width: 100% !important;
  }
}

@media only screen and (max-width: 520px) {
  body.single-post #Content .section_wrapper {
    width: 94% !important;
  }

  body #Content p,
  body #Content ul,
  body #Content ol,
  body .n2-section-smartslider {
    width: 100% !important;
  }
}
/* Barre d'accessibilite : sous l'axe des fleches de navigation des articles. */
.a11y-responsive.a11y-toolbar.standard-location {
  top: auto !important;
  bottom: clamp(110px, 14vh, 160px) !important;
}

@media only screen and (max-width: 767px) {
  .a11y-responsive.a11y-toolbar.standard-location {
    bottom: 96px !important;
  }
}

/* Retour en haut : bouton or compact, avec libelle et fleche au survol. */
body #back_to_top.button.footer_button {
  box-sizing: border-box;
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px !important;
  min-width: 46px;
  height: 46px !important;
  padding: 0 13px !important;
  overflow: hidden;
  border: 1px solid #171411 !important;
  border-radius: 999px !important;
  background: #d2aa4c !important;
  color: #171411 !important;
  box-shadow: 0 0 0 3px #d2aa4c, 0 7px 18px rgba(0, 0, 0, .2) !important;
  white-space: nowrap;
  transition: width .25s ease, background-color .2s ease, color .2s ease,
    transform .2s ease !important;
}

body #back_to_top.button.footer_button::after {
  order: 1;
  width: 0;
  margin-right: 0;
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  content: "Haut de page";
  opacity: 0;
  transition: width .25s ease, margin-right .25s ease, opacity .18s ease;
}

body #back_to_top.button.footer_button > i {
  position: absolute !important;
  inset: 0 !important;
  order: 2;
  display: grid !important;
  flex: none;
  place-items: center;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: 16px !important;
  line-height: 18px !important;
  text-align: center !important;
}

body #back_to_top.button.footer_button > i::before {
  width: auto !important;
  margin: 0 !important;
  color: inherit !important;
  line-height: 18px !important;
}

body #back_to_top.button.footer_button:hover,
body #back_to_top.button.footer_button:focus-visible {
  width: 210px !important;
  background: #d2aa4c !important;
  color: #171411 !important;
  outline: 0;
  transform: translateY(-2px);
}

body #back_to_top.button.footer_button:hover > i,
body #back_to_top.button.footer_button:focus-visible > i {
  position: static !important;
  inset: auto !important;
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
}

body #back_to_top.button.footer_button:hover::after,
body #back_to_top.button.footer_button:focus-visible::after {
  width: 118px;
  margin-right: 12px;
  overflow: visible;
  opacity: 1;
}

body #back_to_top.button.footer_button:focus-visible {
  outline: 2px solid #171411;
  outline-offset: 5px;
}

@media only screen and (max-width: 767px) {
  body #back_to_top.button.footer_button {
    right: 12px !important;
    bottom: 12px !important;
  }

  body #back_to_top.button.footer_button:hover,
  body #back_to_top.button.footer_button:focus-visible {
    width: 46px !important;
  }

  body #back_to_top.button.footer_button::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body #back_to_top.button.footer_button,
  body #back_to_top.button.footer_button::after {
    transition: none !important;
  }
}
