/*   
Theme Name: MMDWC
Author: MATTIEU MOREAU DOMECQ WEB CONCEPTION
Author URI: http://www.mattieumoreaudomecq.com
*/

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

html,
body,
body div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

/*-------------------------------------------------------------------------------*/
/* CSS
-------------------------------------------------------------------------------*/

html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  font-size: 20px;
  line-height: 35px;
  font-family: 'field-gothic-wide', sans-serif;
  color: #08427c;
  background-color: #edede9;
}

#wrapper {
  width: 100%;
  height: 100%;
}

.field_gothic_71_light {
  font-family: 'field-gothic-wide', sans-serif;
  font-weight: 300;
  font-style: normal;
}

.field_gothic_73_med {
  font-family: 'field-gothic-wide', sans-serif;
  font-weight: 500;
  font-style: normal;
}

.field_gothic_80_xlight {
  font-family: 'field-gothic-xwide', sans-serif;
  font-weight: 300;
  font-style: normal;
}

.field_gothic_83_med {
  font-family: 'field-gothic-xwide', sans-serif;
  font-weight: 500;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  -webkit-overflow-scrolling: touch;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: normal;
  font-size: inherit;
  line-height: inherit;
}

h1 {
  font-size: 2rem;
  line-height: 2.75rem;
  font-weight: 500;
}

h1 strong {
  font-family: 'field-gothic-xwide', sans-serif;
}

h2 {
  font-weight: 300;
  font-size: 2rem;
  line-height: 3rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

p {
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: 300;
}

.small p {
  /*! font-size: 0.65rem; */
  /*! line-height: 0.9rem; */
}

strong {
  font-weight: normal;
}

.container-fluid {
  padding-right: 7.5rem;
  padding-left: 7.5rem;
}

.img-container {
  overflow: hidden;
  border-radius: 0.5rem;
}

.img-container--21-9 {
  width: 100%;
  aspect-ratio: 21/9;
}

.img-container--square {
  width: 100%;
  aspect-ratio: 1/1;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
}

.image-transition {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  width: calc(100% - 2rem);
  margin: 0 auto;
}

#image-transition-1,
#image-transition-1-mobile {
  border-radius: 0.5rem;
  position: relative;
  top: -1rem;
  z-index: 10;
  margin-bottom: 2.5rem;
}

section {
  position: relative;
  z-index: 1;
  background-color: #edede9;
}

.section-img {
  width: 50%;
  height: auto;
  display: block;
  will-change: transform;
  z-index: 0;
  position: relative;
  margin: 0 auto;
}

.section-h2:before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background-color: #08427c;
}

.section-h2 {
  margin-bottom: 4rem;
}

/*-------------------------------------------------------------------------------*/
/* HEADER
-------------------------------------------------------------------------------*/

header {
  font-size: 1rem;
  line-height: 1rem;
  padding: 1rem 5rem 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: transform 0.5s ease-in-out;
  background: transparent;
  border-bottom: 0;
  isolation: isolate; /* crée un contexte pour placer le voile dessous */
}
header::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6.5rem;
  z-index: 1;
  pointer-events: none;

  backdrop-filter: blur(5px) saturate(0%);
  -webkit-backdrop-filter: blur(5px) saturate(0%);
  background: rgba(237, 237, 233, 0.45);

  /* dégradé plus progressif */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 55%,
    rgba(0, 0, 0, 0.9) 65%,
    rgba(0, 0, 0, 0.6) 75%,
    rgba(0, 0, 0, 0.3) 85%,
    rgba(0, 0, 0, 0.1) 95%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgb(0, 0, 0) 55%,
    rgba(0, 0, 0, 0.9) 65%,
    rgba(0, 0, 0, 0.6) 75%,
    rgba(0, 0, 0, 0.3) 85%,
    rgba(0, 0, 0, 0.1) 95%,
    rgba(0, 0, 0, 0) 100%
  );
}

header.header-has-scrolled {
  transform: translateY(-200%);
}

header .container-fluid {
  padding-right: 1rem;
  padding-left: 1rem;
  position: relative;
  z-index: 2;
}

#logo-header {
  display: block;
  height: 3rem;
  width: auto;
}

/*-------------------------------------------------------------------------------*/
/* MENU
-------------------------------------------------------------------------------*/

#menu {
  display: flex;
  justify-content: end;
  gap: 3rem;
  list-style: none;
}

#menu li {
}

#menu li a {
  color: #08427c;
  line-height: 30px;
  display: block;
  border-bottom: 7px solid transparent;
}

#menu li a:hover,
#menu li a.mPS2id-highlight {
  text-decoration: none;
  border-bottom: 7px solid;
}

/*-------------------------------------------------------------------------------*/
/* BANNER
-------------------------------------------------------------------------------*/
section#banner {
  padding-top: 5rem;
  margin-bottom: 2.5rem;
}

section#banner h1 {
  margin-bottom: 1rem;
}

section#banner p {
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.9rem;
}

section#banner .img-container {
  margin-bottom: 2rem;
  padding: 0 1rem;
}

section#banner .video-container {
  position: relative;
  width: calc(100% - 2rem);
  margin: 0 auto 5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

section#banner .video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*-------------------------------------------------------------------------------*/
/* ACTIVITES
-------------------------------------------------------------------------------*/

section#activites {
  /*! margin-bottom: 5rem; */
}

.stat {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 4rem;
  padding-right: 1rem;
}

.ring {
  position: relative;
  width: 160px;
  height: 160px;
}

.ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track,
.ring-progress {
  fill: none;
  stroke-linecap: round;
  stroke-width: 12px;
}

.ring-track {
  stroke: #0e3a74;
  opacity: 0.2;
  filter: blur(2px);
}

.ring-progress {
  stroke: #0e3a74;
  stroke-dasharray: 0 999;
  stroke-dashoffset: 0;
  stroke-width: 10px;
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.5rem;
}

.ring-number {
}

.ring-unit {
}

.stat-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.stat-title img {
  width: 1rem;
  height: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(11%) sepia(74%) saturate(3836%)
    hue-rotate(199deg) brightness(101%) contrast(94%);
}

.stat-text p {
  padding-left: 1.5rem;
}

/*-------------------------------------------------------------------------------*/
/* MOYENS DE PRODUCTIONS
-------------------------------------------------------------------------------*/

section#production {
  margin-bottom: 7.5rem;
}

.picto-item {
  padding: 0 2rem;
}

.picto-item .img-container {
  filter: brightness(0) saturate(100%) invert(11%) sepia(74%) saturate(3836%)
    hue-rotate(199deg) brightness(101%) contrast(94%);
  max-width: 9rem;
  margin: 0 auto;
  margin-bottom: 0.5rem;
}

/*-------------------------------------------------------------------------------*/
/* PARTS SLIDER
-------------------------------------------------------------------------------*/

.row-carousel {
  margin-bottom: 7.5rem;
  /*! margin-top: 5rem; */
}
.parts-slider {
  margin: 0 auto;
  position: relative;
}

.parts-slider .parts-slide img {
  width: 100%;
  height: auto;
  display: block;

  /* État "hors centre" */
  transform: translateZ(0) scale(0.7);
  filter: blur(2px) brightness(0.9);
  opacity: 0.5;

  /* Transitions adoucies et anticipées */
  transition-property: transform, filter, opacity;
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(
    0.22,
    1,
    0.36,
    1
  ); /* Ease-out inertiel */

  /* GPU + rendu lisse */
  will-change: transform, filter, opacity;
  backface-visibility: hidden;
  transform-origin: center center;
}

.parts-slider .parts-slide.slick-center img {
  transform: translateZ(0) scale(1);
  filter: blur(0) brightness(1);
  opacity: 1;
  transition-duration: 0.9s; /* entrée plus douce */
}

.caption-controls-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  height: 9rem;
  /*! margin-bottom: 0.75rem; */
}

.caption-controls-container .controls {
  cursor: pointer;
  height: 2rem;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.parts-caption {
  text-align: center;
  width: 50%;
}
.parts-caption__title {
  margin-bottom: 0.5rem;
  height: 3rem;
}
.parts-caption__text {
}

.slick-dots {
  position: relative;
  bottom: unset;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.slick-dots li {
  display: block;
  margin: 0;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid;
  border-radius: 100%;
}

.slick-dots li.slick-active {
  background-color: #08427c;
}

.slick-dots li button,
.slick-dots li button:before {
  display: none;
}

/*-------------------------------------------------------------------------------*/
/* NOS MATERIAUX
-------------------------------------------------------------------------------*/

#materiaux {
  -webkit-background-size: cover !important;
  -moz-background-size: cover !important;
  -o-background-size: cover !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  color: white;
  padding: 5rem 0 7.5rem 0;
  border-radius: 0.5rem;
  position: relative;
  width: calc(100% - 2rem);
  margin: 0 auto;
}

#materiaux .section-h2::before {
  display: none;
}

#materiaux ul {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  list-style: none;
}

#materiaux ul li {
  cursor: pointer;
  font-weight: 300;
}

#materiaux ul li.active {
  font-weight: 800;
}

.img-container--materiaux {
  position: relative;
  aspect-ratio: 512/363;
  border-radius: 0;
}

.img-container--materiaux img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: opacity;
}

.img-container--materiaux img.active {
  opacity: 1;
  z-index: 1;
}

/*-------------------------------------------------------------------------------*/
/* NOS ENGAGEMENTS
-------------------------------------------------------------------------------*/

#engagements {
}

#engagements .text {
  margin-bottom: 4rem;
}

#engagements .text p {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 400;
}

.item-engagements {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
  padding-right: 1rem;
}

.item-engagements-left {
  width: 30%;
}

.item-engagements-right {
  width: 70%;
  position: relative;
  top: -0.3rem;
}

#engagements h3 {
  margin-bottom: 0.5rem;
}

.item-engagements img {
}

.logos-container {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.logos-container img {
  width: 100%;
  height: auto;
}

/*-------------------------------------------------------------------------------*/
/* CONTACT
-------------------------------------------------------------------------------*/

#contact {
  -webkit-background-size: cover !important;
  -moz-background-size: cover !important;
  -o-background-size: cover !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  color: white;
  padding: 5rem 0 5rem 0;
  position: relative;
  width: calc(100% - 2rem);
  margin: 0 auto;
  border-radius: 0.5rem;
  top: -0.5rem;
}

#contact .section-h2::before {
  display: none;
}

#contact .wpcf7 {
  width: 100%;
}

.wpcf7 form label {
  font-weight: 500;
  line-height: 2rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

.wpcf7 form .col-6,
.wpcf7 form .col-12 {
  margin-bottom: 1rem;
}

.wpcf7 form input,
.wpcf7 form textarea,
.wpcf7 form select {
  padding: 0.5rem;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  color: #edede9 !important;
  width: 100%;
  background-color: transparent;
  border: 1px solid #edede9;
  border-radius: 0.3rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.wpcf7 form select {
  position: relative;
  font-weight: 300;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23edede9' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
}

.wpcf7 form .wpcf7-not-valid-tip {
  display: none;
}

input::placeholder,
textarea::placeholder {
  color: white;
}

.wpcf7 form .wpcf7-submit {
  display: inline-block;
  box-shadow: none !important;
  font-weight: 500;
  cursor: pointer;
  width: 7.5rem;
}

#wrapper .wpcf7 form .wpcf7-spinner {
  display: none !important;
}

#wrapper .wpcf7 form .wpcf7-response-output {
  margin: 0rem;
  padding: 0rem;
  border: none;
  font-weight: 300;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

#wrapper .wpcf7 form.invalid .wpcf7-response-output,
#wrapper .wpcf7 form.unaccepted .wpcf7-response-output,
#wrapper .wpcf7 form.payment-required .wpcf7-response-output {
  display: none;
}

/*-------------------------------------------------------------------------------*/
/* FOOTER
-------------------------------------------------------------------------------*/

footer p,
footer h3 {
  color: #08427c;
}

footer a {
  text-decoration: underline;
  color: #08427c;
}

footer a:hover {
  color: #08427c;
}

footer a.notices,
footer a.notices:hover {
  text-decoration: none;
  font-weight: 500;
}

footer p {
  margin-bottom: 1rem;
}

footer h3 {
  margin-bottom: 0.5rem;
}

#back-to-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 1000;
  display: none;
  width: 2rem;
}

.mobile {
  display: none;
}

@media (max-width: 991px) {
  .desktop {
    display: none !important;
  }

  .mobile {
    display: block;
  }

  header {
    width: 100%;
    padding: 0.5rem 0rem;
  }
  header .container-fluid {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    position: relative;
    z-index: 2;
  }

  .container-fluid {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .section-img {
    width: 75%;
  }

  h1 {
    font-size: 1rem;
    line-height: 1.25rem;
  }

  h1 strong {
    font-family: 'field-gothic-xwide', sans-serif;
  }

  h2 {
    font-size: 1.25rem;
    line-height: 1.5rem;

    font-weight: 300;
    font-style: normal;
  }

  .section-h2 {
    margin-bottom: 3rem;
  }

  section#production .section-h2 {
    margin-bottom: 1rem;
  }

  section#production {
    margin-bottom: 2.5rem;
  }

  section#materiaux {
    padding: 1rem 0 1.5rem 0;
  }

  #image-transition-1 {
    margin-bottom: 4rem;
  }

  .field_gothic_80_xlight {
    font-family: field-gothic-wide, sans-serif;
    font-weight: 300;
    font-style: normal;
  }

  h3 {
    font-size: 1rem;
    line-height: 1.25rem;
  }

  p {
    font-size: 0.75rem;
    line-height: 1.1rem;
    font-weight: 300;
  }

  header::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5rem;
  }

  #logo-header {
    display: block;
    height: 2rem;
    width: auto;
  }

  #menu-open,
  #menu-close {
    display: block;
    height: 1.25rem;
    width: auto;
    margin-left: auto;
  }

  #menu-close {
  }

  #modal-menu {
    height: 100vh;
    width: 100vw;
    background-color: #08427c;
    color: white;
    padding: 0.5rem 0rem;
    display: none;
    position: fixed;
    top: 0;
    z-index: 10000;
  }
  .menu-opened #modal-menu {
    display: block;
  }

  .menu-opened header #menu-open {
    display: none;
  }

  .menu-opened header:before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;

    /* dégradé plus progressif */
    -webkit-mask-image: none;
    mask-image: none;
  }

  #modal-menu a {
    color: white !important;
  }

  #modal-menu ul {
    list-style: none;
    font-style: normal;
    margin-top: 2.5rem;
    font-family: field-gothic-wide, sans-serif;
    font-weight: 300;
    line-height: 1.25rem;
  }

  #modal-menu ul li:before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: white;
    margin-bottom: 0.25rem;
  }

  #modal-menu ul li {
    margin-bottom: 2rem;
  }

  section#activites {
    margin-bottom: 2.5rem;
  }

  section#banner {
    padding-top: 3.5rem;
  }

  section#banner .video-container {
    width: calc(100% - 1rem);
    margin: 0 auto 1rem;
    aspect-ratio: 3/4;
  }

  section#banner p {
    font-size: 0.75rem;
    line-height: 1rem;
  }

  #engagements .text p {
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: 400;
  }

  #engagements .text {
    margin-bottom: 3rem;
  }

  .item-engagements {
    margin-bottom: 2.5rem;
  }

  .item-engagements-right {
    top: -0.2rem;
  }

  section#engagements {
    margin-bottom: 3rem;
  }

  #contact {
    padding: 1rem 0 1rem 0;

    margin-bottom: 3rem;
  }

  .stat {
    grid-template-columns: 100px 1fr;
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .ring {
    position: relative;
    width: 100px;
    height: 100px;
  }

  .ring-center {
    font-size: 1rem;
    line-height: 1rem;
  }

  .stat-title {
    display: block;
    margin-bottom: 0.5rem;
  }

  .stat-title img {
    margin-bottom: 0.5rem;
  }

  .stat-text p {
    padding-left: 0;
  }

  .row-carousel {
    margin-bottom: 5rem;
    margin-top: 0rem;
  }

  .parts-slider .parts-slide img {
    filter: none;
    opacity: 1;
  }

  .caption-controls-container {
    justify-content: space-between;
    gap: 1.5rem;
    height: auto;
    align-items: center;
    margin-bottom: 1rem;
  }

  .caption-controls-container .controls {
    cursor: pointer;
    height: 2rem;
    position: relative;
    top: unset;
  }

  .parts-caption {
    text-align: center;
    width: 100%;
  }

  .parts-caption__title {
    margin-bottom: 0.5rem;
    height: auto;
  }

  .picto-item {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .item-materiaux-mobile {
    text-align: center;
    margin-bottom: 2rem;
  }

  .item-materiaux-mobile .img-container {
    margin-bottom: 0.5rem;
  }

  #back-to-top {
    bottom: 1rem;
    right: 1rem;
  }
}
