/* ===== Soudlien — Feuille de style principale ===== */

:root {
  --bg: #1c1c1e;
  --bg-alt: #262629;
  --card: #2a2a2e;
  --border: #3a3a3e;
  --text: #f5f5f0;
  --text-muted: #b5b5b0;
  --accent: #f2994a;
  --accent-dark: #d9722a;
  --accent-light: #f7b273;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --container: 1140px;
  --font-display: "Anton", "Oswald", "Arial Narrow", sans-serif;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

a, button, .btn, .nav-toggle, .filter-btn {
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

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

section {
  padding: 80px 0;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 48px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1c1c1e;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--accent);
  color: #1c1c1e;
}

/* ===== Header / Nav ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
  transition: padding 0.3s var(--ease);
}

.site-header.scrolled .nav {
  padding: 12px 24px;
}

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

.logo img {
  height: 104px;
  width: 104px;
  display: block;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.nav-links a.nav-cta {
  background: var(--accent);
  color: #1c1c1e !important;
  padding: 10px 20px;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  transform-origin: center;
  transition: transform 0.25s var(--ease), opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 150;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  padding: 130px 0 90px;
  background:
    linear-gradient(90deg, rgba(15,15,16,0.94) 0%, rgba(15,15,16,0.8) 45%, rgba(15,15,16,0.4) 75%, rgba(15,15,16,0.08) 100%),
    linear-gradient(0deg, rgba(15,15,16,0.96) 0%, transparent 30%),
    url('../images/background.webp');
  background-size: cover, cover, cover;
  background-position: center, center, center 25%;
  background-repeat: no-repeat;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero .container {
  position: relative;
}

.hero-content {
  max-width: 640px;
}

.hero .section-tag {
  font-size: 0.9rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.3rem;
  color: var(--accent);
}

.hero-stat span {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Services ===== */

.services {
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(242, 153, 74, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-card ul {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card ul li::before {
  content: "— ";
  color: var(--accent);
}

/* ===== Why us ===== */

.why-section {
  position: relative;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.why-item {
  text-align: left;
}

.why-item strong {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== CTA banner ===== */

.cta-banner {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent));
  color: #1c1c1e;
  text-align: center;
  padding: 64px 0;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 12px;
}

.cta-banner p {
  margin-bottom: 28px;
  font-size: 1.05rem;
  opacity: 0.85;
}

.cta-banner .btn-primary {
  background: #1c1c1e;
  color: var(--text);
}

.cta-banner .btn-primary:hover {
  background: #000;
}

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

.site-footer {
  background: #151516;
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ===== Page header (Projets / Contact) ===== */

.page-hero {
  padding: 72px 0 48px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero .section-tag {
  justify-content: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.page-hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 16px auto 0;
}

/* ===== Projets ===== */

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1c1c1e;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.project-thumb {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, #333336 0px, #333336 10px, #2c2c2f 10px, #2c2c2f 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

.project-info {
  padding: 20px 22px 24px;
}

.project-tag {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-head);
}

.project-info h3 {
  font-size: 1.05rem;
  margin: 8px 0 6px;
  text-transform: none;
  letter-spacing: 0;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Contact ===== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  height: fit-content;
}

.contact-info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.contact-row {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-row .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(242, 153, 74, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-row strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-row span,
.contact-row a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-row a:hover {
  color: var(--accent);
}

.contact-zones {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.contact-zones h4 {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-zones p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-head);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 20px;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid #4caf50;
  color: #8bd18f;
}

.form-status.error {
  display: block;
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid #dc3545;
  color: #f19aa4;
}

.map-placeholder {
  margin-top: 56px;
  aspect-ratio: 16 / 5;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Scroll reveal ===== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-group .reveal:nth-child(6) { transition-delay: 0.4s; }
.reveal-group .reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal-group .reveal:nth-child(8) { transition-delay: 0.56s; }
.reveal-group .reveal:nth-child(9) { transition-delay: 0.64s; }

/* Une fois révélée, la carte reprend sa propre transition (rapide, sans délai)
   pour que le tilt au survol réagisse immédiatement au lieu d'hériter
   du fondu d'entrée (0.7s + délai échelonné). */
.service-card.reveal.is-visible {
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
  transition-delay: 0s;
}

/* ===== Jagged section divider ===== */

.divider {
  display: block;
  width: 100%;
  height: 46px;
  line-height: 0;
}

.divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Badge (certification / trust marker) ===== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 153, 74, 0.1);
  border: 1px solid rgba(242, 153, 74, 0.35);
  color: var(--accent-light);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== L'artisan (About) section ===== */

.artisan-section {
  position: relative;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.artisan-copy {
  max-width: 700px;
}

.artisan-copy .badge {
  margin-bottom: 20px;
}

.artisan-copy h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 20px;
}

.artisan-copy p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.artisan-copy p:last-of-type {
  margin-bottom: 0;
}

.artisan-copy strong {
  color: var(--text);
}

/* ===== Zone d'intervention ===== */

.zone-section {
  position: relative;
  overflow: hidden;
}

.zone-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zone-list li {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.zone-list li.zone-main {
  background: var(--accent);
  color: #1c1c1e;
  border-color: var(--accent);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Décorations SVG (weld1 / weld2) ===== */

.decor-weld {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.decor-weld.is-bright {
  color: var(--accent-light);
  opacity: 0.85;
}

.decor-weld.is-dim {
  color: var(--accent-dark);
  opacity: 0.3;
}

.services .container,
.artisan-section .container,
.why-section .container,
.zone-section .container {
  position: relative;
  z-index: 1;
}

/* Services */
.decor-weld--a1 { top: 0%; left: 40%; width: 136px; height: 136px; transform: rotate(-15deg); }
.decor-weld--a2 { top: 6%; left: 90%; width: 108px; height: 108px; transform: rotate(20deg); }
.decor-weld--a3 { top: 90%; left: 12%; width: 92px; height: 92px; transform: rotate(8deg); }

/* L'artisan */
.decor-weld--b1 { top: 0%; left: 87%; width: 152px; height: 152px; transform: rotate(10deg); }
.decor-weld--b2 { top: 60%; left: 2%; width: 104px; height: 104px; transform: rotate(-25deg); }
.decor-weld--b3 { top: 85%; left: 76%; width: 84px; height: 84px; transform: rotate(15deg); }



/* Zone d'intervention */
.decor-weld--d1 { top: -5%; left: 82%; width: 108px; height: 108px; transform: rotate(12deg); }
.decor-weld--d2 { top: 52%; left: 85%; width: 144px; height: 144px; transform: rotate(-18deg); }
.decor-weld--d3 { top: 78%; left: 40%; width: 92px; height: 92px; transform: rotate(6deg); }

/* ===== Responsive ===== */

@media (max-width: 860px) {
  .decor-weld {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    height: 100dvh;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 96px 28px 28px;
    gap: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    pointer-events: none;
    z-index: 200;
  }

  .nav-links.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .zone-section .container {
    grid-template-columns: 1fr;
  }
}

/* ===== Pages légales ===== */

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.legal-content ul {
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-left: 20px;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-content strong {
  color: var(--text);
}

.legal-placeholder {
  color: var(--accent-light);
  font-style: italic;
}

/* ===== Page 404 ===== */

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Piège à robots (formulaire de contact) ===== */

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
