/* =====================================
   SMARTPC SENEGAL - DESIGN
===================================== */

:root {
  --blue: #0758d8;
  --dark-blue: #061c3d;
  --yellow: #ffcf19;
  --green: #12b84b;
  --white: #ffffff;
  --light: #f4f7fc;
  --text: #17243b;
  --muted: #667085;
  --border: #e2e8f0;
  --shadow: 0 8px 25px rgba(10, 35, 75, 0.09);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--text);
}

body.no-scroll {
  overflow: hidden;
}

button, input, select {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

.section-padding {
  padding: 75px 0;
}

/* HEADER */

.header {
  background: var(--dark-blue);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 15px rgba(0,0,0,.12);
}

.nav-container {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  font-size: 25px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.logo > span:last-child {
  line-height: 1;
}

.logo > span:last-child > span,
.footer-logo span {
  color: var(--yellow);
}

.logo small {
  display: block;
  color: var(--yellow);
  font-size: 12px;
  text-align: right;
  margin-top: 4px;
}

.logo-icon {
  font-size: 34px;
}

nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

nav a {
  font-size: 14px;
  font-weight: 700;
  transition: color .2s;
}

nav a:hover {
  color: var(--yellow);
}

.cart-button {
  background: var(--blue);
  color: white;
  border-radius: 30px;
  padding: 13px 19px;
  font-weight: 700;
}

.cart-button span {
  background: var(--yellow);
  color: var(--dark-blue);
  border-radius: 50%;
  padding: 3px 7px;
  margin-left: 5px;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: white;
  font-size: 27px;
}

/* BANNIÈRE ACCUEIL */

.hero {
  background:
    radial-gradient(circle at 80% 20%, #1474ee 0, transparent 30%),
    linear-gradient(115deg, #061b3b, #0758d8);
  color: white;
  overflow: hidden;
}

.hero-content {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 35px;
  padding-top: 35px;
  padding-bottom: 35px;
}

.hero-tag, .eyebrow {
  color: #e3b600;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(35px, 5vw, 58px);
  line-height: 1.08;
  margin: 18px 0;
  max-width: 620px;
}

.hero-text p {
  font-size: 17px;
  line-height: 1.7;
  color: #e5edff;
  max-width: 550px;
  margin-bottom: 25px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform .2s, filter .2s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(.97);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--dark-blue);
}

.btn-green {
  background: var(--green);
  color: white;
}

.hero-visual {
  text-align: center;
}

.hero-laptop {
  font-size: clamp(100px, 18vw, 190px);
  filter: drop-shadow(0 15px 20px rgba(0,0,0,.25));
}

.brand-cloud {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 30px;
  padding: 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* AVANTAGES */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding-top: 25px;
  padding-bottom: 25px;
}

.benefit {
  background: #edf3ff;
  border-radius: 13px;
  padding: 18px 12px;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
}

/* TITRES */

.section-heading {
  text-align: center;
  margin-bottom: 35px;
}

.section-heading h2,
.about h2 {
  font-size: clamp(27px, 4vw, 38px);
  color: var(--dark-blue);
  margin: 12px 0;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.6;
}

/* CATALOGUE */

.catalogue {
  background: var(--light);
}

.catalogue-tools {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 15px;
  margin-bottom: 18px;
}

.catalogue-tools input,
.catalogue-tools select,
.cart-footer select {
  width: 100%;
  padding: 15px;
  background: white;
  border: 1px solid #d7deeb;
  border-radius: 11px;
  outline: none;
  color: var(--text);
}

.catalogue-tools input:focus,
.catalogue-tools select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7,88,216,.1);
}

.catalogue-status {
  text-align: right;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 15px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(10,35,75,.04);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-image {
  height: 190px;
  padding: 13px;
  background: white;
  position: relative;
  cursor: pointer;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--blue);
  color: white;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h3 {
  font-size: 16px;
  line-height: 1.4;
  min-height: 44px;
  color: var(--dark-blue);
  margin-bottom: 9px;
}

.product-description {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.product-price {
  font-size: 19px;
  color: var(--blue);
  font-weight: 900;
  margin: auto 0 14px;
  padding-top: 12px;
}

.card-actions {
  display: grid;
  gap: 8px;
}

.details-button {
  background: #eaf1ff;
  color: var(--blue);
  border-radius: 9px;
  padding: 11px;
  font-weight: 800;
}

.add-to-cart {
  background: var(--yellow);
  color: var(--dark-blue);
  border-radius: 9px;
  padding: 12px;
  font-weight: 900;
}

.no-products {
  text-align: center;
  color: var(--muted);
  padding: 35px;
}

/* À PROPOS */

.about-content {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 45px;
  align-items: center;
}

.about-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 12px;
}

.about-card {
  background: var(--dark-blue);
  color: white;
  border-radius: 20px;
  padding: 35px;
  text-align: center;
}

.about-icon {
  font-size: 70px;
  margin-bottom: 15px;
}

.about-card h3 {
  margin-bottom: 12px;
}

.about-card p {
  color: #d9e5ff;
}

/* ANCIENS STYLES CONTACT CONSERVÉS */

.contact {
  background: #f2f6ff;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 750px;
  margin: auto;
}

.contact-cards a {
  background: white;
  border: 1px solid var(--border);
  padding: 25px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.contact-cards a > span {
  font-size: 35px;
}

.contact-cards strong {
  color: var(--blue);
  font-size: 21px;
}

.contact-cards small {
  color: var(--muted);
}

/* FOOTER */

.footer {
  background: var(--dark-blue);
  color: white;
  padding: 30px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-content p {
  color: #c5d3eb;
  font-size: 13px;
  margin-top: 9px;
}

.footer-logo {
  font-size: 20px;
}

/* PANIER */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  z-index: 201;
  top: 0;
  right: -450px;
  width: min(420px, 100%);
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  transition: right .3s;
  box-shadow: -10px 0 30px rgba(0,0,0,.15);
}

.cart-panel.active {
  right: 0;
}

.cart-header {
  background: var(--dark-blue);
  color: white;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header button {
  color: white;
  background: transparent;
  font-size: 22px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}

.cart-item h4 {
  font-size: 14px;
  margin-bottom: 6px;
}

.cart-item p {
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.quantity-controls button,
.remove-item {
  padding: 5px 9px;
  border-radius: 6px;
  background: #edf3ff;
  color: var(--blue);
  font-weight: 800;
}

.remove-item {
  background: #fff0f0;
  color: #c62828;
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
}

.cart-footer label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-footer select {
  margin-bottom: 12px;
}

.checkout-button {
  width: 100%;
}

/* FICHE DETAILLEE */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(3, 16, 38, .75);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.product-modal {
  width: min(950px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: white;
  border-radius: 20px;
  position: relative;
  padding: 30px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #edf2fa;
  color: var(--dark-blue);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 19px;
  z-index: 2;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-top: 15px;
}

.detail-main-image {
  background: #f5f7fb;
  border-radius: 15px;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.detail-main-image img {
  width: 100%;
  height: 300px;
  object-fit: contain;
}

.detail-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.detail-thumbnail {
  width: 75px;
  height: 65px;
  border: 2px solid var(--border);
  border-radius: 9px;
  padding: 5px;
  background: white;
}

.detail-thumbnail.active {
  border-color: var(--blue);
}

.detail-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-information h2 {
  color: var(--dark-blue);
  font-size: 27px;
  line-height: 1.3;
  margin: 12px 0;
}

.detail-brand {
  display: inline-block;
  background: #eaf1ff;
  color: var(--blue);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
}

.detail-price {
  color: var(--blue);
  font-size: 25px;
  font-weight: 900;
  margin: 15px 0;
}

.detail-information p {
  color: var(--muted);
  line-height: 1.6;
}

.specifications {
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.spec-row span:first-child {
  color: var(--muted);
}

.spec-row strong {
  text-align: right;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.detail-actions button {
  border-radius: 10px;
  padding: 13px 8px;
  font-weight: 800;
}

.similar-section {
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding-top: 25px;
}

.similar-section h3 {
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.similar-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  background: white;
}

.similar-card img {
  width: 100%;
  height: 90px;
  object-fit: contain;
}

.similar-card strong {
  display: block;
  font-size: 12px;
  margin-top: 8px;
}

.similar-card span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  margin-top: 5px;
}

/* RESPONSIVE */

@media (max-width: 950px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  nav {
    gap: 15px;
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nav-container {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--dark-blue);
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  nav.active {
    display: flex;
  }

  .cart-button {
    padding: 10px 12px;
    font-size: 12px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-icon {
    font-size: 27px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    display: none;
  }

  .benefits {
    gap: 8px;
  }

  .benefit {
    font-size: 12px;
    padding: 14px 7px;
  }

  .catalogue-tools {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-image {
    height: 140px;
  }

  .product-info {
    padding: 11px;
  }

  .product-info h3 {
    font-size: 13px;
  }

  .product-price {
    font-size: 15px;
  }

  .add-to-cart, .details-button {
    font-size: 11px;
    padding: 10px 5px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .product-modal {
    padding: 20px 15px;
  }

  .detail-main-image {
    min-height: 220px;
  }

  .detail-main-image img {
    height: 210px;
  }

  .detail-information h2 {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 190px;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   NOUVELLE BANNIÈRE CONTACT SMARTPC
===================================== */

.smartpc-contact {
  background: linear-gradient(120deg, #061c3d, #0758d8);
  padding: 75px 0;
  color: white;
}

.smartpc-contact-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 45px;
}

.smartpc-contact .eyebrow {
  color: #ffcf19;
  margin-bottom: 15px;
}

.smartpc-contact-text h2 {
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.2;
  margin-bottom: 18px;
  color: white;
}

.smartpc-contact-text > p:not(.eyebrow) {
  color: #e1eaff;
  font-size: 16px;
  line-height: 1.8;
  max-width: 550px;
}

.smartpc-contact-info {
  display: grid;
  gap: 12px;
  margin-top: 25px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.smartpc-contact-info span {
  display: block;
}

.smartpc-contact-box {
  background: white;
  color: #061c3d;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,.2);
}

.smartpc-contact-box h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.smartpc-contact-box > p {
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.smartpc-whatsapp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #12b84b;
  color: white;
  padding: 16px;
  border-radius: 12px;
  margin-top: 12px;
  transition: .25s;
}

.smartpc-whatsapp:hover {
  background: #0d963c;
  transform: translateY(-3px);
}

.smartpc-whatsapp span {
  font-size: 13px;
  font-weight: 600;
}

.smartpc-whatsapp strong {
  font-size: 16px;
}

@media (max-width: 700px) {
  .smartpc-contact {
    padding: 50px 0;
  }

  .smartpc-contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .smartpc-contact-box {
    padding: 23px;
  }

  .smartpc-whatsapp {
    padding: 14px;
  }
}
