:root {
  --primary-h: 0;
  /* hue */
  --primary-s: 0%;
  /* saturation */
  --primary-l: 1%;
  /* lightness */
  --accent-h: 26;
  /* hue */
  --accent-s: 46%;
  /* saturation */
  --accent-l: 33%;
  /* lightness */
  --text-h: 0;
  /* hue */
  --text-s: 0%;
  /* saturation */
  --text-l: 24%;
  /* lightness */
  --background-h: 42;
  /* hue */
  --background-s: 76%;
  /* saturation */
  --background-l: 97%;
  /* lightness */
  --primary-font: "Raleway", sans-serif;
  --secondary-font: "Prata", serif;
  --h1-font-size: 3.8125rem;
  --h2-font-size: 2.5rem;
  --h3-font-size: 1.5rem;
  --headings-line-height: 1.333333;
  --link-color: var(--primary-color-40);
  --border-radius: 0;
  --button-border-radius: 0;
  --transition: 0.3s all ease-in-out;
  --accent-500: hsla(26, 46%, 33%, 1);
}

h1,
h2,
h3,
h4,
h5,
h6,
[class*="title"] {
  font-family: var(--secondary-font);
  font-weight: 400;
}

.erreur .erreur,
.divGenerateurErreur .erreur {
  display: block;
  padding-bottom: 0.5rem;
  color: var(--error-color);
  float: right;
  font-size: 13px;
}

.relativer {
  position: relative;
}

.card {
  position: relative;
  display: block;
}

.card a::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: block;
  z-index: 4;
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card:hover img {
  transform: scale(1.15);
  transition: var(--transition);
}

.nowrap {
  flex-wrap: nowrap;
}

.m-10 {
  margin-top: 10px;
}

.relative {
  position: relative;
}

@media screen and (min-width: 993px) {
  .top-bar {
    padding: 24px 0 14px;
  }
  .fold .view-contact {
    display: none;
  }
  .index-page .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .sticky {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 0;
  }
  .sticky-active .sticky-element.sticky-scroll-down {
    transform: translateY(0);
  }
}

@media screen and (max-width: 992px) {
  .fold .view-contact {
    margin-block: 8px;
    text-align: center;
  }
}

/* BRAND */

@keyframes shrinkImage {
  from {
    width: 208px;
    margin-top: 50px;
    margin-bottom: -12px;
  }
  to {
    width: 134px;
    margin-top: 0px;
    margin-bottom: 0px;
  }
}

.header-only {
  max-width: 134px;
}

.fold .btn-contact {
  margin-top: 8px;
}

@media screen and (min-width: 993px) {
  .index-page .header-only {
    width: 208px;
    margin-top: 50px;
    margin-bottom: -12px;
    animation: shrinkImage 2s forwards;
    display: block;
    max-width: 100%;
    /* évite les petits décalages */
  }
}

@media screen and (max-width: 992px) {
  .brand .header-only {
    max-width: 134px;
  }
}

.brand a {
  display: inline-block;
  transition: opacity 0.3s;
}

.brand a:hover {
  opacity: 0.75;
}

header .brand img.footer-only,
footer .brand img.header-only,
.rappel_telephonique .brand img.footer-only {
  display: none;
}

/* SLIDER */

.slider-slick {
  width: 100%;
  height: auto;
  background-color: var(--background-color);
  position: relative;
  z-index: 0;
}

.slider-slick .slick {
  height: 100%;
}

.slide-img {
  min-height: 500px;
  background-size: cover;
  background-position: center;
}

.slide-img.slide-01 {
  background: linear-gradient(
      360deg,
      hsla(0, 0%, 0%, 0.5),
      hsla(0, 0%, 0%, 0.5)
    ),
    url("../assets/gifs/slider/slide-01.jpg");
  background-size: auto, cover;
  background-position: center;
}

.slide-img.slide-02 {
  background-image: url("../assets/gifs/slider/slide-02.jpg");
}

.slide-img.slide-03 {
  background-image: url("../assets/gifs/slider/slide-03.jpg");
}

.slide-content {
  padding: 8rem 0;
}

.slide-content .title-1 {
  margin: 0 0 24px 0;
}

/* ******************************************* BOUTON ******************************************** */

a.btn svg {
  margin-left: 11px;
  margin-top: 4px;
}

.btn-contact .content + .content,
.actualites-encart-btn .content + .content {
  display: block;
}

.btn.accent:hover,
.btn.accent:focus {
  background-color: var(--accent-color);
}

.btn-contact a,
.actualites-encart-btn a {
  display: inline-block;
  overflow: hidden;
  position: relative;
  text-align: center;
  transition: 0.3s;
  height: 48px;
}

.btn-contact a .content {
  position: relative;
  bottom: -4%;
  transition: 0.5s;
  height: 35px;
  display: flex;
  justify-content: center;
  line-height: 16px;
}

.actualites-encart-btn a .content {
  position: relative;
  bottom: -26%;
  transition: 0.5s;
  height: 35px;
  display: flex;
  justify-content: center;
  line-height: 16px;
}

.btn-contact a:hover .content,
.btn-devis a:hover .content {
  bottom: 168%;
}

.btn-contact svg.encart-contact,
.btn-contact a:hover svg.encart-contact {
  display: none;
}

.actualites-encart-btn a:hover .content {
  bottom: 87%;
}

.btn-contact .btn.accent:hover svg,
.btn-devis .btn.accent:hover svg {
  margin-top: 0px;
}

.btn.outlined {
  border-width: 1px;
  border-color: var(--accent-500);
  color: var(--accent-500);
  font-weight: 400;
  width: auto;
  background: white;
}

.catalogue-detail .btn.outlined {
  display: flex;
  align-items: center;
  min-height: 48px;
  justify-content: center;
}

.btn.outlined:hover {
  background: white;
  color: var(--accent-500);
  border-color: hsla(0, 0%, 12%, 1);
}

@media screen and (min-width: 601px) {
  .btn.accent {
    width: auto;
    padding: 14px;
  }
}

/* ******************************************* MENU ******************************************** */

.nav#topbar-nav > ul > li.sous_menu > a {
  cursor: default;
}

.header-content .nav#main-nav > ul > li {
  position: relative;
}

.header-content .nav#main-nav > ul > li > a.selected,
.header-content .nav#main-nav > ul > li > a:hover,
.header-content .nav .dropdown a:hover,
.header-content .nav .dropdown a.selected,
.header-content .nav .dropdown .ssdropdown li.sousSousLi a.selected,
.header-content .nav .dropdown li.sousLi a.selected {
  color: var(--accent-color);
  background: transparent;
}

.header-content .nav .dropdown a {
  font-size: 13px;
  color: var(--text-color);
}

.sticky-active .sticky-element.sticky-scroll-up {
  background-color: var(--background-color);
}

@media screen and (min-width: 993px) {
  .header-content #nav-container {
    border-top: 2px solid hsla(0, 0%, 0%, 1);
    border-bottom: 2px solid hsla(0, 0%, 0%, 1);
    padding: 10px 0;
  }
  .header-content .nav#main-nav > ul > li > a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 2px;
    background-color: var(--accent-color);
    width: 0;
    transition: var(--transition);
  }
  .header-content .nav#main-nav > ul > li > a.selected:before,
  .header-content .nav#main-nav > ul > li > a:hover:before {
    width: 100%;
    left: 0;
    right: 0;
  }
  .header-content .nav#main-nav > ul > li > a {
    padding-top: 0.5rem;
    padding-right: 0.75rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
  }
  .header-content .nav ul li.hide-contact {
    display: none;
  }
}

@media screen and (max-width: 992px) {
  .header-content .nav#topbar-nav li:not(.opened) a {
    padding: 0.5rem 5%;
    font-size: 16px;
  }
  .menu-mobile {
    background-color: transparent;
    height: 4.5rem;
  }
  .menu-mobile .btn-menu {
    color: var(--accent-color-10);
  }
}

/* ******************************************* ENCART POINT FORTS ******************************************** */

#point_fort {
  padding-block: 24px;
  position: relative;
  background: var(--background-color);
}

#point_fort .title-3 {
  font-weight: 400;
  font-size: 24px;
  min-height: 61px;
}

.point-content {
  position: relative;
  padding: 48px;
}

.point-content::after {
  content: "";
  position: absolute;
  top: 28%;
  right: 0;
  height: 200px;
  width: 1px;
  background-color: hsla(0, 0%, 82%, 1);
}

.row .col:last-child .point-content::after {
  content: none;
}

.point-content img {
  width: auto;
}

/* ******************************************* BLOC 01 ******************************************** */

.parallax {
  /* Image de fond */
  background-image: url("../assets/gifs/parallax.jpeg");
  /* Parallaxe */
  height: 50vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#bloc-01 .h1-geoloc {
  font-size: 40px;
}

.image-masquee {
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-masquee img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: top left;
  -webkit-mask-position: top left;
  transition: mask-size 0.3s ease-out, -webkit-mask-size 0.3s ease-out;
}

/* Masque vertical (haut → bas) */

.image-masquee.vertical-mask img {
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 99.9%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 99.9%,
    transparent 100%
  );
  mask-size: 100% 0%;
  -webkit-mask-size: 100% 0%;
}

/* Masque horizontal (gauche → droite) */

.image-masquee.horizontal-mask img {
  mask-image: linear-gradient(
    to right,
    black 0%,
    black 99.9%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    black 0%,
    black 99.9%,
    transparent 100%
  );
  mask-size: 0% 100%;
  -webkit-mask-size: 0% 100%;
}

@media screen and (min-width: 993px) {
  #bloc-01 .spacer,
  #bloc-04 .spacer {
    min-height: 7.5rem;
  }
  #bloc-01 img {
    position: absolute;
    width: 47vw;
    top: 0;
    right: 0;
    max-width: none;
    height: 100%;
  }
  h1.h1-geoloc {
    margin: 0;
  }
}

@media screen and (max-width: 992px) {
  #bloc-01 .btn-contact {
    margin-bottom: 50px;
  }
}

/* ******************************************* CATALOGUE ******************************************** */

.catalogue-card-title {
  margin: 8px 0;
  bottom: 49px;
  position: absolute;
  transition: var(--transition);
}

.catalogue-card:hover .catalogue-card-title {
  margin: 8px 0;
  bottom: 87px;
  position: absolute;
}

.catalogue-detail-categorie {
  margin: 2rem 0;
  font-size: 24px;
}

@media screen and (min-width: 993px) {
  .catalogue-detail .align-right {
    text-align: right;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
  }
}

@media screen and (max-width: 992px) {
  .catalogue-detail .align-right {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
  }
}

@media screen and (max-width: 600px) {
  .catalogue-detail .align-right {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-direction: column;
  }
}

#encart-catalogue {
  padding-top: 120px;
}

#encart-catalogue .title-2 {
  margin: 0;
}

.catalogue-card-image a {
  position: relative;
  z-index: 0;
  display: block;
  padding: 24p;
}

.catalogue-card-title a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  line-height: 24.2px;
}

.catalogue-card-title a {
  color: white;
}

.catalogue-card-image a:before {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  top: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.catalogue-encart-card-categorie {
  color: white;
  text-decoration: none;
  line-height: 34.2px;
  font-weight: 400;
  font-family: var(--secondary-font);
  font-size: 24px;
  margin-bottom: 20px;
}

.catalogue-card:hover .catalogue-card-image a::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) -36.11%, #000000 100%);
  z-index: 1;
}

.card.catalogue-card {
  position: relative;
  z-index: 0;
  color: white;
  overflow: hidden;
  min-height: 352px;
}

.catalogue-card-content .catalogue-card-text {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.catalogue-card:hover .catalogue-card-text {
  opacity: 1;
  transform: translateY(-11px);
  pointer-events: auto;
  overflow: hidden;
}

.catalogue-card:hover .card-content {
  bottom: 24px;
  padding-bottom: 0;
}

.catalogue-card-content {
  position: absolute;
  padding: 0 24px;
  bottom: 0%;
  padding-bottom: 0;
}

.btn-catalogue a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.card-image {
  position: relative;
  overflow: hidden;
}

.slick-catalogue {
  margin-top: 64px;
  row-gap: 24px;
}

.catalogue-card-image img {
  transition: 0.3s;
  height: 352px;
  object-fit: cover;
  width: 100%;
}

.card:hover img {
  transform: scale(1.15);
}

@media screen and (min-width: 1600px) {
  .catalogue-card-content {
    bottom: 0;
    padding: 24px;
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .card.catalogue-card {
    min-height: 300px;
  }
  .catalogue-card-image img {
    height: 420px;
  }
  .slick-catalogue {
    max-width: 90%;
    margin: 64px auto;
  }
}

@media screen and (max-width: 425px) {
  .catalogue-card-content {
    bottom: -41%;
  }
}

/* ******************************************* ENCART AVIS ******************************************** */

.encart-avis {
  padding-block: 80px;
}

.encart-avis .title-2 {
  margin: 0;
}

.slick-avis {
  margin-top: 64px;
}

.encart-avis .avis-card.js-more .avis-card-text::after {
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fdfaf2);
}

.card.avis-card {
  background: white;
  padding: 16px;
}

@media screen and (min-width: 993px) {
  .encart-avis .card-text.avis-card-text.avis-encart-card-text {
    margin-left: 20%;
  }
}

@media screen and (max-width: 600px) {
  .encart-avis .slick-dots {
    bottom: -9rem;
  }
}

/* ******************************************* ENCART MARQUES ******************************************** */

.img_marques img {
  width: 100%;
}

#encart-marques .slick-slide img {
  display: block;
  margin: 0 auto;
}

/* ******************************************* BLOC 02 ******************************************** */

#bloc-02 {
  padding-top: 48px;
  padding-bottom: 120px;
}

/* ******************************************* ENCART CONTACT ******************************************** */

#encart-contact {
  background: linear-gradient(90deg, hsla(0, 0%, 0%, 0.6), hsla(0, 0%, 0%, 0.6)),
    url("../assets/gifs/contact-bg.jpg");
  background-size: 100%, cover;
  background-position: center;
}

#encart-contact .title-2 {
  color: white;
  margin-bottom: 24px;
}

#encart-contact .reseaux-sociaux svg {
  fill: white;
}

#encart-contact .reseaux-sociaux {
  margin-bottom: 24px;
}

#encart-contact .reseaux-sociaux ul {
  justify-content: flex-start !important;
}

.contact-card-title {
  color: white;
  margin-bottom: 12px;
  font-size: 20px;
  font-family: var(--primary-font);
  font-weight: 600;
}

.contact-card {
  margin-bottom: 10px;
  margin-top: 10px;
}

#encart-contact .contact-card address,
.horaire {
  font-weight: 300;
}

#encart-contact .btn.accent {
  background-color: white;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  color: var(--accent-color);
  color: hsla(26, 46%, 33%, 1);
}

#encart-contact .btn-contact svg {
  display: none;
}

#encart-contact .btn-contact svg.encart-contact,
#encart-contact .btn-contact a:hover svg.encart-contact {
  display: inline-block;
}

#encart-contact .btn-contact a:hover .content {
  bottom: 219%;
}

@media screen and (min-width: 993px) {
  #encart-contact {
    padding-block: 12.5rem;
  }
}

@media screen and (max-width: 992px) {
  #encart-contact {
    padding-block: 4.5rem;
  }
}

/* ******************************************* BLOC 04 ******************************************** */

@media screen and (min-width: 993px) {
  #bloc-04 img {
    position: absolute;
    width: 47vw;
    top: 0;
    left: 0;
    max-width: none;
    height: 100%;
  }
}

/* ******************************************* ACTUALITES ******************************************** */

#encart-actualites .title-2 {
  margin-bottom: 64px;
}

.actualites-card-image img {
  height: 100%;
  object-fit: cover;
  min-height: 324px;
}

.actualites-card-content {
  padding: 44px 24px 24px;
}

.catalogue-card-content {
  padding: 24px;
}

.actualites-card:hover .actualites-card-content {
  background-color: hsla(39, 74%, 72%, 1);
  transition: var(--transition);
}

.actualites-card-title a {
  font-size: 24px;
  line-height: 24px;
  text-decoration: none;
}

.actualites-card-text {
  margin-block: 8px;
}

#encart-actualites .card-content a.lire-plus {
  font-weight: 400;
  color: hsla(0, 0%, 12%, 1);
  text-decoration: none;
}

/* ******************************************* ENCART FORMULAIRE ******************************************** */

.info-pratique {
  padding: 48px 80px;
}

.info-pratique .title-2 {
  margin-bottom: 24px;
}

.box {
  box-shadow: 0px 4px 24px 0px hsla(0, 0%, 0%, 0.1);
}

.form {
  padding: 48px;
}

#encart-formulaire {
  background-color: var(--background-color);
  z-index: 1;
  position: relative;
}

#encart-formulaire .reseaux-sociaux svg path {
  fill: white;
}

#encart-formulaire .contact-card-title {
  color: white;
  margin-bottom: 12px;
  font-size: 16px;
  font-family: var(--primary-font);
  font-weight: 600;
}

#encart-formulaire .reseaux-sociaux {
  margin-bottom: 80px;
}

@media screen and (min-width: 993px) {
  .index-page .map-container iframe {
    height: 710px;
  }
}

@media screen and (max-width: 992px) {
  #encart-formulaire .reseaux-sociaux ul {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 600px) {
  .info-pratique {
    padding: 48px 0px;
  }
  .form {
    padding: 48px 0;
  }
}

/* ******************************************* FOOTER ******************************************** */

.label-footer {
  font-weight: 600;
  color: var(--accent-500);
}

.horaire {
  margin-block: 1rem;
}

footer .reseaux-sociaux svg path {
  fill: hsla(0, 0%, 0%, 1);
}

#footer-nav {
  padding-block: 24px;
}

#footer-nav nav ul {
  display: flex;
  justify-content: center;
  gap: 16px;
}

#footer-nav .nav ul li.no-menu {
  display: none;
}

#footer-nav .nav ul li.hide-contact {
  display: none;
}

footer .section {
  padding-top: 3rem !important;
}

footer .footer-2 a {
  color: var(--accent-800);
}

a.lien-maps {
  display: flex;
  flex-direction: column;
}

a.lien-maps:hover {
  opacity: 0.7;
}

span.lien-maps {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  justify-content: flex-start;
  flex-direction: column;
}

.hero-interne span.lien-maps {
  align-items: flex-start;
}

@media screen and (min-width: 993px) {
  footer .reseaux-sociaux ul {
    justify-content: flex-start;
  }
  .footer-reseaux {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media screen and (max-width: 992px) {
  footer .section {
    text-align: center;
  }
  footer .reseaux-sociaux ul {
    justify-content: center !important;
  }
  #footer-nav nav ul {
    flex-direction: column;
  }
  span.lien-maps {
    align-items: center;
  }
}

/* ******************************************** PAGE INTERNE ****************************************** */

.bg-hero::before,
.hero-interne::before,
.bg-hero::after,
.hero-interne::after {
  position: absolute;
  content: "";
  width: 100vw;
  left: 50%;
  transform: translate(-50%);
  top: 0;
  height: 100%;
  z-index: -1;
}

.bg-hero::before,
.hero-interne::before {
  background: url("../assets/gifs/slider/slide-01.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-hero::after,
.hero-interne::after {
  background: hsla(0, 0%, 0%, 0.6);
}

.sc-content .ac-doubleColonne.bg-hero,
.hero-interne {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 449px;
  margin-top: -3%;
}

.contact-page .hero-interne {
  margin-top: 0;
}

.page-interne #encart-contact {
  width: 100vw;
  left: 50%;
  transform: translate(-50%);
  top: 0;
  height: 100%;
  position: relative;
  padding-block: 6.5rem;
}

#fil_ariane,
.fil-ariane {
  margin-block: 2rem;
}

/* PAGE ACTU DETAIL */

.container_actualite .clear_both {
  margin-bottom: 0px;
}

body.actualites-detail .listing-autres-actus-categorie {
  height: max-content;
  padding: 24px;
  margin-bottom: 24px;
  background-color: var(--accent-color-90);
  border-radius: var(--border-radius);
}

.listing-autres-actus-categorie a.btn {
  font-weight: 600;
  letter-spacing: 0px;
  padding: 13px 10px;
  width: fit-content;
  font-size: 14px;
}

body.actualites-detail .listing-autres-actus-categorie .detail-btn {
  text-align: center;
}

#listing-autres-actus-categorie ul li ul {
  padding-left: 0;
}

#listing-autres-actus-categorie ul li ul li {
  list-style: none !important;
}

#listing-autres-actus-categorie ul li a {
  text-decoration: none;
}

#listing-autres-actus-categorie ul li a:hover {
  text-decoration: underline;
}

.fb-like.fb_iframe_widget {
  position: relative;
  top: 6px;
}

.listing-autres-actus-categorie-mois {
  margin-block: 5px;
  display: block;
}

/* pagination actu*/

.paginationControl {
  letter-spacing: normal;
  text-align: center;
  padding: 40px 0 0;
}

.paginationControl a,
.paginationControl span {
  display: inline-block !important;
  padding: 0 10px;
  color: white;
  font-size: 14px;
  line-height: 30px;
  background: var(--primary-color);
  border: 1px solid #dcdde1;
}

.paginationControl a:hover,
.paginationControl span.selected {
  color: white;
  background: var(--accent-color);
}

.paginationControl span.disabled {
  color: #353b48;
  background: #dcdde1;
}

form .btn.accent {
  width: 100%;
}

@media screen and (min-width: 993px) {
  .cp_ville {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media screen and (max-width: 992px) {
  .contact-page .hero-interne {
    margin-top: 0;
  }
}

@media screen and (min-width: 601px) {
  .actualites-listing .recherche_actu #input_recherche_actu {
    width: calc(100% - 4.35rem);
    margin-bottom: 0;
    vertical-align: middle;
  }
  .recherche_actu #recherche_actu_submit {
    margin-left: 0.5rem;
    width: auto;
  }
}
