/* ----------------------------------------------------------------
	Hero Double
-----------------------------------------------------------------*/

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background-color: #002b5c;
}

#wrapper {
  background-color: #002b5c !important;
}

.hero-double {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #002b5c;
  font-family: 'Dosis', 'Montserrat', sans-serif;
}

/* ----------------------------------------------------------------
	Titre principal
-----------------------------------------------------------------*/

.site-label {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-1deg);
  z-index: 20;

  width: min(46%, 440px);
  padding: 12px 24px 11px;

  text-align: center;
  color: #a7ae9f;

  background-image: url('images/bg_presta_middle.png');
  background-repeat: repeat-y;
  background-size: 100% auto;

  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;

  opacity: 0.96;
}

.site-label::before,
.site-label::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.site-label::before {
  top: -12px;
  height: 18px;
  background-image: url('images/bg_presta_top.png');
}

.site-label::after {
  bottom: -12px;
  height: 18px;
  background-image: url('images/bg_presta_bottom.png');
}

.site-label h1 {
  position: relative;
  z-index: 2;
  margin: 0 0 2px;
  color: #a7ae9f;
  font-family: 'Dosis', 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 1.75vw, 2.15rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: none;
}

.site-label p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #a7ae9f;
  font-family: 'Dosis', 'Montserrat', sans-serif;
  font-size: clamp(0.72rem, 0.76vw, 0.84rem);
  line-height: 1.2;
  font-weight: 400;
  text-shadow: none;
}

/* ----------------------------------------------------------------
	Panneaux gauche / droite
-----------------------------------------------------------------*/

.hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 100svh;
  padding: clamp(28px, 3.5vw, 56px);

  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  isolation: isolate;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;

  transform: scale(1);
  transition: transform 0.8s ease;
  z-index: -3;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-panel:hover::before,
.hero-panel:focus-visible::before {
  transform: scale(1.025);
}

.hero-panel:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: -8px;
}

/* ----------------------------------------------------------------
	Vraie découpe inclinée desktop
-----------------------------------------------------------------*/

@media (min-width: 701px) {
  .panel-season {
    clip-path: polygon(0 0, 100% 0, calc(100% - 42px) 100%, 0 100%);
  }

  .panel-services {
    clip-path: polygon(42px 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -42px;
    width: calc(100% + 42px);
  }
}

/* ----------------------------------------------------------------
	Encarts centraux
-----------------------------------------------------------------*/

.hero-content {
  position: relative;
  z-index: 2;

  width: min(50%, 360px);
  margin-top: 0;
  padding: 24px 24px 22px;

  text-align: center;
  color: #a7ae9f;

  background-image: url('images/bg_presta_middle.png');
  background-repeat: repeat-y;
  background-size: 100% auto;

  border: 0;
  border-radius: 0;
  box-shadow: none;

  transform: rotate(1.2deg);
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;

  opacity: 0.96;
}

.hero-panel:nth-of-type(2) .hero-content {
  transform: rotate(-1.2deg);
}

.hero-content::before,
.hero-content::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.hero-content::before {
  top: -15px;
  height: 22px;
  background-image: url('images/bg_presta_top.png');
}

.hero-content::after {
  bottom: -15px;
  height: 22px;
  background-image: url('images/bg_presta_bottom.png');
}

.hero-panel:hover .hero-content,
.hero-panel:focus-visible .hero-content {
  transform: rotate(0deg) translateY(-3px);
  opacity: 0.99;
}

/* ----------------------------------------------------------------
	Textes
-----------------------------------------------------------------*/

.hero-content h2 {
  position: relative;
  z-index: 2;

  margin: 0 0 8px;

  color: #a7ae9f;
  font-family: 'Dosis', 'Montserrat', sans-serif;
  font-size: clamp(1.65rem, 2.8vw, 3.25rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: 0.01em;

  text-shadow: none;
}

.hero-content p {
  position: relative;
  z-index: 2;

  margin: 0 auto 11px;
  max-width: 300px;

  color: #a7ae9f;
  font-family: 'Dosis', 'Montserrat', sans-serif;
  font-size: clamp(0.82rem, 0.86vw, 0.95rem);
  line-height: 1.32;
  font-weight: 400;

  text-shadow: none;
}

/* CTA : transparent de base, vert au hover */
.cta {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 12px;

  color: #002b5c;
  background: transparent;

  border: 1px solid transparent;
  border-radius: 0;

  font-family: 'Dosis', 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.hero-panel:hover .cta,
.hero-panel:focus-visible .cta {
  color: #ffffff;
  background: #a7ae9f;
  border-color: #a7ae9f;
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------
	Images de fond des deux univers
-----------------------------------------------------------------*/

.panel-season {
  --bg-image: url('images/miniature-particuliers.jpg');
}

.panel-services {
  --bg-image: url('images/miniature-pro.jpg');
}

/* Partie Saison Été */
.panel-season::after {
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.08) 46%,
      rgba(0, 0, 0, 0.16) 100%
    );
}

/* Partie Tous nos services */
.panel-services::after {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 43, 92, 0.32) 0%,
      rgba(0, 43, 92, 0.42) 48%,
      rgba(0, 18, 40, 0.56) 100%
    );
}

/* ----------------------------------------------------------------
	Mobile
-----------------------------------------------------------------*/

@media (max-width: 700px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .hero-double {
    grid-template-columns: 1fr;
    grid-template-rows: 50svh 50svh;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .hero-panel {
    min-height: 0;
    height: 50svh;
    padding: 8px;
  }

  /* Vraie découpe inclinée mobile */
  .panel-season {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%);
  }

  .panel-services {
    clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
    margin-top: -24px;
    height: calc(50svh + 24px);
  }

  /* En mobile, le titre revient au centre exact entre les deux parties */
  .site-label {
    top: 50%;
    left: 50%;
    width: min(72%, 320px);
    padding: 8px 8px 7px;
    transform: translate(-50%, -50%) rotate(-1deg);
    opacity: 0.96;
  }

  .site-label::before {
    top: -9px;
    height: 13px;
  }

  .site-label::after {
    bottom: -9px;
    height: 13px;
  }

  .site-label h1 {
    font-size: clamp(0.98rem, 4.1vw, 1.28rem);
    line-height: 0.95;
  }

  .site-label p {
    font-size: 0.68rem;
    line-height: 1.14;
  }

  .hero-content {
    width: min(70%, 310px);
    padding: 15px 8px 14px;
    margin: 0;
    opacity: 0.96;
  }

  .hero-content::before {
    top: -11px;
    height: 17px;
  }

  .hero-content::after {
    bottom: -11px;
    height: 17px;
  }

  .hero-content h2 {
    margin-bottom: 6px;
    font-size: clamp(1.2rem, 5.25vw, 1.72rem);
    line-height: 0.95;
  }

  .hero-content p {
    max-width: 245px;
    margin-bottom: 7px;
    font-size: 0.8rem;
    line-height: 1.24;
  }

  .cta {
    padding: 4px 9px;
    font-size: 0.68rem;
  }

  #wrapper,
  #content,
  .section {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }
}