@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&family=Ubuntu:wght@400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  --bg-primary: #00192f;
  --bg-secondary: #001426;
  --bg-tertiary: #022442;
  --bg-card: rgba(2, 36, 66, 0.85);
  --bg-card-hover: rgba(5, 48, 88, 0.95);
  --accent-gold: #ffb703;
  --accent-gold-hover: #ffa000;
  --accent-blue: #1863dc;
  --accent-blue-hover: #104ab0;
  --text-main: #f7f7f7;
  --text-muted: #b4c4d1;
  --text-dark: #00192f;
  --border-color: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(255, 183, 3, 0.4);
  --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(255, 183, 3, 0.25);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* ==========================================================================
   Container & Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.text-gold {
  color: var(--accent-gold) !important;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.section-title.centered {
  display: block;
  text-align: center;
}

.divider-line {
  width: 100%;
  height: 2px;
  margin: 40px auto;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  border: none;
}

.divider-img {
  width: 100%;
  max-width: 1024px;
  height: 2px;
  margin: 35px auto;
  display: block;
  opacity: 0.8;
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 25, 47, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
  height: 80px;
}

#site-header.scrolled {
  height: 70px;
  background: rgba(0, 20, 38, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  z-index: 1002;
}

.site-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

#site-header.scrolled .site-logo img {
  height: 42px;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  color: #ffffff;
  padding: 8px 0;
  position: relative;
  display: inline-block;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold);
}

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-heading);
  font-weight: 500;
  color: #fff;
  transition: var(--transition);
}

.lang-switcher:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-gold);
}

.lang-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn i {
  font-size: 18px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #001222;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.6);
  z-index: 1010;
  padding: 85px 25px 40px;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1009;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-close {
  position: absolute;
  top: 25px;
  right: 25px;
  color: #fff;
  font-size: 24px;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 15px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-gold);
  padding-left: 8px;
}

.mobile-search {
  margin-top: 30px;
  position: relative;
}

.mobile-search input {
  width: 100%;
  padding: 12px 42px 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.mobile-search input:focus {
  border-color: var(--accent-gold);
}

.mobile-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}

/* ==========================================================================
   Hero Section with Background Video
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 25, 47, 0.4) 0%, rgba(0, 15, 30, 0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  padding: 60px 20px;
}

.hero-box {
  max-width: 720px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

.hero-desc {
  font-family: var(--font-heading);
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 34px;
}

.hero-desc strong {
  font-weight: 700;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--accent-gold);
  color: #00192f;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 15px 36px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.35);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #ffffff;
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: transparent;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.1);
}

/* ==========================================================================
   Section: Quote / Banner
   ========================================================================== */
.quote-section {
  padding: 60px 0;
  text-align: center;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.4;
  color: #f7f7f7;
  max-width: 950px;
  margin: 0 auto;
}

/* ==========================================================================
   3 Environmental Pillars (NO-SPILL, ZERO EMISSION, NO EXHAUST)
   ========================================================================== */
.pillars-section {
  position: relative;
  padding: 90px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.pillars-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 25, 47, 0.92) 0%, rgba(0, 15, 30, 0.88) 100%);
}

.pillars-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pillar-card {
  background: rgba(2, 36, 66, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 35px 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.pillar-icon {
  font-size: 36px;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}

.pillar-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-gold);
}

.pillar-desc {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #e0e9f0;
}

/* ==========================================================================
   Section: Nos Technologies (Boat Grid)
   ========================================================================== */
.boats-section {
  padding: 80px 0;
}

.boats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 35px;
}

.boat-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-main);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.boat-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.boat-img-wrapper {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.boat-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.boat-card:hover .boat-img-wrapper img {
  transform: scale(1.06);
}

.boat-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 25, 47, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.boat-card:hover .boat-hover-overlay {
  opacity: 1;
}

.boat-hover-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.boat-hover-details {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #ffffff;
  line-height: 1.5;
}

.boat-footer-title {
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: #f7f7f7;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Section: Nos Produits / Batteries
   ========================================================================== */
.products-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.product-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-main);
  margin-top: 30px;
}

.product-image-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 25px;
}

.product-image-box img {
  max-height: 320px;
  object-fit: contain;
}

.product-info-box h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 18px;
}

.product-info-box p {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.6;
  color: #c9d8e6;
  margin-bottom: 25px;
}

/* ==========================================================================
   Partnership Banner
   ========================================================================== */
.partner-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}

.partner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 25, 47, 0.85);
}

.partner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 8px;
  color: var(--text-dark);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.partner-content h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #00192f;
}

.partner-content p {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.6;
  color: #2b3a4a;
}

/* ==========================================================================
   Section: À Savoir (Graphs & Analysis)
   ========================================================================== */
.graphs-section {
  padding: 80px 0;
}

.graph-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  margin-top: 25px;
  box-shadow: var(--shadow-main);
  text-align: center;
}

.graph-card img {
  margin: 0 auto;
  border-radius: 6px;
}

.graph-note {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.6;
  color: #d1dfed;
  margin: 25px auto 10px;
  max-width: 900px;
}

/* ==========================================================================
   Section: FAQ Accordion
   ========================================================================== */
.faq-section {
  padding: 80px 0;
}

.accordion-container {
  max-width: 850px;
  margin: 30px auto 0;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: var(--border-gold);
}

.accordion-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  transition: var(--transition);
}

.accordion-header:hover {
  color: var(--accent-gold);
}

.accordion-icon {
  font-size: 14px;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(90deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background: rgba(0, 15, 30, 0.4);
}

.accordion-body-content {
  padding: 0 24px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: #d1dfed;
}

/* ==========================================================================
   Section: Map Embed
   ========================================================================== */
.map-section {
  padding: 80px 0;
}

.map-wrapper {
  width: 100%;
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-main);
  border: 1px solid var(--border-color);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#colophon {
  background: #001222;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 70px 0 30px;
  margin-top: auto;
}

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

.footer-brand img {
  height: 120px;
  /* Logo agrandi */
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  font-family: var(--font-heading);
  font-size: 15px;
  color: #c9d8e6;
  line-height: 1.5;
  max-width: 320px;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-nav h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-services {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-services span {
  font-family: var(--font-heading);
  font-size: 14.5px;
  color: #b4c4d1;
  transition: var(--transition);
}

.footer-services span:hover {
  color: var(--accent-gold);
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.contact-info strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  color: #ffffff;
}

.contact-email-btn {
  font-family: var(--font-heading);
  font-size: 13.5px;
  color: var(--accent-gold);
  cursor: pointer;
  text-decoration: underline;
  transition: var(--transition);
  background: none;
  border: none;
  padding: 0;
}

.contact-email-btn:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 13px;
  color: #8b9ea5;
}

.footer-bottom a {
  color: #8b9ea5;
  transition: var(--transition);
}

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

/* Floating Scroll-to-Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #00192f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #ffffff;
  transform: translateY(-4px);
}

/* ==========================================================================
   Pop-up Modal (Contact / Investisseurs)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: linear-gradient(135deg, #00192f 0%, #002c52 100%);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  padding: 40px;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--accent-gold);
  color: #00192f;
  transform: rotate(90deg);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 25px;
  padding-right: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: #e0e9f0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(0, 15, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.3);
}

.form-submit-btn {
  background: var(--accent-gold);
  color: #00192f;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.form-submit-btn:hover {
  background: #ffffff;
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.form-feedback {
  margin-top: 15px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(0, 208, 132, 0.2);
  border: 1px solid #00d084;
  color: #00d084;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #00223f;
  color: #fff;
  border: 1px solid var(--accent-gold);
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   PAGE: Réalisations (realisations.html)
   ========================================================================== */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, rgba(0, 25, 47, 0.95) 0%, rgba(0, 15, 30, 0.9) 100%);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.page-hero p {
  font-family: var(--font-heading);
  font-size: 18px;
  color: #c9d8e6;
  max-width: 700px;
  margin: 0 auto;
}

/* Realisations Navigation Filter */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 50px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 25px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-gold);
  color: #00192f;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.3);
}

/* Boat Detail Card */
.boat-detail-section {
  scroll-margin-top: 100px;
  margin-bottom: 70px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-main);
  padding: 35px;
}

.boat-detail-header {
  margin-bottom: 25px;
}

.boat-detail-header h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
}

.boat-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 35px;
  align-items: center;
}

.boat-detail-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.boat-detail-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.boat-detail-text {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.6;
  color: #e0e9f0;
}

.boat-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-box {
  background: rgba(0, 15, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px 14px;
  text-align: center;
  transition: var(--transition);
}

.spec-box:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.spec-icon {
  height: 40px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.spec-label {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spec-value {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   PAGE: Technologie (technologie.html)
   ========================================================================== */
.tech-video-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  padding: 30px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-main);
}

.tech-video-wrapper {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
}

.tech-video-wrapper video {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.tech-video-desc {
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.65;
  color: #d1dfed;
}

.tech-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 35px;
}

.tech-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  box-shadow: var(--shadow-main);
  transition: var(--transition);
}

.tech-feature-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.tech-feature-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

.tech-feature-body h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.tech-feature-body p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: #c9d8e6;
}

.highlight-link {
  color: var(--accent-gold);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.highlight-link:hover {
  color: #ffffff;
}

/* Image Modal */
.image-modal-content {
  background: #001222;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 20px;
  max-width: 650px;
  text-align: center;
  position: relative;
}

.image-modal-content img {
  border-radius: 6px;
  max-height: 70vh;
  margin: 10px auto;
  object-fit: contain;
}

/* ==========================================================================
   PAGE: Produits (produits.html)
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 35px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-main);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
}

.benefit-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.benefit-content {
  padding: 24px;
}

.benefit-content h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.benefit-content p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: #c9d8e6;
}

.specs-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
  box-shadow: var(--shadow-main);
}

.specs-table-card img {
  margin: 0 auto;
  border-radius: 6px;
}

/* ==========================================================================
   PAGE: Équipe (equipe.html)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-main);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.team-img-box {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #001222;
}

.team-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-img-box img {
  transform: scale(1.05);
}

.team-info {
  padding: 18px 12px;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.team-role {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-gold);
}

.team-group-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin: 60px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 35px;
}

.team-group-img {
  border-radius: 8px;
  overflow: hidden;
}

.team-group-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   PAGE: Téléchargement (telechargement.html)
   ========================================================================== */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-main);
  transition: var(--transition);
}

.download-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.download-icon {
  font-size: 48px;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.download-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.download-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: #b4c4d1;
  margin-bottom: 25px;
}

/* ==========================================================================
   PAGE: Actualité (actualite.html)
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-main);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.news-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 12px;
}

.news-excerpt {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: #c9d8e6;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {

  .pillars-grid,
  .boats-grid,
  .benefits-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .boat-detail-layout,
  .team-group-section,
  .product-hero-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  #site-header {
    height: 70px;
  }

  .main-navigation .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .pillars-grid,
  .boats-grid,
  .benefits-grid,
  .news-grid,
  .tech-features-grid,
  .downloads-grid {
    grid-template-columns: 1fr;
  }

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

  .boat-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .modal-box {
    padding: 28px 20px;
  }
}

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

  .boat-specs-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Calculateur & Sélecteur de Système Batterie VEBRAT
   ========================================================================== */
.calc-page-hero {
  padding-top: 130px;
  padding-bottom: 25px;
}

.calc-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.calc-quick-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.preset-chip-btn {
  background: rgba(2, 36, 66, 0.7);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.preset-chip-btn:hover {
  border-color: var(--accent-gold);
  color: #fff;
  background: rgba(2, 36, 66, 0.95);
  transform: translateY(-2px);
}

.preset-chip-btn.active {
  border-color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-gold);
  font-weight: 600;
}

/* 2-Columns Cockpit Grid */
.calc-cockpit-grid {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 60px;
}

@media (max-width: 1080px) {
  .calc-cockpit-grid {
    grid-template-columns: 1fr;
  }
}

.calc-panel {
  min-width: 0;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.calc-cockpit-grid > .calc-panel:first-child {
  width: 440px;
  max-width: 100%;
}

.calc-cockpit-grid > .calc-panel:last-child {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.calc-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.calc-panel-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.calc-panel-title i {
  color: var(--accent-gold);
}

/* Mode Selection Tabs */
.calc-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(0, 20, 38, 0.6);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.calc-tab-btn {
  padding: 10px 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  white-space: nowrap;
}

.calc-tab-btn:hover {
  color: #fff;
}

.calc-tab-btn.active {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(24, 99, 220, 0.35);
}

/* Form Groups */
.calc-field-group {
  margin-bottom: 24px;
}

.calc-field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.calc-field-label {
  font-weight: 600;
  font-size: 14.5px;
  color: #e2edf7;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.calc-field-value-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-gold);
  white-space: nowrap;
}

.calc-range-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.calc-range-input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.calc-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.6);
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}

.calc-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-number-input {
  width: 95px;
  background: rgba(0, 20, 38, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  outline: none;
  transition: var(--transition);
}

.calc-number-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.25);
}

.calc-voltage-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.v-preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  white-space: nowrap;
}

.v-preset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.v-preset-btn.active {
  background: rgba(255, 183, 3, 0.18);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.v-preset-btn.warn {
  border-color: rgba(247, 127, 0, 0.5);
  color: #fca311;
}

.v-preset-btn.warn.active {
  background: rgba(247, 127, 0, 0.2);
  border-color: #f77f00;
  color: #ffa033;
}

/* Stepper Box (+ / -) */
.calc-stepper-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-stepper-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.calc-stepper-btn:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* Optional Filters Section */
.calc-filters-wrapper {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.calc-filters-title {
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.calc-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-filter-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #b0c4de;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
  user-select: none;
  white-space: nowrap;
}

.calc-filter-tag:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.calc-filter-tag.active {
  background: rgba(46, 196, 182, 0.16);
  border-color: #2ec4b6;
  color: #2ec4b6;
  font-weight: 600;
}

.calc-filter-tag.bv-tag.active {
  background: rgba(255, 183, 3, 0.16);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.calc-filter-tag.bv-tag.warning-state {
  background: rgba(247, 127, 0, 0.2);
  border-color: #f77f00;
  color: #ffa033;
}

/* Bureau Veritas Warning Banner */
.calc-warning-banner {
  display: none;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.18), rgba(247, 127, 0, 0.18));
  border: 1.5px solid #f77f00;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #fff;
  animation: fadeInDown 0.3s ease;
}

.calc-warning-banner.visible {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.calc-warning-banner i {
  font-size: 24px;
  color: #f77f00;
  margin-top: 2px;
  flex-shrink: 0;
}

.calc-warning-banner strong {
  color: #ffa033;
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.calc-warning-banner p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #f0f4f8;
  margin: 0;
}

/* Outputs & KPIs Grid */
.calc-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .calc-kpis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.calc-kpi-card {
  background: rgba(0, 20, 38, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 10px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  min-width: 0;
}

.calc-kpi-card:hover {
  border-color: rgba(255, 183, 3, 0.4);
  transform: translateY(-2px);
}

.calc-kpi-card.highlight {
  background: linear-gradient(145deg, rgba(24, 99, 220, 0.2), rgba(2, 36, 66, 0.9));
  border-color: rgba(24, 99, 220, 0.5);
}

.calc-kpi-card.gold-highlight {
  background: linear-gradient(145deg, rgba(255, 183, 3, 0.15), rgba(2, 36, 66, 0.9));
  border-color: var(--border-gold);
}

.calc-kpi-icon {
  font-size: 14px;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.calc-kpi-val {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calc-kpi-unit {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}

.calc-kpi-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Architecture Recap Pill */
.calc-architecture-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}

.calc-arch-text {
  font-size: 13.5px;
  color: #e2edf7;
}

.calc-arch-badge {
  background: var(--accent-blue);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Visual Pack Schematic */
.calc-schematic-section {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: rgba(0, 15, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.calc-schematic-title {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}

.calc-schematic-canvas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-bottom: 6px;
}

.calc-schematic-canvas::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.calc-schematic-canvas::-webkit-scrollbar-track {
  background: rgba(0, 20, 38, 0.5);
  border-radius: 3px;
}

.calc-schematic-canvas::-webkit-scrollbar-thumb {
  background: rgba(255, 183, 3, 0.4);
  border-radius: 3px;
}

.calc-schematic-canvas::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

.calc-pack-string-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(2, 36, 66, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
}

.calc-pcu-node {
  background: #1863dc;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(24, 99, 220, 0.4);
  flex-shrink: 0;
}

.calc-link-arrow {
  color: var(--accent-gold);
  font-size: 11px;
  flex-shrink: 0;
}

.calc-k31-node {
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid var(--border-gold);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Nomenclature BOM Table */
.calc-bom-wrapper {
  margin-top: 15px;
  margin-bottom: 24px;
}

.calc-bom-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-bom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: rgba(0, 20, 38, 0.4);
  border-radius: 8px;
  overflow: hidden;
}

.calc-bom-table th {
  background: rgba(0, 20, 38, 0.85);
  color: var(--text-muted);
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  text-transform: uppercase;
}

.calc-bom-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2edf7;
}

.calc-bom-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.calc-bom-table .total-row td {
  background: rgba(2, 36, 66, 0.7);
  font-weight: 700;
  color: #fff;
  border-top: 1px solid var(--border-color);
}

.calc-bom-table .total-row td:first-child {
  color: var(--accent-gold);
}

/* Action Buttons Row */
.calc-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.calc-btn-primary {
  background: var(--accent-gold);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.calc-btn-primary:hover {
  background: var(--accent-gold-hover);
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.4);
  transform: translateY(-2px);
}

.calc-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.calc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Toast notification */
.calc-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #10b981;
  color: #fff;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
}

.calc-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}