/* ==========================================================
   Fred'Arts — page d'accueil (reprise de fred-arts.be)
   Thème clair = site actuel / thème sombre = nouvelle ambiance
   ========================================================== */

:root,
[data-theme="light"] {
  --orange: #f39203;
  --orange-hover: #be7302;
  --bg: #ffffff;
  --bg-alt: #f1edea;          /* section « savoir-faire » */
  --bg-circle: #f1edea;       /* rond flèche « Contactez-nous » */
  --heading: #44382e;
  --text: #5d5650;
  --strong: #44382e;
  --menu: #44382e;
  --submenu-bg: #44382e;
  --sticky-bg: rgba(255, 255, 255, .97);
  --sticky-shadow: 0 2px 5px 0 rgba(0, 0, 0, .1);
  --side-bg: #ffffff;
  --side-border: rgba(0, 0, 0, .08);
  --btn-hover: #48433f;
  --footer-bg: #1f1b10;
  --footer-border: #403825;
  --logo-filter: none;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #141414;
  --bg-circle: #1c1c1c;
  --heading: #ffffff;
  --text: #ffffff;
  --strong: #ffffff;
  --menu: #ffffff;
  --submenu-bg: #141414;
  --sticky-bg: rgba(0, 0, 0, .97);
  --sticky-shadow: 0 1px 0 0 rgba(255, 255, 255, .08);
  --side-bg: #111111;
  --side-border: rgba(255, 255, 255, .08);
  --btn-hover: #2a2a2a;
  --footer-bg: #0d0d0d;
  --footer-border: #262626;
  --logo-filter: invert(1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { background-color: var(--bg); }

body {
  margin: 0;
  font-family: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--orange); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange-hover); }

p { margin: 0 0 15px; }
strong { color: var(--strong); font-weight: 600; }

h1, h2, h3, h4, h5, h6 { font-family: "Lexend", sans-serif; font-weight: 500; margin: 0 0 15px; letter-spacing: 0; }
h1 { font-size: 62px; line-height: 78px; color: var(--orange); }
h2 { font-size: 48px; line-height: 58px; color: var(--heading); }
h3 { font-size: 36px; line-height: 47px; color: var(--heading); }
h4 { font-size: 24px; line-height: 31px; color: var(--heading); }
h5 { font-size: 20px; line-height: 26px; color: var(--heading); }
h6 { font-size: 14px; line-height: 22px; color: var(--orange); }

.orange { color: var(--orange); }

::selection { background-color: #fcc573; color: #000; }

#Wrapper, #Content { background-color: var(--bg); }

/* ---------- Grille (inspirée Betheme) ---------- */
.section_wrapper,
.container {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.column { padding: 0 10px; margin-bottom: 40px; }
.wrap { display: flex; flex-wrap: wrap; align-content: flex-start; }

.one        { width: 100%; }
.five-sixth { width: 83.333%; }
.four-fifth { width: 80%; }
.one-second { width: 50%; }
.one-third  { width: 33.333%; }
.one-fourth { width: 25%; }
.one-fifth  { width: 20%; }

/* ==========================================================
   HEADER
   ========================================================== */
#Header_wrapper { background-color: var(--bg); position: relative; }
#Header { position: relative; }

#Top_bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  background: transparent;
}

#Top_bar .container {
  max-width: 100%;
  padding: 0 1.5%;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

#Top_bar #logo {
  display: flex;
  align-items: center;
  height: 75px;
  padding: 20px 0;
  box-sizing: content-box;
  transition: height .3s ease, padding .3s ease;
}
#Top_bar #logo img {
  height: 100%;
  width: auto;
  filter: var(--logo-filter);
}

.menu_wrapper { display: flex; align-items: center; }

#menu .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
#menu .menu > li { position: relative; }
#menu .menu > li > a {
  display: block;
  padding: 22.5px 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--menu);
  transition: padding .3s ease, color .2s ease;
}
#menu .menu > li > a span {
  display: block;
  line-height: 60px;
  padding: 0 20px;
  white-space: nowrap;
}
@media (max-width: 1439px) {
  #menu .menu > li > a span { padding: 0 12px; }
}
#menu .menu > li.current-menu-item > a,
#menu .menu > li:hover > a { color: var(--orange); }

/* Sous-menu */
#menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background-color: var(--submenu-bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 40;
}
#menu .menu > li:hover > .sub-menu,
#menu .menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#menu .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
#menu .sub-menu a:hover { color: var(--orange); }

/* Header collant au scroll */
#Top_bar.is-sticky {
  position: fixed;
  background: var(--sticky-bg);
  box-shadow: var(--sticky-shadow);
  animation: stickyIn .3s ease;
}
#Top_bar.is-sticky #logo { height: 50px; padding: 5px 0; }
#Top_bar.is-sticky #menu .menu > li > a { padding: 0; }

@keyframes stickyIn {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* Burger */
.responsive-menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 7px 5px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.responsive-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--menu);
}

/* Menu latéral mobile */
#body_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
  z-index: 90;
}
#Side_slide {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  overflow-y: auto;
  background: var(--side-bg);
  z-index: 100;
  transition: right .3s ease;
}
body.side-open #Side_slide { right: 0; }
body.side-open #body_overlay { opacity: 1; visibility: visible; }

#Side_slide .close-wrapper { display: flex; justify-content: flex-end; height: 60px; padding: 0 10px; }
#Side_slide .close {
  background: none;
  border: 0;
  font-size: 20px;
  color: var(--menu);
  cursor: pointer;
}
#Side_slide ul { list-style: none; margin: 0; padding: 0; }
#Side_slide li a {
  display: block;
  padding: 0 20px;
  line-height: 44px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--menu);
  border-bottom: 1px solid var(--side-border);
}
#Side_slide li.current-menu-item > a,
#Side_slide li a:hover { color: var(--orange); }
#Side_slide .sub-menu a { padding-left: 35px; font-weight: 400; }

/* ==========================================================
   SLIDER (reprise de la Revolution Slider : grille 1850×800,
   et 768×800 sous 778px — mis à l'échelle en JS)
   ========================================================== */
.mfn-main-slider { padding-top: 20px; }

.hero {
  --s: 1;
  position: relative;
  width: 100%;
  height: calc(800px * var(--s));
  overflow: hidden;
}

.hero-stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1850px;
  height: 800px;
  transform-origin: top left;
  transform: scale(var(--s)) translateX(-50%);
}

.layer { position: absolute; }

/* Photo portail */
.l-image {
  right: 0;
  bottom: 0;
  width: 1167px;
  height: 700px;
  background: url("../images/slide-homepage.jpg") no-repeat center center / contain;
  z-index: 8;
}

/* Titre */
.l-title {
  left: 100px;
  top: 250px;
  z-index: 9;
  overflow: hidden;
}
.l-title-inner {
  margin: 0;
  font-size: 82px;
  line-height: 98px;
  font-weight: 500;
  color: var(--heading);
  white-space: nowrap;
}

/* Picto décoratif (portail stylisé) */
.l-picto { z-index: 7; width: 500px; height: 497px; left: 475px; top: 151.5px; }
.l-picto img { width: 100%; height: 100%; }
.l-picto-mobile { display: none; }

/* Logo rouille */
.l-logo { left: 100px; top: 470px; width: 250px; height: 180px; z-index: 13; }
.l-logo img { width: 100%; height: 100%; object-fit: contain; }

/* Bouton devis */
.l-btn { left: 100px; top: 680px; z-index: 10; overflow: hidden; }
.l-btn-inner {
  display: inline-flex;
  align-items: center;
  padding: 12px 36px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  line-height: 36px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--orange);
  white-space: nowrap;
  transition: background-color .3s ease;
}
.l-btn-inner:hover { color: #ffffff; background-color: var(--btn-hover); }
.l-btn-inner .ico-arrow { width: 1em; height: 1em; margin-left: 10px; }

/* Encart orange « Création sur mesure » */
.l-box { right: 0; bottom: 50px; width: 350px; height: 145px; z-index: 12; overflow: hidden; }
.l-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--orange);
  color: #ffffff;
}
.l-box-title {
  position: absolute;
  top: 25px;
  left: 50%;
  margin-left: 15px;
  transform: translateX(-50%);
  font-size: 55px;
  line-height: 66px;
  font-weight: 500;
  white-space: nowrap;
}
.l-box-sub {
  position: absolute;
  right: 44px;
  bottom: 24px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
  white-space: nowrap;
}

/* --- Disposition mobile du slider (grille 768×800) --- */
.hero.is-mobile .hero-stage { width: 768px; }
.hero.is-mobile .l-image { right: auto; bottom: auto; left: 25.5px; top: 244px; width: 717px; height: 430px; }
.hero.is-mobile .l-title { left: 0; right: 0; top: 20px; text-align: center; }
.hero.is-mobile .l-title-inner { font-size: 54px; line-height: 64px; }
.hero.is-mobile .l-picto-desktop { display: none; }
.hero.is-mobile .l-picto-mobile { display: block; width: 200px; height: 200px; left: auto; right: 26px; top: 345px; z-index: 6; }
.hero.is-mobile .l-logo { left: 50px; top: 680px; width: 150px; height: 108px; }
.hero.is-mobile .l-btn { left: 50px; top: 214px; }
.hero.is-mobile .l-btn-inner { padding: 13px 37px; font-size: 16px; }
.hero.is-mobile .l-box { right: 26px; bottom: 26px; width: 241px; height: 100px; }
.hero.is-mobile .l-box-title { top: 15px; margin-left: 10px; font-size: 38px; line-height: 45px; }
.hero.is-mobile .l-box-sub { right: 30px; bottom: 15px; font-size: 16px; line-height: 20px; }

/* --- Animations d'entrée --- */
.hero.is-ready .l-title-inner { animation: maskUp 1.2s cubic-bezier(.25, 1, .5, 1) .2s both; }
.hero.is-ready .l-box-inner   { animation: maskUp 1.2s cubic-bezier(.25, 1, .5, 1) .2s both; }
.hero.is-ready .l-btn-inner   { animation: maskDown 1.2s cubic-bezier(.25, 1, .5, 1) .2s both; }
.hero.is-ready .l-image,
.hero.is-ready .l-picto       { animation: slideIn 1s ease-out both; }
.hero.is-ready .l-logo        { animation: fadeIn .3s ease-out both; }
.hero:not(.is-ready) .layer   { visibility: hidden; }

@keyframes maskUp   { from { transform: translateY(100%); }  to { transform: translateY(0); } }
@keyframes maskDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes slideIn  { from { opacity: 0; translate: 50px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { position: relative; }

/* Nos services */
.section-services { padding: 70px 0 30px; }
.heading-services { margin-bottom: 10px; }
.heading-services .title { margin: 0; }
.heading-metal { margin-bottom: 20px; }
.heading-metal .title { margin: 0; }

.icon-box { transition: transform .3s ease; }
.move-up:hover { transform: translateY(-10px); }
.service-box .icon-wrapper { margin-bottom: 15px; overflow: hidden; }
.service-box .icon-wrapper img { width: 100%; }
.service-box .desc-wrapper { text-align: left; }
.service-box .title { margin: 0; }

/* Savoir-faire */
.section-savoir-faire {
  background-color: var(--bg-alt);
  padding: 80px 0;
}
.section-savoir-faire .section_wrapper { align-items: stretch; }
.savoir-faire-heading { align-content: center; }
.savoir-faire-heading .column:first-child { margin-bottom: 0; }
.savoir-faire-heading .title { margin: 0; }

.feature { padding-right: 40px; }
.feature .icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 0 10px -20px;
}
.feature .icon-wrapper img { width: 100%; height: 100%; }
.feature .desc-wrapper { text-align: left; }
.feature .title { margin-bottom: 10px; }

/* Devis */
.section-devis { padding-top: 35px; }
.section-devis .section_wrapper { align-items: stretch; }
.devis-text, .devis-cta { align-content: center; }
.heading-devis { margin-bottom: 15px; }
.heading-devis .title,
.devis-text .title { margin: 0; }
.devis-cta { justify-content: center; padding: 0 10px; margin-bottom: 40px; }

.cta-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background-color: var(--bg-circle);
  color: var(--orange);
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.cta-circle .ico-arrow { width: 18px; height: 18px; }
.cta-circle:hover {
  background-color: var(--orange);
  color: #ffffff;
  transform: scale(1.1);
}

/* ==========================================================
   FOOTER
   ========================================================== */
#Footer {
  background-color: var(--footer-bg);
  color: #ffffff;
}
#Footer .widgets_wrapper { padding: 50px 0 40px; text-align: left; }
#Footer .column { margin-bottom: 0; }
#Footer .widget { margin-bottom: 20px; }
#Footer .widget p { margin: 0 0 12px; }
#Footer h4 { color: #ffffff; margin: 0 0 12px; }
#Footer a { color: #ffffff; }
#Footer a:hover { color: var(--orange); }
#Footer ul { list-style: none; margin: 0; padding: 0; }
#Footer ul li { margin: 0; }

.social-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--orange);
}
.social-footer svg { width: 20px; height: 20px; color: #ffffff; transition: color .2s ease; }
.social-footer:hover svg { color: #1f1b10; }

.footer_copy { border-top: 1px solid var(--footer-border); }
.footer_copy .container { justify-content: center; }
.footer_copy .copyright { padding: 15px 10px; text-align: center; font-size: 14px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1239px) {
  #menu { display: none; }
  .responsive-menu-toggle { display: flex; }
}

@media (max-width: 1024px) {
  .mfn-main-slider { padding-top: 70px; }
}

@media (max-width: 959px) {
  body { font-size: 14px; line-height: 22px; }
  h1 { font-size: 53px; line-height: 66px; }
  h2 { font-size: 41px; line-height: 49px; }
  h3 { font-size: 31px; line-height: 40px; }
  h4 { font-size: 20px; line-height: 26px; }
  h5 { font-size: 17px; line-height: 22px; }
  h6 { font-size: 13px; line-height: 19px; }

  .section-services { padding-top: 35px; }
  .section-savoir-faire { padding: 40px 0 20px; }
  .savoir-faire-heading { width: 60%; }
  .savoir-faire-heading + .wrap { width: 40%; }
  .feature { padding-right: 10px; }
  .cta-circle { width: 80px; height: 80px; }

  .service-box { width: 50%; }
  .five-sixth { width: 100%; }
  .one-third { width: 33.333%; }
}

@media (max-width: 767px) {
  body { font-size: 13px; line-height: 20px; }
  h1 { font-size: 47px; line-height: 59px; }
  h2 { font-size: 36px; line-height: 44px; }
  h3 { font-size: 27px; line-height: 35px; }
  h4 { font-size: 18px; line-height: 23px; }
  h5 { font-size: 15px; line-height: 20px; }

  /* Header non superposé sur mobile */
  #Top_bar { position: relative; background-color: var(--bg); }
  #Top_bar #logo { height: 50px; padding: 5px 0; }
  .mfn-main-slider { padding-top: 0; }

  .section-wrapper, .section_wrapper { padding: 0 16px; }
  .column { padding: 0 6px; }

  .heading-metal .title { font-size: 28px; line-height: 34px; }

  .savoir-faire-heading { width: 100%; padding-top: 50px; }
  .hide-mobile { display: none !important; }
  .features { justify-content: center; padding: 20px 0; }
  .feature { width: 50%; }
  .feature .icon-wrapper { margin: 0 auto 10px; }
  .feature .desc-wrapper { text-align: center; }

  .devis-text { width: 80%; }
  .devis-cta { width: 20%; }
  .cta-circle { width: 50px; height: 50px; }

  #Footer .widgets_wrapper { padding: 30px 0; }
  #Footer .one-third { width: 100%; }
  #Footer .widget { margin: 20px 0; }
}

@media (max-width: 479px) {
  body { font-size: 13px; line-height: 19px; }
  h1 { font-size: 37px; line-height: 47px; }
  h2 { font-size: 29px; line-height: 35px; }
  h3 { font-size: 22px; line-height: 28px; }
  h4 { font-size: 14px; line-height: 19px; }
  h5 { font-size: 13px; line-height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-ready .layer,
  .hero.is-ready .layer * { animation: none !important; }
  .icon-box, .cta-circle { transition: none; }
}
