/*
 Theme Name:   FUELINE Child
 Theme URI:    https://fueline.com
 Description:  FUELINE – Fournitures Industrielles B2B Algeria
 Author:       FUELINE
 Template:     twentytwentyfive
 Version:      6.1.0
 Text Domain:  fueline-child
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Serif+Display&display=swap');

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --teal:       #1a7a6e;
  --teal-light: #22998a;
  --teal-dim:   #e8f5f3;
  --gold:       #c9a84c;
  --gold-light: #dbbe72;
  --ink:        #0f1a18;
  --body:       #374340;
  --muted:      #6b7f7c;
  --line:       #e2e8e7;
  --line-soft:  #f0f4f3;
  --bg:         #ffffff;
  --bg-soft:    #f7faf9;
  --snow:       #ffffff;

  --font-serif: 'DM Serif Display', serif;
  --font-sans:  'DM Sans', sans-serif;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --shadow-sm:  0 1px 4px rgba(15,26,24,0.06);
  --shadow-md:  0 4px 20px rgba(15,26,24,0.08);
  --shadow-lg:  0 8px 40px rgba(15,26,24,0.10);

  --nav-h: 72px;
}

/* ═══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body.fueline-page {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.fueline-page .site-header,
body.fueline-page .site-footer,
body.fueline-page .wp-block-template-part { display: none !important; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ═══════════════════════════════════════════
   LABEL
═══════════════════════════════════════════ */
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   NAV — Desktop (>900px)
   Logo | Links | CTA button
═══════════════════════════════════════════ */
.f-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.f-nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.f-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.f-logo { flex-shrink: 0; }
.f-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Desktop links */
.f-nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}
.f-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}
.f-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width 0.3s var(--ease-out);
}
.f-nav-links a:hover { color: var(--teal); }
.f-nav-links a:hover::after { width: 100%; }

/* Desktop CTA */
.f-nav-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--snow);
  background: var(--teal);
  padding: 10px 24px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.f-nav-btn:hover {
  background: var(--teal-light);
  box-shadow: 0 4px 16px rgba(26,122,110,0.25);
  transform: translateY(-1px);
}

/* Hamburger toggle — hidden on desktop */
.f-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.f-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.f-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.f-nav-toggle.open span:nth-child(2) { opacity: 0; }
.f-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   MOBILE MENU DRAWER
═══════════════════════════════════════════ */
.f-nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 299;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 24px;
  box-shadow: var(--shadow-md);
  flex-direction: column;
}
.f-nav-mobile.open { display: flex; }

.f-nav-mobile a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s, color 0.15s;
}
.f-nav-mobile a:last-child { border-bottom: none; }
.f-nav-mobile a:hover { background: var(--bg-soft); color: var(--teal); }

.f-nav-btn-mobile {
  margin: 16px 24px 0;
  display: block !important;
  text-align: center;
  background: var(--teal) !important;
  color: var(--snow) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 14px !important;
  border-radius: 6px;
  transition: background 0.2s !important;
  border-bottom: none !important;
}
.f-nav-btn-mobile:hover { background: var(--teal-light) !important; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.22s var(--ease);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
  text-align: center;
}

.btn-gold {
  background: var(--teal);
  color: var(--snow);
  padding: 14px 32px;
  box-shadow: 0 2px 8px rgba(26,122,110,0.2);
}
.btn-gold:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,122,110,0.28);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  padding: 13px 28px;
  border: 2px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--snow);
}

/* btn-outline inside dark footer */
.f-footer .btn-outline {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.4);
}
.f-footer .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--snow);
  border-color: var(--snow);
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.f-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  background: var(--bg);
}

.f-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.f-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 75% 45%, rgba(26,122,110,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 35% 45% at 20% 80%, rgba(201,168,76,0.04) 0%, transparent 60%);
}
.f-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 75% 75% at 60% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 60% 40%, black 20%, transparent 100%);
}

.f-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}

.f-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 22px;
  animation: slideUp 0.8s var(--ease-out) both 0.2s;
}
.f-hero-title em { font-style: italic; color: var(--teal); }

.f-hero-label {
  margin-bottom: 22px;
  animation: slideUp 0.7s var(--ease-out) both 0.1s;
}

.f-hero-body {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 40px;
  animation: slideUp 0.8s var(--ease-out) both 0.3s;
}

.f-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  animation: slideUp 0.8s var(--ease-out) both 0.4s;
}

/* Contact card */
.f-hero-card {
  background: var(--snow);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.9s var(--ease-out) both 0.5s;
}
.f-hero-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════
   CONTACT ROWS (shared by hero card + contact section)
═══════════════════════════════════════════ */
.f-contact-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.f-contact-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.f-contact-row:first-of-type { padding-top: 0; }

.f-contact-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.f-contact-icon svg {
  width: 16px; height: 16px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.f-contact-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}
.f-contact-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  line-height: 1.5;
}
.f-contact-val a { color: var(--ink); transition: color 0.2s; }
.f-contact-val a:hover { color: var(--teal); }

/* ═══════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════ */
.f-rule {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ═══════════════════════════════════════════
   SECTIONS — Base
═══════════════════════════════════════════ */
.f-section { padding: 96px 0; }

.f-section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}
.f-section-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 500px;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.f-about { background: var(--bg-soft); }
.f-about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.f-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.f-value {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 20px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.f-value:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.f-value-icon {
  width: 28px; height: 28px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 12px;
}
.f-value-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}
.f-value-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.f-services { background: var(--bg); }
.f-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.f-service {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 24px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.f-service:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--teal-light);
}
.f-service-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}
.f-service-icon {
  width: 36px; height: 36px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
  transition: stroke 0.2s;
}
.f-service:hover .f-service-icon { stroke: var(--teal-light); }
.f-service-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.f-service-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.f-contact { background: var(--bg-soft); }
.f-contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.f-form { display: flex; flex-direction: column; gap: 16px; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body);
}
.f-field input,
.f-field textarea {
  background: var(--snow);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
  width: 100%;
}
.f-field input:focus,
.f-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,122,110,0.1);
}
.f-field input::placeholder,
.f-field textarea::placeholder { color: #b0bcba; }
.f-field textarea { height: 120px; }

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

.f-submit {
  background: var(--teal);
  color: var(--snow);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(26,122,110,0.2);
  width: 100%;
}
.f-submit:hover {
  background: var(--teal-light);
  box-shadow: 0 6px 20px rgba(26,122,110,0.28);
  transform: translateY(-1px);
}

.f-map {
  aspect-ratio: 4/3;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.f-map iframe { width: 100%; height: 100%; border: none; display: block; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.f-footer {
  background: var(--ink);
  padding: 52px 0 28px;
}
.f-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: 20px;
}
.f-footer-logo img {
  height: 40px;
  width: auto;
}
.f-footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.f-footer a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.f-footer a:hover { color: var(--gold-light); }

.f-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.f-footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.f-footer-copy span { color: var(--gold); }

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   Stratégie :
   > 900px  → Desktop complet
   601–900px → Tablet : hamburger, 1-col hero
   ≤ 600px  → Mobile  : tout centré, pleine largeur
   ≤ 380px  → XSmall  : ultra compact
═══════════════════════════════════════════ */

/* ── Tablet (≤ 900px) ─────────────────────── */
@media (max-width: 900px) {
  .container { padding: 0 28px; }

  /* Nav : logo à gauche, hamburger à droite */
  .f-nav-links { display: none; }
  .f-nav-btn   { display: none; }
  .f-nav-toggle { display: flex; }
  .f-nav .container { justify-content: space-between; }

  /* Hero : 1 colonne, card sous le texte */
  .f-hero {
    padding: calc(var(--nav-h) + 48px) 0 64px;
    min-height: auto;
  }
  .f-hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .f-hero-card { max-width: 560px; }
  .f-hero-body { max-width: 100%; }

  /* About : 1 colonne */
  .f-about .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Services : 2 colonnes */
  .f-services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Contact : 1 colonne, carte sous formulaire */
  .f-contact .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .f-section { padding: 72px 0; }
}

/* ── Mobile (≤ 600px) ─────────────────────── */
@media (max-width: 600px) {
  .container { padding: 0 18px; }

  /* Nav : logo centré seul */
  .f-nav .container {
    justify-content: space-between;
  }
  .f-nav-toggle { display: flex; }

  /* Hero : tout centré */
  .f-hero { padding: calc(var(--nav-h) + 36px) 0 52px; }
  .f-hero .container { text-align: center; gap: 32px; }
  .f-hero-label { justify-content: center; }
  .f-hero-body  { margin: 0 auto 36px; }
  .f-hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .f-hero-actions .btn { width: 100%; max-width: 320px; }

  /* Card contact : icônes alignées à gauche, card centrée */
  .f-hero-card { max-width: 100%; text-align: left; padding: 28px 20px; }
  .f-hero-card-title { text-align: left; }
  .f-contact-row { align-items: center; }

  /* About */
  .f-values { grid-template-columns: 1fr 1fr; gap: 10px; }
  .f-value { padding: 20px 16px; }

  /* Services : 1 colonne */
  .f-services-grid { grid-template-columns: 1fr; gap: 10px; }
  .f-services-grid .f-service { padding: 24px 18px; }

  /* Formulaire : champs empilés */
  .f-form-row { grid-template-columns: 1fr; gap: 12px; }
  .f-submit { width: 100%; }

  .f-section { padding: 56px 0; }
  .f-section-title { font-size: clamp(28px, 7vw, 38px); }

  /* Footer centré */
  .f-footer { padding: 40px 0 24px; }
  .f-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .f-footer-links { display: none; }
  .f-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
}

/* ── XSmall (≤ 380px) ─────────────────────── */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .f-hero-title { font-size: 30px; }
  .f-section-title { font-size: 26px; }
  .f-hero-actions .btn { flex: 1 1 100%; }
  .f-values { grid-template-columns: 1fr; }
  .f-hero-card { padding: 20px 14px; }
  .f-service { padding: 20px 14px; }
}
