/* =========================================
   1. ROOT / THEME
========================================= */

:root {
  --bg-body: #0c0d10;
  --bg-header: rgba(6, 7, 10, 0.9);
  --bg-section: #14161b;
  --bg-section-alt: #181b21;
  --accent: #f6c436;
  --accent-soft: rgba(246, 196, 54, 0.16);
  --text-main: #f5f5f7;
  --text-muted: #b2b6c2;
  --border-soft: #2a2d36;
  --error: #ff5c5c;
  --success: #37b26e;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.5);
  --transition-fast: 0.18s ease-out;
}

/* =========================================
   2. RESET & BASE
========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #181b21 0, #050509 55%);
  color: var(--text-main);
  line-height: 1.5;
  padding-top: 72px;
}

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

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

a:hover {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Langues : contenu FR/EN piloté par la classe sur body */
[data-lang] {
  display: none;
}

body.lang-fr [data-lang="fr"],
body.lang-en [data-lang="en"] {
  display: initial;
}

/* Container global */
.container {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
}

/* =========================================
   3. HEADER & NAV
========================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Oswald", system-ui, sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.logo span {
  text-transform: uppercase;
}

/* Navigation */

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.4rem;
  font-size: 0.93rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-link {
  position: relative;
  padding-bottom: 0.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after {
  width: 100%;
}

/* Header actions */

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.header-phone {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 196, 54, 0.4);
  background: radial-gradient(circle at top, rgba(246, 196, 54, 0.09), transparent 55%);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.header-phone:hover {
  background-color: var(--accent-soft);
}

/* Switch langue */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
}

.lang-switch button.is-active {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================
   4. HERO
========================================= */

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  isolation: isolate;
  color: var(--text-main);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(12, 13, 17, 0.9)),
    url("https://i.ibb.co/nMYQQsc9/IMG-7377.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(246, 196, 54, 0.16), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(9, 10, 16, 0.85), rgba(3, 4, 8, 0.98));
  mix-blend-mode: soft-light;
  z-index: -1;
}

.hero-content {
  padding: 4rem 0 3.5rem;
  display: grid;
  gap: 2rem;
  align-items: flex-start;  /* ← ajout important */

}

/* Hero texte */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(246, 196, 54, 0.85);
}

.hero-title {
  font-family: "Oswald", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3rem);
}

.hero-subtitle {
  margin-top: 0.6rem;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.hero-highlight {
  margin-top: 1.4rem;
  font-size: 1.05rem;
  max-width: 32rem;
  color: var(--text-main);
}

.hero-line {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-line strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-trust {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-trust strong {
  color: var(--text-main);
}

/* CTA */

.hero-cta {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Boutons génériques */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  background: none;
  color: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ffda73);
  color: #181818;
  box-shadow: 0 12px 30px rgba(246, 196, 54, 0.35);
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(246, 196, 54, 0.4);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.hero-phone-note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-phone-note a {
  color: var(--accent);
  font-weight: 500;
}

/* Hero visuel camion */

.hero-visual {
  border-radius: 20px;
  border: 1px solid rgba(246, 196, 54, 0.12);
  background: radial-gradient(circle at top left, rgba(246, 196, 54, 0.22), rgba(0, 0, 0, 0.98));
  padding: 0.75rem;
  box-shadow: var(--shadow-soft);
}

.hero-visual-inner {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.9);
  
}
.hero-visual-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   5. SECTIONS GÉNÉRALES
========================================= */

section {
  padding-block: 3.5rem;
}

section:nth-of-type(odd) {
  background: var(--bg-section);
}

section:nth-of-type(even) {
  background: var(--bg-section-alt);
}

.section-header {
  margin-bottom: 2.2rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: "Oswald", system-ui, sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-subtitle {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 32rem;
}

/* =========================================
   6. SERVICES + POURQUOI
========================================= */

#services .section-content {
  display: grid;
  gap: 1.8rem;
}

/* Services cards */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-card {
  padding: 1.1rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at top left, rgba(246, 196, 54, 0.08), transparent 60%);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.service-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(246, 196, 54, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
}

.service-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.22rem;
}

.service-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Pourquoi Soudure KMA */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.why-item-icon {
  font-size: 1rem;
  margin-top: 0.1rem;
}

/* =========================================
   7. RÉALISATIONS (GALERIE)
========================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #090a0d;
  position: relative;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.35s ease-out, filter 0.35s ease-out;
  filter: saturate(1.1) contrast(1.1);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.2) contrast(1.15) brightness(1.02);
}

.gallery-caption {
  padding: 0.55rem 0.75rem 0.7rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: linear-gradient(to top, rgba(12, 13, 18, 0.96), rgba(12, 13, 18, 0.76));
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.gallery-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

/* =========================================
   8. LIGHTBOX (zoom images)
========================================= */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast);
  z-index: 200;
}

.lightbox-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #050509;
  position: relative;
}

.lightbox-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.45);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

.lightbox-caption {
  padding: 0.4rem 0.75rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #050509;
}

/* =========================================
   9. À PROPOS
========================================= */

.about-layout {
  display: grid;
  gap: 1.6rem;
}

.about-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 1.4rem 1.2rem;
  background: radial-gradient(circle at top, rgba(246, 196, 54, 0.08), transparent 65%);
  box-shadow: var(--shadow-soft);
}

.about-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.about-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.about-meta {
  display: grid;
  gap: 0.25rem;
  font-size: 0.86rem;
}

.about-meta strong {
  font-weight: 600;
  color: var(--text-main);
}

/* =========================================
   10. CONTACT & FORMULAIRE
========================================= */

.contact-layout {
  display: grid;
  gap: 1.8rem;
}

.contact-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #0e1015;
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.contact-form-grid {
  display: grid;
  gap: 0.85rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.86rem;
}

label {
  color: var(--text-muted);
  font-weight: 500;
}

.required {
  color: var(--accent);
  margin-left: 0.15rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
textarea {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 5, 9, 0.9);
  padding: 0.55rem 0.6rem;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: #6b6f7b;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input[type="file"] {
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
  background: rgba(4, 5, 9, 0.9);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(246, 196, 54, 0.5);
  background: #05060a;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Coordonnées contact */

.contact-infos {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
}

.contact-infos strong {
  font-weight: 600;
  color: var(--text-main);
}

.contact-infos a {
  color: var(--accent);
  font-weight: 500;
}

/* Honeypot anti-spam */

.honeypot {
  display: none;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

/* =========================================
   11. FOOTER
========================================= */

.site-footer {
  background: #050509;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 1.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.footer-line strong {
  color: var(--text-main);
  font-weight: 600;
}

.footer-credit {
  font-size: 0.78rem;
}

.footer-credit a {
  color: var(--accent);
  font-weight: 500;
}

/* =========================================
   12. BOUTON FLOTTANT APPEL
========================================= */

.floating-call {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 190;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ffda73);
  box-shadow: 0 12px 30px rgba(246, 196, 54, 0.5);
  color: #181818;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.4rem;
}

.floating-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(246, 196, 54, 0.6);
}

/* =========================================
   13. RESPONSIVE
========================================= */

@media (min-width: 720px) {
  .main-nav {
    display: block;
  }

  .header-inner {
    padding-block: 0.8rem;
  }

  .hero-content {
    padding: 5rem 0 4rem;
    grid-template-columns: minmax(0, 3.5fr) minmax(0, 2.5fr);
    gap: 2.5rem;
  }

  section {
    padding-block: 4.5rem;
  }

  #services .section-content {
    grid-template-columns: 1.8fr 2.2fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .gallery-item img {
    height: 210px;
  }

  .about-layout {
    grid-template-columns: 3fr 2.4fr;
  }

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

  .form-row-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1000px) {
  .hero-title {
    font-size: 3.1rem;
  }

  .hero-highlight {
    font-size: 1.12rem;
  }

  .gallery-item img {
    height: 230px;
  }
}

/* Cacher le bouton flottant sur desktop (facultatif) */
@media (min-width: 900px) {
  .floating-call {
    display: none;
  }
}