/* ==========================================================================
   Lazewood — feuille de style principale
   Site statique (HTML/CSS/JS) — https://lazewood.ch
   ========================================================================== */

:root {
  --color1: #3B4455;
  --color1-light: #6c7380;
  --color1-lighter: #9da2aa;
  --color1-dark: #2c3340;
  --color1-darker: #1e222b;

  --color2: #BBC7C5;
  --color2-light: #eef1f1;
  --color2-mid: #8c9594;
  --color2-dark: #5e6463;

  --ink: #23272f;
  --ink-soft: #5a616d;
  --paper: #ffffff;
  --paper-alt: #f7f8f8;
  --line: #e4e8e8;

  --font-main: "Bellota Text", "Helvetica Neue", Arial, sans-serif;

  --container-width: 1200px;
  --gap: 1.5rem;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(35, 39, 47, 0.04), 0 4px 16px rgba(35, 39, 47, 0.05);
  --shadow-md: 0 2px 6px rgba(35, 39, 47, 0.06), 0 16px 40px -12px rgba(35, 39, 47, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h, 110px) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.68;
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: var(--color1); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 1rem;
  line-height: 1.25;
}

p { margin: 0 0 1rem; }

::selection { background: var(--color2); color: var(--color1-darker); }

:focus-visible {
  outline: 2px solid var(--color1);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  background: var(--color1);
  color: #fff;
  border: 1px solid var(--color1);
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  background: var(--color1-dark);
  border-color: var(--color1-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(59, 68, 85, 0.6);
}

.btn:active { transform: translateY(0); box-shadow: none; }

.btn-outline {
  background: transparent;
  color: var(--color1);
}

.btn-outline:hover {
  background: var(--color1);
  color: #fff;
}

/* ---- Header ---- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

#site-header.scrolled {
  padding: 4px 0;
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(35, 39, 47, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 104px;
  width: auto;
  transition: height 0.3s var(--ease);
}

#site-header.scrolled .logo img { height: 68px; }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.main-nav a {
  position: relative;
  display: block;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--color2-dark);
  padding: 10px 14px;
  text-transform: uppercase;
  transition: color 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--color1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover { color: var(--color1-dark); }
.main-nav a:hover::after { transform: scaleX(1); }

.main-nav li.active a { color: var(--color1-dark); }
.main-nav li.active a::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--color1);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease);
}

.nav-toggle:hover { background: var(--color2-light); }

@media (max-width: 768px) {
  html { scroll-padding-top: calc(var(--header-h, 80px) + 12px); }

  .logo img, #site-header.scrolled .logo img { height: 58px; }

  .nav-toggle { display: block; }

  .main-nav {
    display: grid;
    grid-template-rows: 0fr;
    width: 100%;
    overflow: hidden;
    transition: grid-template-rows 0.35s var(--ease);
  }

  .main-nav.open { grid-template-rows: 1fr; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 10px;
    min-height: 0;
  }

  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after { display: none; }
}

/* ---- Sections vitrine (accueil) ---- */
.feature-section {
  padding: 56px 0;
}

.feature-section:first-child { padding-top: 40px; }

.feature-section.bg-white {
  background: var(--paper-alt);
}

.feature-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.feature-grid--reverse {
  grid-template-columns: 5fr 7fr;
}

.feature-grid--reverse .feature-text { order: 1; }
.feature-grid--reverse .feature-images { order: 2; }

.feature-images__main,
.feature-images__small {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color2-light);
  box-shadow: var(--shadow-sm);
}

.feature-images__main img,
.feature-images__small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.feature-images:hover .feature-images__main img { transform: scale(1.03); }
.feature-images__small:hover img { transform: scale(1.05); }

.feature-images__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: var(--gap);
}

.feature-text {
  padding: 8px 0;
}

.feature-text h1,
.feature-text h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.feature-text h1::after,
.feature-text h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--color2);
}

.feature-text p { color: var(--ink-soft); }

.feature-text p strong { color: var(--ink); font-weight: 700; }

.feature-text .btn { margin-top: 1.5rem; }

@media (max-width: 992px) {
  .feature-section { padding: 36px 0; }

  .feature-grid,
  .feature-grid--reverse {
    grid-template-columns: 1fr;
  }

  .feature-grid--reverse .feature-text,
  .feature-grid--reverse .feature-images {
    order: initial;
  }
}

/* ---- Footer ---- */
#site-footer {
  background: var(--paper);
  color: var(--color1-light);
  text-align: center;
  padding: 56px 0 40px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-logo {
  max-height: 76px;
  margin: 0 auto 1rem;
}

.footer-company {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  margin-bottom: 1.75rem;
}

.footer-company strong { color: var(--color1); font-weight: 700; }

/* Flux inline à l'intérieur : en flex, « Fabriqué en » et « Suisse »
   deviendraient deux éléments séparés et l'espace entre eux serait perdu
   ou remplacé par le gap du conteneur. */
.footer-claim {
  white-space: nowrap;
}

/* Point médian entre les fragments : sans lui, les trois morceaux
   flottent côte à côte au lieu de se lire comme une seule phrase. */
.footer-claim + .footer-claim::before {
  content: "·";
  color: var(--color2-mid);
  margin-right: 14px;
}

/* Pictogramme éventuel, si une mention en redemande un un jour */
.footer-claim i {
  font-size: 14px;
  color: var(--color2-mid);
  margin-right: 8px;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .footer-company { gap: 4px 10px; font-size: 15px; }
  .footer-claim + .footer-claim::before { margin-right: 10px; }
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 1.75rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--color1);
  font-size: 20px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.social-icons a:hover {
  color: #fff;
  background: var(--color1);
  border-color: var(--color1);
  transform: translateY(-3px);
}

.footer-copyright { font-size: 14px; color: var(--color1-lighter); margin: 0; }

/* ---- Pastilles de navigation verticale ----
   Deux pastilles identiques sur le bord droit, de part et d'autre du milieu de
   l'écran : « remonter » au-dessus, « descendre » en dessous. Elles glissent
   depuis la droite et s'affichent indépendamment (cf. js/main.js). ---- */
#scrollToTop,
#scrollToBottom {
  position: fixed;
  right: 0;
  width: 36px;
  height: 56px;
  border-radius: 8px 0 0 8px;
  background: var(--color1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(100%);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              background 0.25s var(--ease);
  box-shadow: var(--shadow-md);
  z-index: 500;
  border: none;
  cursor: pointer;
}

/* 32 px de part et d'autre du centre = 8 px entre les deux pastilles. */
#scrollToTop    { top: calc(50% - 32px); }
#scrollToBottom { top: calc(50% + 32px); }

#scrollToTop.active,
#scrollToBottom.active {
  opacity: 0.85;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

#scrollToTop:hover,
#scrollToTop:focus-visible,
#scrollToBottom:hover,
#scrollToBottom:focus-visible {
  opacity: 1;
  background: var(--color1-dark);
}

@media (max-width: 768px) {
  #scrollToTop,
  #scrollToBottom { width: 30px; height: 46px; font-size: 13px; }
  #scrollToTop    { top: calc(50% - 27px); }
  #scrollToBottom { top: calc(50% + 27px); }
}

/* ---- Page Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 36px; }
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-form .form-group { margin-bottom: 1.1rem; }

.contact-form label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--color1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d6dbdb;
  border-radius: var(--radius-sm);
  background: #fcfdfd;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #aab1b1; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--color1);
  box-shadow: 0 0 0 3px rgba(187, 199, 197, 0.45);
}

.contact-form .form-group:last-child { margin-bottom: 0; }
.contact-form button[type="submit"] { width: 100%; margin-top: 4px; }

.form-message { margin-bottom: 1rem; }
.form-message:empty { margin-bottom: 0; }

.form-message .alert {
  background: var(--color2-light);
  border: 1px solid var(--color2);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--color1);
  font-size: 15px;
}

.form-message .alert.success {
  background: #edf6ed;
  border-color: #8fc98f;
  color: #2c5c2c;
}

.form-message ul { margin: 6px 0 0 20px; padding: 0; }

.contact-info-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.contact-info-image:hover img { transform: scale(1.03); }

.contact-info h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.contact-info h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--color2);
}

.contact-info .lead div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info .lead div:last-child { border-bottom: 0; }

.contact-info .lead a {
  color: var(--color1);
  border-bottom: 1px solid var(--color2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-info .lead a:hover { color: var(--color1-dark); border-color: var(--color1); }

/* ---- Carte ---- */
.map-holder {
  position: relative;
  height: clamp(340px, 46vw, 460px);
  background: var(--color2-light);
  border-top: 1px solid var(--line);
}

.map-holder iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---- Animation légère au scroll (remplace AOS) ---- */
[data-aos] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-aos] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- Écran de chargement ---- */
#pageLoader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s var(--ease);
}

#pageLoader.loaded {
  opacity: 0;
  pointer-events: none;
}

#pageLoader svg { width: 54px; height: 54px; animation: spin 1.4s linear infinite; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

#pageLoader circle {
  fill: none;
  stroke: var(--color1);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 90, 150;
}

/* Champ piège anti-robots : retiré du flux, invisible et non focalisable */
.champ-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
