/* ===========================================================
   SARL LES FILS D'ACIER DE CHLEF — Stylesheet
   Replicates original Jimdo site design (colors, fonts, layout)
=========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Mukta:wght@400;700&display=swap');

:root {
  --headline-font: 'Playfair Display', serif;
  --copy-font: 'Mukta', sans-serif;
  --header-bg: #2b3434;
  --header-bg-light: rgba(43, 52, 52, 0.92);
  --text-dark: #1f1f1f;
  --text-light: #ffffff;
  --accent: #c9a23f;
  --gray-50: #fafafa;
  --gray-100: #f3f3f1;
  --gray-200: #e7e7e4;
  --gray-700: #44504f;
  --gray-900: #20272a;
  --max-width: 1280px;
  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--copy-font);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.6;
  background: #ffffff;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

body.has-hero { padding-top: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { transition-delay: calc(var(--stagger-i, 0) * 90ms); }

/* page transition fade-in */
body { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--headline-font);
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.25;
}

h1 strong, h2 strong, h3 strong { font-weight: 900; }

h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }

p { margin: 0 0 16px 0; }
ul { margin: 0 0 16px 0; padding-inline-start: 22px; }
li { margin-bottom: 6px; }

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

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

.text-align-center { text-align: center; }

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

/* ============ HEADER / NAVBAR (merged single bar) ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg-light);
  color: var(--text-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .3s var(--ease);
}

.site-header.has-hero:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.site-header.scrolled {
  background: rgba(32, 39, 42, 0.96);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  gap: 28px;
  min-height: var(--header-h);
  transition: min-height .3s var(--ease), padding .3s var(--ease);
}

.site-header.scrolled .header-top {
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  transition: width .3s var(--ease), height .3s var(--ease);
}

.brand-name {
  font-family: var(--headline-font);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

@media (max-width: 1080px) and (min-width: 901px) {
  .brand-name { display: none; }
  .nav-list { gap: 22px; }
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border: 1.5px solid var(--text-light);
  border-radius: 30px;
  font-family: var(--copy-font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  background: transparent;
  color: var(--text-light);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform .3s var(--ease);
  text-align: center;
}

.btn:hover {
  background: var(--text-light);
  color: var(--header-bg);
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--text-light);
  color: var(--header-bg);
}
.btn-solid:hover {
  background: transparent;
  color: var(--text-light);
}

/* Language switcher */
.lang-switch {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 2px;
  background: transparent;
  color: var(--text-light);
  font-family: var(--copy-font);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.lang-current:hover {
  border-color: var(--text-light);
}

.lang-current .chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
}

.lang-switch.open .lang-current .chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  min-width: 150px;
  overflow: hidden;
  display: none;
  z-index: 1100;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-switch.open .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  transition: background 0.15s ease;
}

.lang-dropdown a:hover {
  background: #f1f1f1;
}

.lang-dropdown a.active {
  background: #ebebeb;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-light);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Main nav (merged inline into header-top via JS) */
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-list a {
  position: relative;
  color: var(--text-light);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 6px 0;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  transform: scaleX(1);
}

@media (max-width: 900px) {
  .mobile-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 26px 20px;
    background: rgba(32, 39, 42, 0.98);
    backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s var(--ease), opacity .3s ease;
  }
  .nav-list.mobile-open {
    max-height: 400px;
    opacity: 1;
  }
  .header-top .btn-hire { display: none; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}

/* ============ HERO CAROUSEL (Home page) ============ */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #1c2222;
}

.hero-track {
  display: flex;
  transition: transform 0.8s var(--ease);
}

.hero-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 92vh;
  min-height: 520px;
  max-height: 880px;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s linear;
}

.hero-slide.is-active img {
  transform: scale(1.16);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,24,24,0.45) 0%, rgba(15,18,18,0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  text-align: center;
  color: #fff;
  max-width: 720px;
  padding: 24px;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease) .15s, transform .9s var(--ease) .15s;
}

.hero-slide.is-active .hero-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-text h1 {
  color: #fff;
  font-size: 48px;
  margin-bottom: 18px;
  letter-spacing: .3px;
}

.hero-text p {
  font-size: 18px;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-size: 20px;
  color: var(--header-bg);
}

.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }
.hero-nav:hover { background: #fff; }

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.active {
  background: #fff;
}

/* ============ SECTIONS ============ */
section {
  padding: 90px 0;
  position: relative;
}

section.tone-gray { background: var(--gray-100); }
section.tone-white { background: #ffffff; }
section.tone-dark { background: var(--header-bg); color: #fff; }
section.tone-dark h2, section.tone-dark h1, section.tone-dark h3 { color: #fff; }
section.tone-dark p { color: rgba(255,255,255,0.82); }
/* White cards sitting inside a dark section (e.g. the contact form
   card) must keep normal dark text — they are not part of the dark
   background visually. */
section.tone-dark .contact-form-card,
section.tone-dark .contact-form-card h1,
section.tone-dark .contact-form-card h2,
section.tone-dark .contact-form-card h3 { color: var(--text-dark); }
section.tone-dark .contact-form-card p,
section.tone-dark .contact-form-card label { color: var(--text-dark); }

.section-narrow {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.section-narrow h2 { margin-bottom: 18px; }

.cta-button-wrap {
  margin-top: 28px;
  text-align: center;
}

.btn-dark {
  display: inline-block;
  padding: 15px 36px;
  background: var(--header-bg);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s ease;
  box-shadow: 0 8px 20px rgba(20,30,30,0.18);
}
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(20,30,30,0.26); }

/* On a dark section, swap the dark button for the gold accent so it stays visible */
section.tone-dark .btn-dark {
  background: var(--accent);
  color: var(--header-bg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
section.tone-dark .btn-dark:hover {
  background: #ddb958;
  box-shadow: 0 14px 28px rgba(0,0,0,0.4);
}

/* Card grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 0 24px;
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .card-grid, .card-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20,30,30,0.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(20,30,30,0.14);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #a2a2a2;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.card:hover .card-img-wrap img {
  transform: scale(1.07);
}

.card-body {
  padding: 28px 26px;
}

.card-body h3 { margin-bottom: 12px; }

.card-cta {
  margin-top: 14px;
}

.card-cta a {
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid var(--header-bg);
  padding-bottom: 2px;
}

/* Card variant used when the surrounding section is tone-dark */
section.tone-dark .card { background: rgba(255,255,255,0.06); box-shadow: none; border: 1px solid rgba(255,255,255,0.14); }
section.tone-dark .card-body h3 { color: #fff; }
section.tone-dark .card-body p { color: rgba(255,255,255,0.78); }
section.tone-dark .card-cta a { color: #fff; border-color: var(--accent); }
section.tone-dark .card:hover { box-shadow: 0 18px 36px rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.28); }

/* Product cards (services page) — separated, independent cards */
.product-card {
  background: #fff;
  margin-bottom: 0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(20,30,30,0.08);
}

.product-card .card-img-wrap {
  aspect-ratio: 1/1;
}

.product-card.dark { background: var(--header-bg); }
.product-card.dark .card-body { background: var(--header-bg); color: #fff; }
.product-card.dark .card-img-wrap { background: var(--header-bg); }
.product-card.dark h3 { color: #fff; }
.product-card.dark .card-cta a { border-color: #fff; }

.product-card .card-body ul { text-align: left; }
[dir="rtl"] .product-card .card-body ul { text-align: right; }

/* Photo gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  max-width: var(--max-width);
  margin: 30px auto 0;
  padding: 0 24px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  cursor: zoom-in;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(20,30,30,0.1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.gallery-grid img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 14px 28px rgba(20,30,30,0.18);
}

section.tone-dark .gallery-grid img { box-shadow: 0 3px 14px rgba(0,0,0,0.35); }
section.tone-dark .gallery-grid img:hover { box-shadow: 0 14px 28px rgba(0,0,0,0.45); }

/* Photos page — large featured hero image */
.photo-hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 900px) {
  .photo-hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

.photo-hero-img {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
.photo-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,12,12,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 30px;
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  animation: lbIn .35s var(--ease);
}
@keyframes lbIn { from { opacity:0; transform:scale(.96);} to { opacity:1; transform:scale(1);} }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}
[dir="rtl"] .lightbox-close { right: auto; left: 30px; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto 0;
  padding: 0 24px;
}

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

.contact-info {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 36px 30px;
  box-shadow: 0 10px 30px rgba(20,30,30,0.06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.contact-info:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20,30,30,0.1);
}

.contact-info .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--header-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.contact-info .icon-badge svg { width: 24px; height: 24px; }

.contact-info h3 {
  font-size: 19px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-100);
}
.contact-info a { text-decoration: none; color: var(--text-dark); transition: color .2s ease; }
.contact-info a:hover { color: var(--accent); text-decoration: underline; }
.contact-info p { font-size: 14.5px; }
.contact-info p strong { color: var(--header-bg); }

.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-form-card {
  background: #fff;
  border-radius: 18px;
  padding: 46px 42px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

@media (max-width: 600px) {
  .contact-form-card { padding: 32px 22px; }
}

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

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-row .required {
  color: #b00020;
  font-weight: 400;
  font-size: 12px;
  margin-inline-start: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--copy-font);
  font-size: 15px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--header-bg);
  box-shadow: 0 0 0 3px rgba(43,52,52,0.1);
}

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

.form-note {
  font-size: 13px;
  color: #666;
}
.form-note a { text-decoration: underline; }

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--header-bg);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s ease;
  box-shadow: 0 8px 20px rgba(20,30,30,0.18);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(20,30,30,0.26); background: #20272a; }

.form-status {
  margin-top: 14px;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 3px;
  display: none;
}
.form-status.success { display: block; background: #e3f5e6; color: #1e6b2e; }
.form-status.error { display: block; background: #fbe5e5; color: #a1271f; }

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

.map-embed {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.16);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.8);
  padding: 38px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}

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

/* RTL adjustments */
[dir="rtl"] .hero-nav.prev { left: auto; right: 20px; transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .hero-nav.next { right: auto; left: 20px; transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .card-cta a { border-bottom: 2px solid var(--header-bg); }
