:root {
  --solar-yellow: #f5a623;
  --carbon-black: #1a1a1a;
  --white: #ffffff;
  --energy-green: #2ecc71;
  --bg-soft: #f7f8fb;
  --text-soft: #5f6470;
  --nav-height: 72px;
  --radius-md: 14px;
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg-soft);
  color: var(--carbon-black);
  line-height: 1.55;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", Arial, sans-serif;
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

  /* ── About section ── */
  #about {
    padding: 80px 24px;
    background: #fff;
  }
  .about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
  @media (max-width: 768px) {
    .about-container { grid-template-columns: 1fr; gap: 40px; }
  }

  .about-tag {
    display: inline-block;
    background: #FFF3CD;
    color: #F5A623;
    font-size: .8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .about-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
    color: #1A1A1A;
    margin: 0 0 20px;
  }
  .about-text {
    color: #555;
    line-height: 1.75;
    font-size: 1rem;
    margin: 0 0 28px;
  }

  .about-ceo {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid #F5A623;
  }
  .ceo-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #F5A623;
    flex-shrink: 0;
  }
  .ceo-name  { font-weight: 700; font-size: 1rem; margin: 0; color: #1A1A1A; }
  .ceo-title { font-size: .85rem; color: #888; margin: 2px 0 6px; }
  .ceo-quote {
    font-style: italic;
    color: #555;
    font-size: .88rem;
    margin: 0;
    border: none;
    padding: 0;
  }

  .about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
  }
  @media (max-width: 480px) {
    .about-stats-grid { grid-template-columns: 1fr; }
  }
  .stat-card {
    background: #1A1A1A;
    color: #fff;
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    transition: transform .2s;
  }
  .stat-card:hover { transform: scale(1.04); }
  .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #F5A623;
    line-height: 1;
    margin-bottom: 8px;
  }
  .stat-label {
    font-size: .8rem;
    color: #ccc;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
  }

  .about-visual {
    background: linear-gradient(135deg, #1A1A1A 0%, #333 100%);
    border-radius: 20px;
    overflow: hidden;
    padding: 40px 24px;
    text-align: center;
    position: relative;
  }
  .about-visual::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: rgba(245,166,35,.12);
    border-radius: 50%;
  }
  .about-visual-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 16px rgba(245,166,35,.5));
  }
  .about-visual-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
  }

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--text-soft);
}

  /* ── Section commune ── */
  .section-header {
    text-align: center;
    margin-bottom: 48px;
  }
  .section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #1A1A1A;
    margin: 0 0 12px;
  }
  .section-subtitle {
    color: #666;
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
  }

  /* ── Grille produits ── */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }
  @media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .products-grid { grid-template-columns: 1fr; gap: 16px; }
  }

  /* ── Carte produit ── */
  .product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid #f0f0f0;
  }
  .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.13);
  }

  /* Image */
  .product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, #1A1A1A 0%, #2d2d2d 100%);
  }
  .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
  }
  .product-card:hover .product-img {
    transform: scale(1.05);
  }
  .product-img-placeholder,
  .product-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    opacity: .85;
  }
  .product-img-placeholder {
    background: linear-gradient(135deg, #1A1A1A, #2d2d2d);
  }
  .product-placeholder-icon {
    font-size: 72px;
    filter: drop-shadow(0 0 20px rgba(245,166,35,0.4));
  }
  .product-icon-badge {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: 22px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 8px;
    line-height: 1;
  }
  .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
    text-transform: uppercase;
  }

  /* Corps */
  .product-body {
    padding: 20px 20px 12px;
    flex: 1;
  }
  .product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 10px;
  }
  .product-desc {
    font-size: .88rem;
    color: #666;
    line-height: 1.55;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-price {
    font-size: .85rem;
    font-weight: 600;
    color: #F5A623;
    margin: 0;
  }

  /* Footer carte */
  .product-footer {
    padding: 0 20px 20px;
  }
  .btn-detail {
    width: 100%;
    padding: 11px 0;
    background: #1A1A1A;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    border: none;
    cursor: pointer;
    transition: background .2s;
  }
  .btn-detail:hover { background: #F5A623; color: #1A1A1A; }

  /* Skeleton loading */
  .skeleton-card { pointer-events: none; }
  .skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
  }
  .skeleton-img  { width:100%; aspect-ratio:16/10; border-radius:0; }
  .skeleton-text { height:14px; margin:16px 16px 8px; }
  .skeleton-text.short { width:60%; }
  @keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

/* ------------------------------------------------------------------
   Product details — compact item-card design (overrides)
   ------------------------------------------------------------------ */
#product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  #product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  #product-grid { grid-template-columns: 1fr; }
}

.item-card {
  background: #1e1e1e;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .2s, box-shadow .2s;
}
.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.item-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: zoom-in;
  background: #2a2a2a;
}
.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.item-card:hover .item-img {
  transform: scale(1.04);
}
.item-price-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  color: #F5A623;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.item-body {
  padding: 14px 16px 10px;
  flex: 1;
}
.item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}
.item-desc {
  font-size: 0.82rem;
  color: #aaa;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-footer {
  padding: 0 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-see-more {
  padding: 9px 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
}
.btn-see-more:hover {
  background: rgba(255,255,255,0.08);
}
.btn-whatsapp {
  padding: 9px 0;
  background: #25D366;
  border: none;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn-whatsapp:hover {
  background: #1ebe5a;
}

@media (max-width: 480px) {
  .item-card {
    min-width: 0;
    overflow: hidden;
  }
  .item-title {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .item-desc {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }
  .item-price-pill {
    font-size: 11px;
    padding: 3px 7px;
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .item-footer {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .btn-see-more {
    order: 1;
    padding: 10px 0;
    font-size: 13px;
  }
  .btn-whatsapp {
    order: 2;
    padding: 10px 0;
    font-size: 13px;
  }
}

/* Supprimer les anciens styles .item-meta, .item-content, .item-category, .btn-preview qui ne sont plus utilisés */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-cta {
  background: var(--solar-yellow);
  color: var(--carbon-black);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--carbon-black);
  border: 1px solid #d4d8e0;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 999;
  background: rgba(26, 26, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar-scrolled {
  background: rgba(26, 26, 26, 1);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

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

.logo {
  display: inline-flex;
  align-items: center;
}

.site-logo-img {
  width: 92px;
  height: auto;
  display: block;
}

.footer-logo-img {
  width: 120px;
  margin-bottom: 8px;
}

.nav-menu {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  width: min(88vw, 340px);
  height: calc(100vh - var(--nav-height));
  background: var(--carbon-black);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.nav-menu.open {
  transform: translateX(0);
}

.nav-menu a {
  color: var(--white);
  padding: 10px 6px;
}

.nav-menu a.active-link {
  color: var(--solar-yellow);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: transparent;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--white);
}


.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 48px);
  position: relative;
  background: url("https://images.unsplash.com/photo-1497440001374-f26997328c1b?auto=format&fit=crop&w=1800&q=80")
    center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 20, 20, 0.84), rgba(20, 20, 20, 0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 680px;
}

.hero-kicker {
  color: var(--energy-green);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  margin-bottom: 12px;
}

.hero p {
  color: #e5e9ef;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stat {
  padding: 18px;
}

.stat strong {
  display: block;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.6rem;
  color: var(--carbon-black);
}

.stat span {
  color: var(--text-soft);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.14);
}

.product-card img {
  height: 190px;
  object-fit: cover;
}

.product-content {
  padding: 16px;
}

.badge {
  display: inline-block;
  background: rgba(46, 204, 113, 0.18);
  color: #14964a;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-content h3 {
  margin-bottom: 8px;
}

.product-content .tagline {
  color: var(--solar-yellow);
  font-weight: 700;
  margin-bottom: 8px;
}

.product-content p {
  color: var(--text-soft);
  margin-bottom: 14px;
}

.placeholder-box {
  min-height: 140px;
  border: 2px dashed #ccd3de;
  border-radius: var(--radius-md);
  background: var(--white);
}

.calculator-wizard {
  padding: 18px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.wizard-step {
  background: #eef1f6;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-soft);
  font-weight: 600;
}

.wizard-step.active {
  background: var(--solar-yellow);
  color: var(--carbon-black);
}

.wizard-view {
  display: none;
  animation: fadeSlide 0.35s ease;
}

.wizard-view.active {
  display: block;
}

/* CV section styles */
.cv-row-active td {
  background: rgba(245, 166, 35, 0.06);
}
.cv-row-active td:first-child {
  border-left: 3px solid #F5A623;
}

.cv-section-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-top: 10px;
  background: linear-gradient(135deg, #1A1A1A, #2d2d2d);
  border-radius: 10px;
  color: white;
}
.cv-section-total span {
  font-size: 13px;
  color: #aaa;
}
.cv-section-total strong {
  font-size: 1.15rem;
  color: #F5A623;
  font-weight: 800;
}

.device-sous-total-placeholder {
  display: inline-block;
  width: 80px;
}

.calc-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.calc-toolbar input,
.calc-toolbar select {
  border: 1px solid #d9deea;
  border-radius: 10px;
  padding: 10px 12px;
}

.appliance-cards {
  display: grid;
  gap: 12px;
}

.appliance-card {
  border: 1px solid #e0e5ef;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.appliance-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.appliance-head h4 {
  margin: 0;
}

.appliance-head p {
  color: var(--text-soft);
}

.appliance-icon {
  font-size: 1.4rem;
}

.appliance-category {
  margin-left: auto;
  font-size: 0.75rem;
  background: rgba(46, 204, 113, 0.15);
  color: #1a8f4f;
  border-radius: 999px;
  padding: 4px 8px;
}

.appliance-controls {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.appliance-controls label {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.appliance-controls input {
  margin-top: 6px;
  width: 100%;
  border: 1px solid #d9deea;
  border-radius: 8px;
  padding: 8px 10px;
}

.wizard-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wizard-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wizard-two-grid {
  display: grid;
  gap: 12px;
}

.wizard-panel {
  padding: 14px;
}

.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}

.selection-summary p {
  margin-bottom: 8px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.result-card {
  padding: 16px;
  text-align: center;
}

.result-card p {
  margin-top: 10px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.5rem;
}

.recommended-wrap {
  margin-top: 12px;
}

.recommended-products {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

.recommended-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px;
}

.recommended-card img {
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.recommended-card h4 {
  margin: 8px 0 6px;
}

.recommended-card p {
  color: var(--text-soft);
  margin-bottom: 8px;
}

.calculator-v2 {
  padding: 16px;
}

.calc-v2-progress {
  font-weight: 700;
  margin-bottom: 10px;
  color: #596277;
}

.calc-type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.calc-type-card {
  border: 2px solid #d6deea;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  text-align: left;
  font-size: 1.5rem;
  cursor: pointer;
}

.calc-type-card span {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a1a1a;
}

.calc-type-card small {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  color: #5f6470;
}

.calc-type-card.active {
  border-color: var(--solar-yellow);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.22);
}

.calc-type-card.bureau.active {
  border-color: #102742;
  box-shadow: 0 0 0 3px rgba(16, 39, 66, 0.2);
}

.calc-tab-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.calc-tab-head button {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.calc-tab-head.domicile button {
  background: #ffe8b8;
  color: #6d4a00;
}

.calc-tab-head.bureau button {
  background: #dbe7ff;
  color: #122a4a;
}

.calc-tab-head button.active {
  background: var(--solar-yellow);
  color: #1a1a1a;
}

.calc-tab-head.bureau button.active {
  background: #102742;
  color: #fff;
}

.calc-device-grid,
.calc-sections-grid {
  display: grid;
  gap: 10px;
}

.calc-device-card,
.calc-cv-card,
.calc-section-block {
  border: 1px solid #dbe1ec;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.calc-device-head {
  display: flex;
  gap: 8px;
  align-items: center;
}

.calc-device-icon {
  font-size: 1.4rem;
}

.calc-device-head p {
  color: #5f6470;
}

.calc-device-qty input,
.calc-cv-card input[type="number"],
.calc-hours-grid input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  font-size: 0.9rem;
}

.calc-usage-grid {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.calc-fixed-usage {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #666;
}

.calc-hours-grid {
  display: grid;
  gap: 8px;
}

.calc-hours-grid label {
  font-size: 0.9rem;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-hours-grid p {
  font-size: 0.9rem;
  color: #333;
}

.calc-v2-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-summary-list p {
  margin-bottom: 6px;
}

.calc-summary-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.calc-result-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.calc-result-card p {
  margin: 10px 0;
}

.calc-v2-progress {
  font-weight: 700;
  margin-bottom: 16px;
  color: #666;
  font-size: 0.95rem;
}

.calc-v2-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-v2-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.calc-rs-card {
  border: 2px solid #f5a623;
  background: #fffbf0;
}

.calc-rs-header {
  margin-bottom: 12px;
}

.calc-rs-header h3 {
  margin: 0;
  color: #1a1a1a;
  font-size: 1.2rem;
}

.calc-rs-model {
  font-weight: 700;
  font-size: 1.3rem;
  margin: 12px 0;
}

.calc-rs-price {
  margin: 12px 0;
  font-weight: 700;
  color: #1a8f4f;
}

.whatsapp-btn {
  background: #25d366;
  color: #fff;
  font-weight: 700;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 12px;
}

/* Calculator v1 - Simple Design */
.calculator-v2 {
  padding: 16px;
}

.calculator-v2 .calc-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.calculator-v2 .calc-type-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.calculator-v2 .calc-type-card:hover {
  border-color: #f5a623;
}

.calculator-v2 .calc-type-card.active {
  border: 2px solid #f5a623;
  background: #fffbf0;
}

.calculator-v2 .calc-type-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.calculator-v2 .calc-tab-head {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.calculator-v2 .calc-tab {
  background: #eee;
  color: #333;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.calculator-v2 .calc-tab.active {
  background: #f5a623;
  color: #fff;
  font-weight: 600;
}

.calculator-v2 .calc-device-row {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
  display: grid;
  gap: 12px;
}

.calculator-v2 .calc-device-row.inactive {
  opacity: 0.6;
  background: #f9f9f9;
}

.calculator-v2 .calc-device-row.active {
  border-color: #f5a623;
  background: #fffbf0;
}

.calculator-v2 .calc-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calculator-v2 .calc-device-icon {
  font-size: 1.5rem;
}

.calculator-v2 .calc-row-left p {
  color: #666;
  font-size: 0.9rem;
}

.calculator-v2 .calc-row-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.calculator-v2 .calc-qty-btn {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.calculator-v2 .calc-qty-btn:hover {
  background: #f0f0f0;
}

.calculator-v2 .calc-qty-value {
  min-width: 30px;
  text-align: center;
  font-weight: 700;
}

.calculator-v2 .calc-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.calculator-v2 .calc-pill {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.calculator-v2 .calc-pill:hover {
  border-color: #f5a623;
}

.calculator-v2 .calc-pill.is-jour,
.calculator-v2 .calc-pill.is-nuit,
.calculator-v2 .calc-pill.is-both {
  background: #f5a623;
  color: #fff;
  border-color: #f5a623;
}

.calculator-v2 .calc-cv-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 0.9rem;
}

.calculator-v2 .calc-cv-table th,
.calculator-v2 .calc-cv-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.calculator-v2 .calc-cv-table th {
  background: #f9f9f9;
  font-weight: 600;
  font-size: 0.85rem;
}

.calculator-v2 .calc-cv-table tr.active {
  background: #FFFBF0;
  border-left: 3px solid #F5A623;
}

.calculator-v2 .calc-cv-table .calc-qty-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 0.8rem;
  margin: 0 4px;
}

.calculator-v2 .calc-cv-table .calc-qty-value {
  display: inline-block;
  min-width: 20px;
  text-align: center;
}

.calc-results-header {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.calc-results-list {
  margin-bottom: 16px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.result-label {
  color: #666;
  font-size: 14px;
}

.result-value {
  color: #1a1a1a;
  font-weight: bold;
}

.calc-separator {
  border: none;
  border-top: 1px solid #ddd;
  margin: 16px 0;
}

.calc-product-block {
  background: #FFFBF0;
  border: 1px solid #F5A623;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.calc-product-block h4 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.calc-product-model {
  font-size: 24px;
  font-weight: bold;
  margin: 8px 0;
  color: #1a1a1a;
}

.calc-product-price {
  font-size: 18px;
  font-weight: bold;
  color: #2ECC71;
  margin: 8px 0;
}

.calc-order-btn {
  background: #25D366;
  color: #fff;
  width: 100%;
  margin-top: 12px;
}

.clim-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.clim-row.active,
.clim-row-active {
  background: #FFFBF0;
  border-left: 3px solid #F5A623;
}

.clim-label {
  flex: 1;
}

.clim-power {
  flex: 1;
  text-align: center;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 0.8rem;
}

.qty-value {
  min-width: 20px;
  text-align: center;
}

.contact-card {
  padding: 16px;
}

.contact-grid {
  display: grid;
  gap: 12px;
}

.contact-details p {
  margin-bottom: 10px;
}

.contact-details a {
  color: #174ea6;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.social-links a {
  font-weight: 600;
}

.whatsapp-mini-btn {
  background: #25d366;
  color: #fff !important;
  padding: 8px 12px;
}

.contact-map-wrap iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 12px;
}

.section-spinner {
  min-height: 72px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
}

.page-loader.loader-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.order-wrapper {
  background: transparent;
}

.order-grid {
  display: grid;
  gap: 14px;
}

.order-summary-card,
.order-form-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px;
}

.order-summary-card {
  background: #fff9e8;
}

.order-needs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 12px;
}

.order-needs-table th,
.order-needs-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #eadfbf;
}

.order-power-summary {
  margin-bottom: 14px;
}

.order-power-summary p {
  margin-bottom: 6px;
}

.order-recommended-products {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.mini-product-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
}

.mini-product-card img {
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.mini-product-card h5 {
  margin: 6px 0 0;
}

.order-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.order-form label {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
}

.order-form input,
.order-form textarea {
  border: 1px solid #d8dce8;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.gps-box,
.products-select-box {
  border: 1px solid #dce2ef;
  border-radius: 10px;
  background: #fafcff;
  padding: 10px;
}

.hidden-link {
  display: none;
}

.order-products-options {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.product-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-check-item small {
  color: var(--text-soft);
}

.whatsapp-btn {
  background: #25d366;
  color: #fff;
  font-weight: 700;
}

.order-action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.action-card {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.devis-card {
  border: 2px solid #F5A623;
  background: #FFFBF0;
}

.commander-card {
  border: 2px solid #25D366;
  background: #F0FFF4;
}

.btn-devis {
  background: #F5A623;
  color: #1a1a1a;
  font-weight: bold;
  width: 100%;
}

.btn-commander {
  background: #25D366;
  color: white;
  font-weight: bold;
  width: 100%;
}

@media (max-width: 600px) {
  .order-action-cards { grid-template-columns: 1fr; }
}

.order-feedback {
  min-height: 20px;
  color: #c62828;
}

.order-feedback.success {
  color: #1b8e4b;
}

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

.footer {
  background: var(--carbon-black);
  color: var(--white);
  padding: 50px 0 16px;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer h4 {
  margin-bottom: 8px;
}

.footer p,
.footer a {
  color: #d2d5dc;
}

.footer a {
  display: block;
  margin-bottom: 6px;
}

.copyright {
  text-align: center;
  color: #9ea3ad;
  margin-top: 24px;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Horaires Bureau - Hour Pills */
.heure-pill {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.heure-pill:hover {
  border-color: #f5a623;
  background: #fff;
}

.heure-pill.active {
  background: #F5A623;
  color: #1a1a1a;
  font-weight: bold;
  border-color: #F5A623;
}

.heures-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.horaires-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.toggle-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  border-color: #f5a623;
}

.toggle-btn.active {
  background: #F5A623;
  color: #1a1a1a;
  font-weight: bold;
  border-color: #F5A623;
}

.calc-hours-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .horaires-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media (max-width: 768px) {
  .navbar {
    position: relative;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: #1A1A1A;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 14px 0;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    background: transparent;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 14px;
  }

  .nav-menu a {
    padding: 8px 0;
  }

  .about-grid {
    grid-template-columns: 1.3fr 1fr;
  }

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

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

  .calc-toolbar {
    grid-template-columns: 2fr 1fr;
  }

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

  .wizard-two-grid {
    grid-template-columns: 1.1fr 1fr;
  }

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

  .calc-type-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
  }

  .order-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .order-form {
    grid-template-columns: 1fr 1fr;
  }

  .order-form label,
  .gps-box,
  .products-select-box,
  .whatsapp-btn,
  .order-feedback {
    grid-column: span 2;
  }

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

@media (max-width: 480px) {
  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }

  .section-head h2 {
    font-size: 1.4rem;
  }

  .appliance-controls {
    grid-template-columns: 1fr;
  }

  .recommended-card {
    grid-template-columns: 1fr;
  }

  .calculator-v2 .calc-type-grid {
    grid-template-columns: 1fr;
  }

  .calculator-v2 .calc-device-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .calculator-v2 .calc-row-right,
  .calculator-v2 .calc-pill-row {
    justify-content: flex-start;
  }

  .calculator-v2 .calc-cv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* STYLES POUR LA PAGE CALCULATEUR STANDALONE */
.calc-standalone-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #1A1A1A;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
}
.calc-logo {
  height: 48px;
  width: auto;
}
.calc-standalone-title {
  margin: 0;
  font-size: 20px;
  color: #F5A623;
}
.calc-standalone-sub {
  margin: 0;
  font-size: 13px;
  color: #aaa;
}
.calc-back-btn {
  margin-left: auto;
  white-space: nowrap;
  font-size: 13px;
}
.calc-standalone-main {
  min-height: calc(100vh - 140px);
  padding: 24px 16px;
  max-width: 900px;
  margin: 0 auto;
}
.calc-standalone-footer {
  text-align: center;
  padding: 16px;
  background: #f5f5f5;
  color: #666;
  font-size: 13px;
}
.calc-standalone-footer a {
  color: #F5A623;
}

/* Bouton WhatsApp flottant */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: #25D366;
  color: white;
  border-radius: 50px;
  padding: 14px 20px 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(37,211,102,0.7);
}
.whatsapp-float-label { white-space: nowrap; }
@media (max-width: 480px) {
  .whatsapp-float { padding: 14px; border-radius: 50%; }
  .whatsapp-float-label { display: none; }
  .whatsapp-float { bottom: 16px; right: 16px; }
}

/* Styles pour les images placeholder */
img.placeholder-failed,
img.placeholder-fallback {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  object-fit: contain;
  padding: 20px;
}

.product-img-wrap img,
.item-image {
  background: #f5f5f5;
}

/* Lightbox et Preview modals */
.lightbox,
.preview-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.visible,
.preview-modal.visible {
  display: flex;
}

.lightbox-image,
#preview-image {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
}

/* Footer */
#main-footer {
  background: #1A1A1A;
  color: #ccc;
  padding: 48px 24px 0;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-logo {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin-bottom: 18px;
  background: transparent;
  mix-blend-mode: normal;
}
.footer-title {
  color: #F5A623;
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-links a { color: #ccc; text-decoration: none; }
.footer-links a:hover { color: #F5A623; }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.social-btn:hover { opacity: 0.85; }
.social-wa { background: #25D366; color: white; }
.social-fb { background: #1877F2; color: white; }
.social-ig {
  background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  color: white;
}
.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 16px 0;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 13px;
  color: #666;
}
@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; gap: 24px; }

  .footer-col:first-child {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .footer-logo {
    height: 48px;
    max-width: 150px;
    margin: 0 auto 16px;
  }
}

/* Calculator additions: subtotals and totals bar */
.device-sous-total {
  font-size: 12px;
  font-weight: 700;
  color: #2ECC71;
  background: rgba(46,204,113,0.1);
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  margin-left: 6px;
}
.calc-qty-btn.btn-active {
  background: #F5A623 !important;
  color: #1a1a1a !important;
  border-color: #F5A623 !important;
  font-weight: 900;
  transform: scale(1.1);
}
.section-totals-bar {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1A1A1A, #2d2d2d);
  border-radius: 12px;
  margin: 16px 0 8px;
  flex-wrap: wrap;
}
.section-total-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}
.section-total-item span {
  font-size: 12px;
  color: #aaa;
}
.section-total-item strong {
  font-size: 1.2rem;
  color: #F5A623;
  font-weight: 800;
}

