/* ============================================
   VHF Solution Swiss – Styles
   Palette : accent #0e5a12 ; texte #111827 ; muted #4b5563 ; border #e5e7eb ; fond #f6faf7
   ============================================ */

:root {
  --color-accent: #0e5a12;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --color-bg-alt: #f6faf7;
  --color-card: #fff;
  --max-width: 1200px;
  --radius: 16px;
  --shadow: 0 2px 8px rgba(14, 90, 18, 0.06);
  --shadow-hover: 0 4px 16px rgba(14, 90, 18, 0.1);
  --transition: 0.2s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Reset minimal */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-card);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 0; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  z-index: 100;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}
.logo:hover { text-decoration: none; color: var(--color-accent); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-list a {
  color: var(--color-text);
  font-weight: 500;
}
.nav-list a:hover { color: var(--color-accent); }
.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: 8px;
}
.nav-cta:hover { text-decoration: none; background: #0a4710; color: #fff !important; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--color-border); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list a { display: block; padding: 0.75rem 0; }
}

/* ========== Hero ========== */
.hero {
  background: var(--color-bg-alt);
  padding: 3rem 1.5rem 4rem;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}
.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: #0a4710; text-decoration: none; color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-secondary:hover { background: var(--color-bg-alt); text-decoration: none; color: var(--color-accent); }

/* ========== Sections communes ========== */
.section {
  padding: 4rem 1.5rem;
}
.section:nth-of-type(even) { background: var(--color-bg-alt); }
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--color-text);
}

/* ========== Carrousel Services ========== */
.carousel-wrapper {
  position: relative;
  padding: 0 3rem;
}
.carousel-track-container {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track-container::-webkit-scrollbar { display: none; }
.carousel-track {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
  min-width: min-content;
}
.carousel-card {
  flex: 0 0 calc(100% - 2rem);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.carousel-card:hover {
  box-shadow: var(--shadow-hover);
}
.carousel-card:focus-within { outline: 2px solid var(--color-accent); outline-offset: 2px; }
@media (min-width: 600px) {
  .carousel-card { flex: 0 0 calc(50% - 1rem); }
}
@media (min-width: 900px) {
  .carousel-card { flex: 0 0 calc(33.333% - 1rem); }
}
.carousel-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.carousel-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}
.carousel-card p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.carousel-card a[href] {
  font-weight: 600;
  color: var(--color-accent);
}
.carousel-card a[href]:hover { text-decoration: underline; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-accent);
  background: var(--color-card);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-accent);
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition), color var(--transition);
}
.carousel-btn:hover {
  background: var(--color-accent);
  color: #fff;
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-indicator {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Fade léger sur les bords (mask) */
.carousel-wrapper::before,
.carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 2rem;
  width: 24px;
  pointer-events: none;
  z-index: 1;
}
.carousel-wrapper::before {
  left: 3rem;
  background: linear-gradient(to right, var(--color-bg-alt), transparent);
}
.carousel-wrapper::after {
  right: 3rem;
  background: linear-gradient(to left, var(--color-bg-alt), transparent);
}
@media (max-width: 768px) {
  .carousel-wrapper { padding: 0 2.5rem; }
  .carousel-wrapper::before { left: 2.5rem; }
  .carousel-wrapper::after { right: 2.5rem; }
}

/* ========== About ========== */
.about-intro {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  max-width: 65ch;
}
.about-points {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-points li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--color-text);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ========== Tallentis ========== */
.tallentis-intro {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  max-width: 65ch;
}
.tallentis-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ========== Contact ========== */
.contact-block {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  max-width: 400px;
}
.contact-block p { margin: 0.5rem 0; }
.contact-block a { font-weight: 500; }

.contact-form {
  max-width: 480px;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--color-text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  background: var(--color-card);
}
.form-group input:invalid.touched,
.form-group textarea:invalid.touched {
  border-color: #b91c1c;
}
.form-error {
  display: block;
  font-size: 0.875rem;
  color: #b91c1c;
  margin-top: 0.25rem;
}

/* ========== Footer ========== */
.footer {
  background: var(--color-text);
  color: #e5e7eb;
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.footer a { color: #e5e7eb; }
.footer a:hover { text-decoration: underline; }
.footer-copy {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
