/* Styles partagés (hors Tailwind JIT) — accueil & composants */
.force-light-nav {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
}
.force-light-link {
  color: #1a1a1a !important;
}
.force-light-link:hover {
  color: #E32128 !important;
}

/* Disponibilité — pastilles claires (téléphonie / TV) lisibles en thème Halloween */
.theme-halloween .at-disp-badge--light {
  background-color: #ffffff !important;
  border-color: rgb(255 122 26 / 0.35) !important;
}
.theme-halloween .at-disp-badge--light.bg-blue-50 {
  background-color: #eff6ff !important;
  border-color: #93c5fd !important;
}
.theme-halloween .at-disp-badge--light.bg-purple-50 {
  background-color: #f5f3ff !important;
  border-color: #c4b5fd !important;
}
.theme-halloween .at-disp-badge--light .text-gray-900 {
  color: #111827 !important;
}
.theme-halloween .at-disp-badge--light .text-emerald-600 {
  color: #059669 !important;
}
.theme-halloween .at-disp-badge--light .bg-emerald-50 {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
}
.theme-halloween .at-disp-badge--light .text-purple-600 {
  color: #7c3aed !important;
}

/* Logo header — fond blanc garanti (nav sombre / Halloween, surtout mobile) */
html.theme-halloween header a.at-brand-logo-link.at-brand-logo-plate,
body.theme-halloween header a.at-brand-logo-link.at-brand-logo-plate {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

html.theme-halloween header a.at-brand-logo-link img.at-brand-logo,
body.theme-halloween header a.at-brand-logo-link img.at-brand-logo {
  height: 2.75rem !important;
  max-height: 2.75rem;
  width: auto !important;
  max-width: 10.5rem;
  object-fit: contain;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

@media (min-width: 768px) {
  html.theme-halloween header a.at-brand-logo-link img.at-brand-logo,
  body.theme-halloween header a.at-brand-logo-link img.at-brand-logo {
    height: 3.5rem !important;
    max-height: 3.5rem;
  }
}

.outage-page-body { font-size: 0.875rem; line-height: 1.6; color: #4b5563; }
.outage-page-body p { margin-bottom: 0.5rem; }
.outage-page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
  margin: 0.35rem 0;
}
.outage-page-body a { color: #dc2626; font-weight: 600; }
.outage-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.outage-photo-grid img { width: 100%; margin: 0; cursor: zoom-in; }
.hydro-outage-details p { line-height: 1.45; }
.outage-mini-map { height: 11rem; width: 100%; z-index: 0; }
@media (min-width: 640px) { .outage-mini-map { height: 12.5rem; } }
.outage-map-screenshot {
  width: 100%;
  max-height: 22rem;
  object-fit: contain;
  background: #e5e7eb;
}
.outage-mini-map .leaflet-control-attribution { font-size: 9px; }

.news-carousel-track {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.news-carousel-track::-webkit-scrollbar { height: 6px; }
.news-carousel-track::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}
.news-carousel-btn:disabled { pointer-events: none; }
.news-card-message {
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-body .news-card-details { line-height: 1.55; }
.news-map-article-link {
  display: block;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.news-map-article-link:hover {
  box-shadow: 0 4px 14px rgb(220 38 38 / 0.15);
  border-color: rgb(252 165 165);
}
.news-map-article-link .outage-mini-map { pointer-events: none; }
.news-card-latest {
  background: linear-gradient(165deg, #fff7f7 0%, #fef2f2 40%, #f9fafb 100%);
  border: 2px solid #E32128 !important;
  box-shadow: 0 12px 32px -10px rgba(227, 33, 40, 0.45);
  animation: news-latest-glow 3s ease-in-out infinite;
}
.news-card-latest:hover {
  box-shadow: 0 16px 36px -8px rgba(227, 33, 40, 0.5);
}
.news-latest-strip {
  background: linear-gradient(90deg, #E32128, #2E4296);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.4rem 0.75rem;
}
@keyframes news-latest-glow {
  0%, 100% { box-shadow: 0 12px 32px -10px rgba(227, 33, 40, 0.45); }
  50% { box-shadow: 0 14px 36px -6px rgba(227, 33, 40, 0.55); }
}
.news-date-latest { color: #E32128 !important; font-weight: 700; }

.hero-spotlight-viewport { min-height: 20rem; }
@media (min-width: 1024px) { .hero-spotlight-viewport { min-height: 26rem; } }
.hero-spotlight-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
  pointer-events: none;
}
.hero-spotlight-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
.hero-spotlight-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s, background 0.2s;
}
.hero-spotlight-dot.is-active {
  background: #dc2626;
  transform: scale(1.25);
}
@keyframes news-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.news-skeleton-card {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: news-shimmer 1.4s ease-in-out infinite;
}

.news-carousel-footer-hint {
  letter-spacing: 0.02em;
  line-height: 1.45;
}
@keyframes outage-alert-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}
#outage-top-alert { animation: outage-alert-pulse 2s ease-in-out infinite; }

#mobile-eligibility-cta {
  transform: translateY(100%);
  transition: transform 0.35s ease, box-shadow 0.2s;
}
#mobile-eligibility-cta.is-visible {
  transform: translateY(0);
}

/* Carrousel héro — texte lisible sur mobile */
.hero-spotlight-slide .hero-spotlight-note {
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.75);
}
.hero-spotlight-slide .hero-spotlight-pitch {
  text-shadow: 0 1px 4px rgb(0 0 0 / 0.85);
  margin-top: 0.35rem;
}
@media (max-width: 639px) {
  .hero-spotlight-slide .hero-spotlight-note,
  .hero-spotlight-slide .hero-spotlight-pitch {
    background: rgb(0 0 0 / 0.62);
    padding: 0.45rem 0.6rem;
    border-radius: 0.55rem;
    border: 1px solid rgb(255 255 255 / 0.14);
  }
  .hero-spotlight-slide .hero-spotlight-pitch {
    font-size: 0.8125rem;
    line-height: 1.45;
  }
}

/* Résumé offre télé (sans bloc plateformes) */
.at-tv-summary {
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
}
.at-tv-summary__plan {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.at-tv-summary__price-line {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
  line-height: 1.1;
}
.at-tv-summary__from {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}
.at-tv-summary__price {
  font-size: 1.65rem;
  font-weight: 900;
  color: #e32128;
}
.at-tv-summary__suffix {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}
.at-tv-summary__note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}
.at-tv-summary__pitch {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #334155;
}
.at-tv-summary--on-dark {
  background: rgb(0 0 0 / 0.58);
  border-color: rgb(255 255 255 / 0.2);
  color: #f8fafc;
  backdrop-filter: blur(6px);
}
.at-tv-summary--on-dark .at-tv-summary__plan {
  color: rgb(226 232 240 / 0.85);
}
.at-tv-summary--on-dark .at-tv-summary__from,
.at-tv-summary--on-dark .at-tv-summary__suffix,
.at-tv-summary--on-dark .at-tv-summary__note {
  color: rgb(226 232 240 / 0.92);
}
.at-tv-summary--on-dark .at-tv-summary__price {
  color: #ffb4a8;
}
.at-tv-summary--on-dark .at-tv-summary__pitch {
  color: #fff;
}
.theme-halloween .at-tv-summary:not(.at-tv-summary--on-dark) {
  background: #fff8f0 !important;
  border-color: rgb(255 122 26 / 0.35) !important;
  color: #1a1410 !important;
}
.theme-halloween .at-tv-summary:not(.at-tv-summary--on-dark) .at-tv-summary__pitch {
  color: #2a2018 !important;
}

/* Bloc Sinterix + plateformes (page Télévision uniquement) */
.at-sinterix-promo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgb(46 66 150 / 0.22);
  background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 55%, #f1f5f9 100%);
  text-align: left;
}
.at-sinterix-promo__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}
.at-sinterix-promo__label,
.at-sinterix-promo__platforms-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}
.at-sinterix-promo__logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 0.35rem;
  border-radius: 0.85rem;
  border: 2px solid #cbd5e1;
  box-shadow:
    0 6px 18px rgb(0 0 0 / 0.28),
    0 0 0 1px rgb(255 255 255 / 0.8);
}
.at-sinterix-promo__logo {
  height: 4.25rem;
  width: 4.25rem;
  max-width: none;
  object-fit: contain;
  display: block;
}
.at-sinterix-promo__platforms {
  text-align: center;
}
.at-sinterix-promo__platform-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}
.at-sinterix-promo__platform-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
}
.at-sinterix-promo__platform-list img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.55rem;
  flex-shrink: 0;
}
.theme-halloween .at-sinterix-promo {
  background: linear-gradient(145deg, #fff8f0 0%, #ffe8cc 55%, #fff5eb 100%) !important;
  border-color: rgb(255 122 26 / 0.45) !important;
}
.theme-halloween .at-sinterix-promo__label,
.theme-halloween .at-sinterix-promo__platforms-label {
  color: #5c4a3a !important;
}
.theme-halloween .at-sinterix-promo__platform-list li {
  background: #ffffff !important;
  border-color: rgb(255 160 80 / 0.45) !important;
  color: #1a1410 !important;
}
.theme-halloween .at-sinterix-promo__logo-plate {
  background: #ffffff !important;
  border-color: rgb(255 160 80 / 0.95) !important;
  box-shadow:
    0 8px 22px rgb(0 0 0 / 0.25),
    0 0 0 2px rgb(255 200 140 / 0.45) !important;
}

/* Portail client — iframe (/telephonie/embed ou ?embed=1) : contenu seul */
body.site-embed-mode {
  background: #f9fafb !important;
}
body.site-embed-mode header,
body.site-embed-mode footer,
body.site-embed-mode .at-messenger-fab,
body.site-embed-mode #fb-root,
body.site-embed-mode .fb-customerchat,
body.site-embed-mode .fb_dialog {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}
body.site-embed-mode .site-embed-main > section:first-child {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
