/* ============================================================
   AVENIR BTP — style.css
   ============================================================ */

:root {
  --navy-950: #050c1a;
  --navy-900: #0a1628;
  --navy-800: #0f2040;
  --navy-700: #163056;
  --amber: #e8973a;
  --amber-light: #f5b865;
  --amber-dark: #c67a1e;
  --sand: #f5f0e8;
  --white: #ffffff;
  --text-primary: #0a1628;
  --text-muted: #5a6a84;
  --text-light: #c8d8f0;
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 4px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-soft: 0 8px 40px rgba(10,22,40,0.12);
  --shadow-strong: 0 20px 80px rgba(10,22,40,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--sand { background: var(--sand); }
.section--contact { background: var(--navy-950); color: var(--white); position: relative; overflow: hidden; }
.text-center { text-align: center; }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(232,151,58,0.1);
  border: 1px solid rgba(232,151,58,0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.section-title em { color: var(--amber-dark); font-style: italic; }
.section--dark .section-title { color: var(--white); }
.section--dark .section-title em { color: var(--amber-light); }
.section--contact .section-title { color: var(--white); }
.section--contact .section-title em { color: var(--amber); }
.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.75;
}
.section--dark .section-desc { color: var(--text-light); }
.section--contact .section-desc { color: rgba(200,216,240,0.8); }
.section-header { margin-bottom: 64px; }
.body-text { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.section--dark .body-text { color: var(--text-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--amber); color: var(--navy-950); }
.btn--primary:hover { background: var(--amber-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,151,58,0.4); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.btn--lg { padding: 18px 36px; font-size: 15px; }

/* NAVBAR */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0 32px;
}
#navbar.scrolled {
  background: rgba(5,12,26,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 40px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-mark { font-family: var(--font-display); font-size: 28px; letter-spacing: 0.08em; color: var(--amber); }
.logo-sub { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light); margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(200,216,240,0.75); transition: color var(--transition); position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta { background: var(--amber); color: var(--navy-950) !important; padding: 9px 20px; border-radius: 6px; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--amber-light); }
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* HERO */
#hero {
  min-height: 100vh;
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 32px 180px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.18; }
.hero-orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.hero-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #1e4280 0%, transparent 70%);
  bottom: -100px; left: -100px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,151,58,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,151,58,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-content { max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-tag {
  display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 28px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.95; color: var(--white); margin-bottom: 32px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}
.hero-title em { font-style: italic; color: var(--amber); }
.hero-sub {
  font-size: 18px; color: rgba(200,216,240,0.75);
  max-width: 540px; line-height: 1.7; margin-bottom: 44px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
}
.hero-stats {
  position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
  max-width: 1200px; width: calc(100% - 64px);
  display: flex; align-items: center; gap: 32px;
  opacity: 0; transition: opacity 0.8s ease 1.1s;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 44px; letter-spacing: 0.05em; color: var(--amber); line-height: 1; }
.stat-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(200,216,240,0.5); margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: rgba(232,151,58,0.25); }
.scroll-indicator {
  position: absolute; right: 48px; bottom: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(200,216,240,0.35); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(232,151,58,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* HERO LOADED STATE */
.hero-loaded .hero-tag,
.hero-loaded .hero-title,
.hero-loaded .hero-sub,
.hero-loaded .hero-actions { opacity: 1; transform: translateY(0); }
.hero-loaded .hero-stats { opacity: 1; }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}
.about-img-wrap { position: relative; }
.about-img-frame {
  border-radius: var(--radius-xl); overflow: hidden; height: 560px;
  border: 2px solid rgba(232,151,58,0.2); box-shadow: var(--shadow-strong);
}
.about-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--amber); color: var(--navy-950);
  padding: 20px 24px; border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(232,151,58,0.35);
}
.badge-year { display: block; font-family: var(--font-display); font-size: 36px; letter-spacing: 0.05em; line-height: 1; }
.badge-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 4px; }
.contact-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: var(--transition);
}
.pill svg { width: 16px; height: 16px; flex-shrink: 0; }
.pill--phone { background: rgba(10,22,40,0.06); color: var(--navy-800); border: 1.5px solid rgba(10,22,40,0.15); }
.pill--phone:hover { background: var(--navy-800); color: var(--white); }
.pill--email { background: rgba(232,151,58,0.08); color: var(--amber-dark); border: 1.5px solid rgba(232,151,58,0.25); }
.pill--email:hover { background: var(--amber); color: var(--navy-950); }

.company-strip {
  background: var(--navy-900); border-radius: var(--radius-xl); padding: 56px; color: var(--white);
}
.company-intro { margin-bottom: 48px; }
.company-intro h3 { font-family: var(--font-serif); font-size: 32px; margin-bottom: 16px; }
.company-intro p { color: var(--text-light); font-size: 16px; line-height: 1.75; max-width: 760px; }
.company-pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.pillar { padding: 28px; background: rgba(255,255,255,0.04); border-radius: var(--radius-lg); border: 1px solid rgba(232,151,58,0.12); }
.pillar-icon { font-size: 28px; margin-bottom: 12px; }
.pillar h4 { font-size: 15px; font-weight: 600; color: var(--amber-light); margin-bottom: 10px; }
.pillar p { font-size: 13px; color: var(--text-light); line-height: 1.65; }

/* EXPERTISE */
.expertise-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-bottom: 48px; }
.expertise-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl); padding: 44px; position: relative; overflow: hidden;
  transition: var(--transition);
}
.expertise-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(232,151,58,0.3); transform: translateY(-4px); }
.expertise-card:hover .card-accent { width: 100%; }
.expertise-icon { width: 60px; height: 60px; margin-bottom: 28px; color: var(--amber); }
.expertise-icon svg { width: 100%; height: 100%; }
.expertise-card h3 { font-size: 22px; font-weight: 600; color: var(--white); margin-bottom: 14px; line-height: 1.3; }
.expertise-card p { font-size: 15px; color: var(--text-light); line-height: 1.7; }
.card-accent { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--amber), transparent); transition: width 0.5s ease; }

.resources-strip { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-xl); padding: 56px; }
.resources-strip h3 { font-family: var(--font-serif); font-size: 32px; color: var(--white); margin-bottom: 36px; }
.resources-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.resource-block h4 { font-size: 14px; font-weight: 600; color: var(--amber-light); margin-bottom: 10px; }
.resource-block p { font-size: 13px; color: var(--text-light); line-height: 1.65; margin-bottom: 8px; }
.hierarchy { color: rgba(200,216,240,0.45) !important; font-size: 12px !important; }

/* PROCESS */
.process-steps { display: flex; align-items: flex-start; gap: 28px; }
.process-step { flex: 1; }
.process-arrow { font-size: 28px; color: var(--amber); margin-top: 110px; flex-shrink: 0; opacity: 0.5; }
.step-num { font-family: var(--font-display); font-size: 72px; line-height: 1; color: rgba(232,151,58,0.12); margin-bottom: -20px; }
.step-img { border-radius: var(--radius-lg); overflow: hidden; height: 220px; margin-bottom: 24px; box-shadow: var(--shadow-soft); position: relative; z-index: 1; }
.process-step h3 { font-size: 20px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* GALLERY */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 20px; border-radius: 100px; font-size: 13px; font-weight: 500;
  border: 1.5px solid rgba(10,22,40,0.18); color: var(--text-muted); transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
  grid-auto-flow: dense;
  margin-bottom: 56px;
}
.gallery-item { border-radius: var(--radius-lg); overflow: hidden; position: relative; cursor: pointer; transition: var(--transition); }
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-strong); }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item.hidden { display: none; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,12,26,0.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-cat { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.gallery-overlay h4 { font-size: 17px; color: var(--white); font-weight: 600; }

.feature-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 48px; }
.feature-card {
  background: var(--white); border: 1px solid rgba(10,22,40,0.09);
  border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-soft); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--navy-900); }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* QGA */
.qga-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.qga-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.qga-cat { background: rgba(255,255,255,0.05); border: 1px solid rgba(232,151,58,0.15); border-radius: var(--radius-lg); padding: 24px; }
.qga-cat h4 { font-size: 14px; font-weight: 600; color: var(--amber-light); margin-bottom: 8px; }
.qga-cat p { font-size: 13px; color: var(--text-light); line-height: 1.65; }
blockquote { font-family: var(--font-serif); font-size: 20px; color: var(--amber-light); border-left: 3px solid var(--amber); padding-left: 20px; }
.qga-images { display: flex; flex-direction: column; gap: 20px; }
.qga-img { border-radius: var(--radius-lg); overflow: hidden; height: 240px; border: 1px solid rgba(232,151,58,0.2); box-shadow: var(--shadow-strong); }

/* CONTACT */
.contact-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.contact-orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(232,151,58,0.06) 0%, transparent 65%);
  border-radius: 50%;
}
.contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-bottom: 48px; }
.contact-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-xl); padding: 32px;
  display: flex; flex-direction: column; gap: 6px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.contact-card:hover { border-color: rgba(232,151,58,0.4); transform: translateY(-4px); }
.contact-card-icon {
  width: 44px; height: 44px; background: rgba(232,151,58,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px; color: var(--amber);
}
.contact-card-icon svg { width: 20px; height: 20px; }
.contact-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(200,216,240,0.45); }
.contact-value { font-size: 16px; font-weight: 500; color: var(--white); }
.contact-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* FOOTER */
#footer { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,0.06); padding: 64px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: rgba(200,216,240,0.4); margin-top: 16px; line-height: 1.65; max-width: 260px; }
.footer-links h5, .footer-contact h5 { font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(200,216,240,0.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--amber); }
.footer-contact p { font-size: 14px; color: rgba(200,216,240,0.5); margin-bottom: 6px; }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(200,216,240,0.3); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  #hero { padding: 100px 28px 220px; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-img-frame { height: 400px; }
  .company-pillars { grid-template-columns: 1fr 1fr; }
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .qga-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  #hero { padding: 100px 20px 280px; }
  .hero-stats { flex-direction: row; gap: 16px; bottom: 32px; width: calc(100% - 40px); justify-content: center; }
  .stat-divider { width: 1px; height: 32px; }
  .scroll-indicator { display: none; }
  .burger { display: flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(5,12,26,0.97); backdrop-filter: blur(12px);
    flex-direction: column; padding: 32px 24px; gap: 24px;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .expertise-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); margin: 0 auto; }
  .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; grid-auto-flow: dense; }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--tall { grid-row: span 1; }
  .feature-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .company-pillars { grid-template-columns: 1fr; }
  .qga-categories { grid-template-columns: 1fr; }
  .about-badge { bottom: -16px; right: -8px; }
}
@media (max-width: 480px) {
  .gallery-mosaic { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .hero-title { font-size: 52px; }
  #hero { padding: 80px 16px 240px; }
  .hero-stats { gap: 12px; width: calc(100% - 32px); }
  .stat-num { font-size: 32px; }
  .stat-label { font-size: 9px; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; justify-content: center; }
}
/* ============================================================
   SECTION DEVIS
   ============================================================ */

.section--devis {
  background: #f0f2f5;
}

.devis-title {
  color: var(--navy-900);
}

.devis-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 6px rgba(10,22,40,0.04), 0 20px 60px rgba(10,22,40,0.09);
  padding: 56px 64px;
  max-width: 900px;
  margin: 0 auto;
}

/* FORM STRUCTURE */
.devis-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group--full {
  grid-column: 1 / -1;
}

/* LABELS */
.form-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-800);
}

.label-icon {
  width: 15px;
  height: 15px;
  color: var(--amber);
  flex-shrink: 0;
}

/* INPUTS */
.form-input {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: #fafafa;
  border: 1.5px solid #dde2ea;
  border-radius: 8px;
  padding: 13px 16px;
  width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: #a8b4c4;
  font-size: 14px;
}

.form-input:hover {
  border-color: #b8c4d4;
  background: #ffffff;
}

.form-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 151, 58, 0.15);
  background: #ffffff;
}

.form-input.error {
  border-color: #e84040;
  box-shadow: 0 0 0 3px rgba(232, 64, 64, 0.1);
}

/* TEXTAREA */
.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* SELECT */
.select-wrapper {
  position: relative;
}

.form-select {
  cursor: pointer;
  padding-right: 40px;
}

.form-select option {
  background: var(--white);
  color: var(--text-primary);
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--amber);
  pointer-events: none;
}

/* ERROR MESSAGES */
.form-error {
  font-size: 12px;
  color: #e84040;
  min-height: 16px;
  display: block;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-error.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SUBMIT ROW */
.form-submit-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* SUBMIT BUTTON */
.btn-devis {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--amber);
  color: var(--navy-950);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-devis svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn-devis:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 151, 58, 0.45);
}

.btn-devis:hover svg {
  transform: translateX(4px);
}

.btn-devis:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-devis:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* FORM NOTE */
.form-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-note svg {
  width: 14px;
  height: 14px;
  color: var(--amber);
  flex-shrink: 0;
}

/* SUCCESS BANNER */
.devis-success {
  display: none;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #f0faf4, #e6f7ed);
  border: 1.5px solid #52c97a;
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin-top: 24px;
}

.devis-success.visible {
  display: flex;
  animation: fadeInSuccess 0.4s ease forwards;
}

.success-icon {
  width: 40px;
  height: 40px;
  background: #52c97a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.success-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.success-text strong {
  display: block;
  font-size: 15px;
  color: #1a6b36;
  margin-bottom: 2px;
}

.success-text span {
  font-size: 13px;
  color: #3a8a56;
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE DEVIS */
@media (max-width: 768px) {
  .devis-card {
    padding: 36px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-submit-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-devis {
    width: 100%;
    justify-content: center;
  }
}