@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Poppins:wght@600;700&display=swap');

/*
  UI kit Le Wagon (adaptation statique)
  - On reprend les noms de classes / structures du UI kit.
  - On garde Bootstrap (CDN) comme base.
  - On ne “copie-colle” pas la CSS du Wagon : on implémente une V1 équivalente, simple et maintenable.
*/

/* ===============
   Palette (Provence & pro)
   4 couleurs : encre / olive / terre cuite / sable
   On mappe la palette sur les variables Bootstrap.
   =============== */

:root {
  --sv-ink: #23324d;
  --sv-olive: #4f7b5a;
  --sv-terracotta: #d87a5c;
  --sv-sand: #f6e8cf;
  --sv-card-bg: #fffdf8;

  --sv-ink-rgb: 35, 50, 77;
  --sv-olive-rgb: 79, 123, 90;
  --sv-terracotta-rgb: 216, 122, 92;
  --sv-sand-rgb: 246, 232, 207;

  --bs-primary: var(--sv-ink);
  --bs-primary-rgb: var(--sv-ink-rgb);
  --bs-secondary: var(--sv-olive);
  --bs-secondary-rgb: var(--sv-olive-rgb);
  --bs-info: var(--sv-terracotta);
  --bs-info-rgb: var(--sv-terracotta-rgb);

  --bs-body-bg: var(--sv-sand);
  --bs-body-color: var(--sv-ink);

  /* Utilitaires Bootstrap fréquents */
  --bs-light: var(--sv-sand);
  --bs-light-rgb: var(--sv-sand-rgb);
  --bs-secondary-color: rgba(var(--sv-ink-rgb), 0.72);
  --bs-secondary-color-rgb: var(--sv-ink-rgb);

  --bs-link-color: var(--sv-ink);
  --bs-link-hover-color: var(--sv-terracotta);
}

body {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}

html {
  scroll-behavior: smooth;
}

.text-secondary {
  color: var(--sv-ink) !important;
}

.card {
  background-color: var(--sv-card-bg);
}

p {
  font-family: 'Inter', sans-serif;
}

h1,
h2 {
  font-family: 'Poppins', sans-serif;
}

/* ===============
   Accessibilité
   =============== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #fff;
  color: var(--bs-body-color);
  padding: 8px 10px;
  border-radius: 10px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

/* ===============
   Navbar (navbar-lewagon)
   =============== */

.navbar-lewagon {
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid rgba(var(--sv-ink-rgb), 0.12);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.js-site-header.is-scrolled .navbar-lewagon {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(var(--sv-ink-rgb), 0.08);
  border-bottom-color: rgba(var(--sv-ink-rgb), 0.08);
}

.navbar-lewagon .navbar-collapse {
  flex-grow: 0;
}

.navbar-lewagon .navbar-brand img {
  width: auto;
  height: 34px;
  display: block;
}

.navbar-lewagon .nav-link {
  position: relative;
  color: rgba(var(--sv-ink-rgb), 0.82);
  transition: color 140ms ease;
}

.navbar-lewagon .nav-link:hover,
.navbar-lewagon .nav-link:focus-visible {
  color: var(--bs-link-hover-color);
}

.navbar-lewagon .nav-link.active,
.navbar-lewagon .nav-link[aria-current='page'] {
  color: var(--sv-ink);
  font-weight: 600;
}

.navbar-lewagon .nav-link.active::after,
.navbar-lewagon .nav-link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(var(--sv-terracotta-rgb), 0.75);
}

/* ===============
   Banner
   =============== */

.banner {
  background-size: cover;
  background-position: top center;
  padding: 64px 0;
  color: #fff;
}

.banner h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.banner p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 16px;
  margin-bottom: 24px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.banner .banner-logo {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  padding: 8px 10px;
}

.sv-reveal--hero,
.sv-reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
  will-change: opacity, transform;
}

.sv-is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sv-hero .sv-reveal--hero:nth-of-type(1) {
  transition-delay: 40ms;
}

.sv-hero .sv-reveal--hero:nth-of-type(2) {
  transition-delay: 90ms;
}

.sv-hero .sv-reveal--hero:nth-of-type(3) {
  transition-delay: 140ms;
}

.sv-hero .sv-reveal--hero:nth-of-type(4) {
  transition-delay: 190ms;
}

.sv-hero .sv-reveal--hero:nth-of-type(5) {
  transition-delay: 240ms;
}

@media (max-width: 576px) {
  .banner {
    padding: 44px 0;
  }

  .banner p {
    font-size: 16px;
  }
}

/* ===============
   Buttons
   =============== */

.btn-flat {
  --bs-btn-padding-y: 10px;
  --bs-btn-padding-x: 18px;
  --bs-btn-border-radius: 8px;

  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(var(--bs-primary-rgb), 0.92);
  --bs-btn-hover-border-color: rgba(var(--bs-primary-rgb), 0.92);

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(var(--bs-primary-rgb), 0.88);
  --bs-btn-active-border-color: rgba(var(--bs-primary-rgb), 0.88);

  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);

  transition:
    transform 140ms ease,
    filter 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease;
  will-change: transform;
}

.btn-flat:hover,
.btn-flat:focus-visible {
  transform: scale(1.025);
  box-shadow: 0 10px 22px rgba(var(--sv-sand-rgb), 0.28);
  filter: drop-shadow(0 8px 18px rgba(var(--sv-sand-rgb), 0.35));
}

.btn-flat:focus-visible {
  outline: 2px solid rgba(var(--sv-sand-rgb), 0.65);
  outline-offset: 2px;
}

.btn-loc-vallis {
  background-image: linear-gradient(135deg, rgba(var(--sv-ink-rgb), 0.92), rgba(var(--sv-olive-rgb), 0.78));
  border-color: transparent;
}

.btn-loc-vallis:hover,
.btn-loc-vallis:focus-visible,
.btn-loc-vallis:active {
  background-image: linear-gradient(135deg, rgba(var(--sv-ink-rgb), 0.92), rgba(var(--sv-olive-rgb), 0.78));
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .btn-flat {
    transition: none;
  }

  .btn-flat:hover {
    transform: none;
  }

  .btn-flat:focus-visible {
    transform: none;
  }
}

.btn-ghost {
  color: var(--bs-primary);
  border: 1px solid var(--bs-primary);
  padding: 10px 18px;
  border-radius: 8px;
  background: transparent;
}

.btn-ghost:hover {
  color: var(--bs-primary);
  background: rgba(var(--sv-ink-rgb), 0.08);
}

/* Variante “sur fond sombre” (banners) */
.banner .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
}

.banner .btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
}

.btn-gradient {
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  background-image: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
}

.btn-gradient:hover {
  color: #fff;
  filter: brightness(0.98);
}

/* ===============
   Home: logo à gauche du texte
   =============== */

.sv-logo-lead__logo {
  display: flex;
  align-items: stretch;
}

.sv-logo-lead__img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  border-radius: 10px;
}

@media (max-width: 576px) {
  .sv-logo-lead__logo {
    align-items: center;
  }

  .sv-logo-lead__img {
    height: auto;
    width: 120px;
    max-width: 120px;
  }
}

/* ===============
   Home : rythme visuel & lisibilité
   (ciblé sur la homepage via .sv-home)
   =============== */

.sv-home .sv-section {
  padding-top: clamp(56px, 6vw, 88px);
  padding-bottom: clamp(56px, 6vw, 88px);
}

.sv-home .sv-prose {
  max-width: 700px;
  line-height: 1.6;
}

.image-placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 18px;
  border-radius: 12px;
  border: 2px dashed rgba(var(--sv-ink-rgb), 0.28);
  background: rgba(var(--sv-sand-rgb), 0.55);
  color: rgba(var(--sv-ink-rgb), 0.75);
  text-align: center;
  font-weight: 600;
}

.image-placeholder img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.banner .image-placeholder {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.image-placeholder--hero {
  min-height: 280px;
}

@media (max-width: 576px) {
  .image-placeholder {
    min-height: 200px;
  }

  .image-placeholder--hero {
    min-height: 220px;
  }
}

/* Visuel produit (Loc Vallis) */

.loc-vallis-phone {
  max-width: 220px;
  height: auto;
}

.loc-vallis-stamp {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  margin: 0;
}

@media (max-width: 576px) {
  .loc-vallis-phone {
    max-width: 180px;
  }

  .loc-vallis-stamp {
    width: 140px;
  }
}

/* Exergue (texte habillé) */

.sv-exergue {
  background: rgba(var(--sv-sand-rgb), 0.55);
  border: 1px solid rgba(var(--sv-ink-rgb), 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 16px;
}

.sv-exergue p {
  margin: 0;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
}

@media (min-width: 768px) {
  .sv-exergue {
    float: right;
    width: 45%;
    max-width: 380px;
    margin: 4px 0 14px 18px;
  }
}

/* Qui sommes-nous : card alignée bas/droite */

.sv-advantage-card {
  width: 100%;
}

/* ===============
   Cards
   =============== */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sv-hover-card,
.card,
.card-product {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.sv-hover-card:hover,
.sv-hover-card:focus-within,
.card:hover,
.card:focus-within,
.card-product:hover,
.card-product:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(var(--sv-ink-rgb), 0.12);
}

@media (max-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card-category {
  background-image: linear-gradient(135deg, rgba(var(--sv-ink-rgb), 0.92), rgba(var(--sv-olive-rgb), 0.78));
  background-size: cover;
  background-position: center;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.card-product {
  overflow: hidden;
  height: 140px;
  background: var(--sv-card-bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  border-radius: 12px;
}

.card-product img {
  height: 100%;
  width: 140px;
  object-fit: cover;
}

.card-product img.img-contain {
  object-fit: contain;
  background: rgba(var(--sv-sand-rgb), 0.55);
}

.sv-locv-accordion .accordion-item,
.sv-locv-accordion .accordion-button,
.sv-locv-accordion .accordion-body {
  background-color: var(--sv-card-bg);
}

.sv-locv-accordion .accordion-item {
  border: 1px solid rgba(var(--sv-ink-rgb), 0.1);
  border-radius: 12px;
}

.sv-locv-accordion .accordion-button {
  color: var(--sv-ink);
  font-weight: 700;
}

.sv-locv-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--sv-ink-rgb), 0.15);
}

.sv-locv-accordion .accordion-button:not(.collapsed) {
  color: var(--sv-ink);
}

/* ===============
   Utilitaires
   =============== */

.sv-flip-x {
  transform: scaleX(-1);
  transform-origin: center;
}

.card-product-infos {
  padding: 16px;
}

.card-product-infos h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.card-product-infos p {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.8;
  margin: 6px 0 0;
}

.sv-featured-pack {
  position: relative;
  border: 2px solid rgba(var(--sv-olive-rgb), 0.45);
  box-shadow: 0 14px 32px rgba(var(--sv-ink-rgb), 0.14);
}

.sv-featured-pack::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(var(--sv-olive-rgb), 0.08), transparent 34%);
  pointer-events: none;
}

.sv-featured-pack .card-body {
  position: relative;
}

.sv-featured-pack__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--sv-olive-rgb), 0.14);
  color: var(--sv-olive);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .sv-featured-pack {
    transform: translateY(-10px);
  }
}

.sv-section-icon,
.sv-inline-icon,
.sv-proof-icon,
.sv-pack-icon {
  color: var(--sv-olive);
}

.sv-section-icon {
  margin-right: 8px;
}

.sv-proof-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(var(--sv-olive-rgb), 0.12);
  font-size: 18px;
}

.sv-icon-list {
  list-style: none;
  padding-left: 0;
}

.sv-icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sv-icon-list li + li {
  margin-top: 10px;
}

.sv-icon-list i {
  color: var(--sv-olive);
  font-size: 15px;
  line-height: 1.4;
  margin-top: 1px;
}

.sv-btn-icon {
  margin-right: 8px;
}

.sv-mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1030;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.sv-mobile-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .navbar-lewagon,
  .sv-reveal--hero,
  .sv-reveal-on-scroll,
  .sv-hover-card,
  .card,
  .card-product,
  .sv-mobile-cta,
  .btn-flat {
    transition: none;
  }

  .sv-reveal--hero,
  .sv-reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ===============
   Footer
   =============== */

.footer {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  color: rgba(var(--sv-ink-rgb), 0.75);
  border-top: 1px solid rgba(var(--sv-ink-rgb), 0.12);
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-copyright {
  font-size: 14px;
}
