/* -------------------------------------------------- */
/* RESET & BASE                                       */
/* -------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font: 400 1rem/1.65 var(--font-body);
  color: var(--dark-gray-color);
  background: var(--body-background-color);
  overflow-wrap: break-word;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}


/* ----------------------------------------------------
   TITRES — Manrope (vacances, friendly, *****)
---------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  text-wrap: balance;
}


a {
  color: var(--link-color);
}

a:hover {
  color: var(--body-link-hover-color);
}

:focus-visible {
  outline: 3px solid var(--blue-color);
  outline-offset: 3px;
}

/* Le hero (#hero) est géré uniquement dans modern.css, section 8e. */

/* -------------------------------------------------- */
/* LAYOUT, ACCESSIBILITÉ & UTILITAIRES                */
/* -------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--space-s), var(--w-container));
  margin-inline: auto;
}

.no-scroll {
  overflow: hidden;
}

body:not(.has-hero) main {
  padding-top: 6.5rem;
}

.skip-link {
  position: absolute;
  left: var(--space-s);
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: var(--dark-yellow-color);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  transition: top .15s;
}

.skip-link:focus {
  top: var(--space-s);
}

.noscript-banner {
  padding: .75rem 1.125rem;
  text-align: center;
  font-size: .9rem;
  background: var(--notice-bg);
  color: var(--notice-text);
  border-bottom: 2px solid var(--notice-border);
  position: relative;
  z-index: 100;
}

/* -------------------------------------------------- */
/* BOUTONS AVEC ICÔNE (Font Awesome 7 Free)           */
/* -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.5rem;
  border: 2px solid transparent;
  font: 700 .95rem/1;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--dark-yellow-color);
  border-color: var(--dark-yellow-color);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--middle-yellow-color);
  border-color: var(--middle-yellow-color);
  color: var(--on-accent);
  transform: translateY(-1px);
}

.btn--icon {
  gap: .6em;
}

.btn--icon::before {
  content: var(--btn-icon);
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  /* solid */
  font-style: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

/* Liens simples avec icône */
.link--icon::before {
  content: var(--btn-icon);
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-style: normal;
  display: inline-block;
  margin-right: .5em;
}

/* Icône après le texte (optionnel) */
.btn--icon-end {
  flex-direction: row-reverse;
}

/* Variante contour (optionnel) */
.btn--outline {
  background: transparent;
  border-color: var(--dark-yellow-color);
  color: var(--dark-gray-color);
}

.btn--outline:hover {
  background: var(--dark-yellow-color);
  color: var(--on-accent);
  transform: translateY(-1px);
}

/* Les icônes : chaque classe ne fait que définir le code */
.btn--phone {
  --btn-icon: "\f095";
}

/* phone */
.btn--mail {
  --btn-icon: "\f0e0";
}

/* envelope */
.btn--send {
  --btn-icon: "\f1d8";
}

/* paper-plane */
.btn--book {
  --btn-icon: "\f274";
}

/* calendar-check */
.btn--chalet {
  --btn-icon: "\f015";
}

/* house */
.btn--map {
  --btn-icon: "\f3c5";
}

/* location-dot */
.btn--route {
  --btn-icon: "\f4d7";
}

/* route */
.btn--news {
  --btn-icon: "\f658";
}

/* envelope-open-text */
.btn--next {
  --btn-icon: "\f061";
}

/* arrow-right */
.btn--download {
  --btn-icon: "\f019";
}

/* download */
.btn--info {
  --btn-icon: "\f05a";
}

/* circle-info */

/* Réseaux sociaux : police Brands */
.btn--facebook::before,
.btn--instagram::before,
.btn--youtube::before {
  font-family: "Font Awesome 7 Brands";
  font-weight: 400;
}

.btn--facebook {
  --btn-icon: "\f09a";
}

.btn--instagram {
  --btn-icon: "\f16d";
}

.btn--youtube {
  --btn-icon: "\f167";
}

/* -------------------------------------------------- */
/* BOUTON « TRAIT + DIAGONALE »                       */
/* -------------------------------------------------- */
.btn--line {
  --line-color: var(--btn-line-color, currentColor);
  --line-start: 60%;
  /* début du trait au repos (0 = tout à gauche) */
  --shift: clamp(3.5rem, 12vw, 5.5rem);
  /* distance dont le texte glisse vers la droite */
  --ease: .5s cubic-bezier(.4, 0, .2, 1);

  position: relative;
  display: inline-block;
  white-space: nowrap;
  padding: .5rem calc(1.4rem + var(--shift)) 1rem 0;
  /* texte à gauche au repos */
  margin-bottom: .8rem;
  /* place pour la diagonale qui dépasse */
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--line-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .35em;
  transform: none;
  transition: padding var(--ease);
}

/* Le trait */
.btn--line::before {
  content: "";
  position: absolute;
  left: var(--line-start);
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--line-color);
  transition: left var(--ease);
}

/* La diagonale au bout du trait */
.btn--line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 100%;
  width: 2px;
  height: .9rem;
  background: var(--line-color);
  transform-origin: top right;
  transform: rotate(35deg);
  transition: transform var(--ease);
}

/* Survol, focus clavier ou état actif : le texte glisse vers la droite */
.btn--line:hover,
.btn--line:focus-visible,
.btn--line.active,
.btn--line.is-active,
.btn--line[aria-current="page"] {
  background: none;
  transform: none;
  padding-left: var(--shift);
  padding-right: 1.4rem;
}

/* ... le trait se déploie jusqu'au début du texte */
.btn--line:hover::before,
.btn--line:focus-visible::before,
.btn--line.active::before,
.btn--line.is-active::before,
.btn--line[aria-current="page"]::before {
  left: var(--shift);
}

/* ... et la diagonale se redresse */
.btn--line:hover::after,
.btn--line:focus-visible::after,
.btn--line.active::after,
.btn--line.is-active::after,
.btn--line[aria-current="page"]::after {
  transform: rotate(60deg);
}

/* Grille de boutons */
.btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
}

/* Dans la grille, le bouton remplit sa cellule et le texte peut passer à la ligne */
.btn-grid>.btn--line {
  display: block;
  white-space: normal;
  text-align: left;
}

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {

  .btn--line,
  .btn--line::before,
  .btn--line::after {
    transition: none;
  }
}

/* -------------------------------------------------- */
/* FIN BOUTON                                         */
/* -------------------------------------------------- */


.scroll-up {
  position: fixed;
  right: var(--space-s);
  bottom: var(--space-s);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--gray-border);
  box-shadow: 0 8px 24px var(--shadow-color-light);
  color: var(--text-dark-heading);
}

.scroll-up[hidden] {
  display: none;
}

/* -------------------------------------------------- */
/* HERO DE BASE                                       */
/* -------------------------------------------------- */
#hero .hero-site {
  min-height: 70vh;
  display: grid;
  align-items: center;
  background: linear-gradient(160deg, var(--logo-blue-dark), var(--logo-green-dark));
  color: var(--on-color);
}

#hero .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--veil-hero-top), var(--veil-hero-bottom));
}

/* -------------------------------------------------- */
/* BOTTOM                                             */
/* -------------------------------------------------- */
#bottom {
  padding: 3rem 0;
  background-color: var(--hu-surface-alt);
  border-top: 1px solid var(--hu-line);
  font-size: .92rem;
}

.bottom-width-80 {
  width: clamp(17.5rem, 80%, var(--w-wide));
  margin-inline: auto;
}

#bottom> :last-child,
#bottom .container> :last-child {
  margin-bottom: 0;
}

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}

#bottom h3 {
  font-size: 1.05rem;
  margin: 0 0 .85rem;
  font-weight: 700;
}

.bottom-block+.bottom-block,
.bottom-menu+.bottom-menu {
  margin-top: 1.5rem;
}

.bottom-badges {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.bottom-badges img {
  height: 3.375rem;
  width: auto;
}

.bottom-address {
  font-style: normal;
  line-height: 1.6;
}

/* Blog */
.bottom-blog-list,
.bottom-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bottom-blog-list li+li {
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid var(--hu-line);
}

.bottom-blog-list a {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  text-decoration: none;
}

.bottom-blog-date {
  font-size: .8rem;
  opacity: .7;
}

/* Menus bas + page active */
.bottom-menu li+li {
  margin-top: .4rem;
}

.bottom-menu a {
  text-decoration: none;
}

.bottom-menu li.active>a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mini-grille Portfolio 3 colonnes sans JS */
.bottom-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .25rem;
}

.bottom-portfolio-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}

.bottom-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.bottom-portfolio-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: .35rem;
  font-size: .72rem;
  line-height: 1.2;
  color: var(--on-color);
  background: linear-gradient(to top, var(--veil-caption), transparent 65%);
  opacity: 0;
  transition: opacity .2s ease;
}

.bottom-portfolio-item:hover img,
.bottom-portfolio-item:focus-visible img {
  transform: scale(1.06);
}

.bottom-portfolio-item:hover .bottom-portfolio-caption,
.bottom-portfolio-item:focus-visible .bottom-portfolio-caption {
  opacity: 1;
}

/* -------------------------------------------------- */
/* RASSURANT                                          */
/* -------------------------------------------------- */

.rassurant-band {
  padding: var(--space-l) 0;
  background: var(--hu-surface-alt);
  color: var(--black-color);
  border-top: 1px solid var(--hu-line);
}

.rassurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-m);
}

.rassurant-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: var(--space-m);
  border-radius: 12px;
  background: var(--hu-surface);
  border: 1px solid var(--hu-line);
  box-shadow: 0 4px 16px var(--shadow-color-light);
}

.rassurant-card__icon {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-border-light);
  color: var(--black-color);
  font-size: 1.05rem;
}

.rassurant-card__title {
  margin: 0 0 .25rem;
  font: 700 1rem/1.3 var(--font-title);
  color: var(--black-color);
}

.rassurant-card__text {
  margin: 0;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--text-body-muted);
}

.rassurant-card__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .6rem;
}

.rassurant-card__logos img {
  display: block;
  height: 1.375rem;
  width: auto;
  object-fit: contain;
}


/* -------------------------------------------------- */
/* MODULE OS MAP                                      */
/* -------------------------------------------------- */
#carte {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--gray-border-light);
}

#osm-map {
  width: 100%;
  height: var(--h-map);
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.home-map {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--gray-border-ultra-light);
}

.home-map__canvas {
  width: 100%;
  height: var(--h-map);
  z-index: 1;
}

.home-map__bar {
  position: absolute;
  z-index: 500;
  bottom: clamp(.9rem, 2vw, 1.25rem);
  left: 0;
  width: 100%;
  pointer-events: none;
}

.home-map__bar .container {
  display: flex;
  justify-content: flex-end;
}

.home-map__link {
  display: inline-flex;
  align-items: center;
  padding: .75rem 1.25rem;
  color: var(--on-color);
  background: var(--button-arriere-color);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  pointer-events: auto;
  transition: background .25s ease;
}

.home-map__link:hover {
  color: var(--on-color);
  background: var(--button-arriere-color-hover);
}

.home-map__popup {
  min-width: min(100%, 11.25rem);
  text-align: center;
}

.home-map__popup strong {
  display: block;
  font-size: 1rem;
  color: var(--dark-green-color);
}

.home-map__popup p {
  margin: 6px 0 0;
  font-size: .8125rem;
}

/* Popup Leaflet : suit le thème (blanche par défaut en dark) */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--card-bg);
  color: var(--dark-gray-color);
}

/* -------------------------------------------------- */
/* PAGE CONTACT                                       */
/* -------------------------------------------------- */
.contact-forms .newsletter-box {
  padding: clamp(1.25rem, 3vw, 2rem);
}

/* -------------------------------------------------- */
/* GO TO THE TOP                                      */
/* -------------------------------------------------- */
#goToTopBtn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background-color: #111827;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#goToTopBtn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#goToTopBtn:hover {
  background-color: #374151;
}


/* -------------------------------------------------- */
/* PRÉFÉRENCES MOUVEMENT RÉDUIT                       */
/* -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}