/*
 * NOUR ELEC — Feuille de style responsive & harmonisation globale
 * Version : 20261018.1
 * Préserve intégralement les couleurs (noir, rouge, bleu), typographies et animations.
 * Corrige les débordements sur viewports 320px, 360px, 375px, 390px, 412px, 768px et desktop.
 */

/* 1. RÈGLES FONDAMENTALES DE BOÎTE */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, svg, video {
  max-width: 100%;
}

/* 1.1 POINT VERT ANIMÉ ET STATUT LOCALISATION HEADER */
.ne-location-status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.ne-location-status .ne-pulse-dot {
  display: inline-block !important;
  flex: 0 0 9px !important;
  width: 9px !important;
  height: 9px !important;
  background: #10b981 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px #10b981 !important;
  animation: ne-pulse 1.5s infinite !important;
}

@keyframes ne-pulse {
  0% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 360px) {
  .ne-location-status {
    font-size: 11.5px !important;
    gap: 5px !important;
  }
}
@media (max-width: 330px) {
  .ne-location-status {
    font-size: 10.5px !important;
  }
}

/* 2. HEADER UNIFIÉ COMPACT NOUR ELEC */
@media (max-width: 1180px) {
  .ne-city-like-header .ne-city-like-top-inner {
    justify-content: center;
    text-align: center;
    padding: 8px 0;
    gap: 8px;
  }
  .ne-city-like-header .ne-city-like-info {
    width: 100%;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    min-width: 0;
  }
  .ne-city-like-header .ne-city-like-nav-inner {
    min-height: 66px;
    width: 100%;
    padding: 0 12px;
    gap: 10px;
  }
  .ne-city-like-header .ne-city-like-brand {
    min-width: 0;
    max-width: calc(100% - 62px);
    gap: 8px;
  }
  .ne-city-like-header .ne-city-like-brand img {
    width: auto;
    height: 52px;
    max-height: 52px;
    object-fit: contain;
  }
  .ne-city-like-header .ne-city-like-brand > span {
    min-width: 0;
    max-width: 220px;
    line-height: 1.1;
  }
  .ne-city-like-header .ne-city-like-brand strong {
    font-size: 13.5px;
    line-height: 1.1;
    white-space: normal;
  }
  .ne-city-like-header .ne-city-like-brand span span {
    font-size: 10.5px;
    line-height: 1.2;
    white-space: normal;
  }
  .ne-city-like-header .ne-city-like-menu {
    display: none !important;
  }
  .ne-city-like-header .ne-city-like-burger {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .ne-city-like-header .ne-city-like-hours {
    justify-content: center !important;
    font-size: 11.5px !important;
    padding: 7px 10px !important;
    gap: 6px !important;
    line-height: 1.35;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .ne-city-like-header .ne-city-like-top-inner {
    min-width: 0;
    gap: 7px;
    padding: 7px 0;
  }
  .ne-city-like-header .ne-city-like-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
  }
  .ne-city-like-header .ne-city-like-hours {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 6px 8px;
    font-size: 11px !important;
    line-height: 1.35;
    white-space: normal;
  }
  .ne-city-like-header .ne-city-like-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 6px !important;
  }
  .ne-city-like-header .ne-city-like-actions > a {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
    height: 38px !important;
    padding: 0 4px !important;
    font-size: clamp(9px, 2.7vw, 12px) !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .ne-city-like-header .ne-city-like-actions svg {
    margin-right: 4px !important;
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 430px) {
  .ne-city-like-header .ne-city-like-brand > span {
    max-width: 180px;
  }
  .ne-city-like-header .ne-city-like-brand span span {
    display: none !important;
  }
  .ne-city-like-header .ne-city-like-brand strong {
    font-size: 12.5px !important;
  }
}

@media (max-width: 375px) {
  .ne-city-like-header .ne-city-like-hours {
    font-size: 10px !important;
    padding: 5px 6px !important;
    gap: 3px 5px !important;
  }
  .ne-city-like-header .ne-city-like-actions {
    gap: 4px !important;
  }
  .ne-city-like-header .ne-city-like-actions > a {
    font-size: clamp(8.5px, 2.6vw, 10.5px) !important;
    padding: 0 2px !important;
  }
}

@media (max-width: 335px) {
  .ne-city-like-header .ne-city-like-hours {
    font-size: 9px !important;
    padding: 4px 4px !important;
  }
  .ne-city-like-header .ne-city-like-actions > a {
    font-size: 8.5px !important;
    padding: 0 1px !important;
  }
  .ne-city-like-header .ne-city-like-phone svg,
  .ne-city-like-header .ne-city-like-whatsapp svg {
    display: none !important;
  }
}

/* 3. HERO ACTIONS & BOUTONS RESPONSIVES */
@media (max-width: 940px) {
  .ne-hero .ne-actions,
  .ne-actions,
  .ne-hero-inline-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
    margin-top: 26px !important;
  }
  .ne-hero .ne-actions .ne-btn,
  .ne-actions .ne-btn,
  .ne-hero-inline-actions a,
  .ne-hero-action-red,
  .ne-hero-action-blue {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    padding: 14px 14px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    text-align: center !important;
    line-height: 1.35 !important;
  }
}

/* 4. PRESTATIONS & CONTENUS GLOBAUX */
h1, h2, h3, h4 {
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  max-width: 100% !important;
}

.ne-card, .ne-mini, .ne-cta, .neon-card {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 480px) {
  .ne-wrap {
    width: calc(100% - 20px) !important;
  }
  .ne-card {
    padding: 20px 14px !important;
  }
  .ne-mini {
    padding: 16px 12px !important;
  }
  .ne-cta {
    padding: 22px 14px !important;
  }
  .ne-hero p {
    font-size: 15.5px !important;
    line-height: 1.55 !important;
  }
}

/* 5. TABLEAUX ET OVERFLOW HORIZONTAL SÉCURISÉ */
.overflow-x-auto {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  max-width: 100% !important;
}

table {
  max-width: 100% !important;
}

/* 6. PAGE MAINTENANCE FIX */
body.maintenance-page,
.maintenance-body {
  padding: 20px 12px !important;
  box-sizing: border-box !important;
  min-height: 100vh !important;
}

.maintenance-body .card,
.maintenance-card {
  box-sizing: border-box !important;
  width: min(500px, 100%) !important;
  max-width: 100% !important;
  padding: 30px 20px !important;
}

@media (max-width: 360px) {
  .maintenance-body .card,
  .maintenance-card {
    padding: 22px 14px !important;
  }
}

/* 7. COUCHES FLOTTANTES (CALL & BACK TO TOP) */
@media (max-width: 640px) {
  .ne-floating-call {
    right: 10px !important;
    bottom: 96px !important;
    width: 200px !important;
    min-height: 46px !important;
    padding: 6px 10px !important;
    z-index: 9998 !important;
  }
  #backToTop {
    right: 14px !important;
    bottom: 154px !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 9999 !important;
  }
}

@media (max-width: 380px) {
  .ne-floating-call {
    width: 184px !important;
    right: 8px !important;
    bottom: 92px !important;
  }
  .ne-floating-call strong {
    font-size: 13.5px !important;
  }
  .ne-floating-call small {
    font-size: 8px !important;
  }
  #backToTop {
    right: 10px !important;
    bottom: 146px !important;
    width: 40px !important;
    height: 40px !important;
  }
}

/* Containment des fonds dcoratifs et carrousels d'avis */
#accueil,
.ne-winter-zone,
.ne-local-reviews,
.ne-local-reviews-shell,
.ne-local-reviews-marquee,
.relative.overflow-hidden {
    overflow-x: clip;
}

/* Correction hero-winter & rays a 768px */
#accueil {
    overflow-x: clip !important;
}
.hero-winter-text-bg {
    right: 0 !important;
    max-width: 100% !important;
}
.electric-ray {
    max-width: 100vw !important;
}
