/* ============================================
   LED & PEAU — Feuille de style principale
   Palette : blanc chaud, rose poudré, doré,
   accent corail (couleur LED rouge 633nm)
   ============================================ */

:root {
  /* Couleurs */
  --color-bg: #FBF7F4;
  --color-bg-alt: #F5EDE8;
  --color-rose: #D4A5A0;
  --color-rose-light: #E8D5D1;
  --color-gold: #C9A876;
  --color-gold-light: #E0CDA8;
  --color-led-red: #FF6B5B;
  --color-led-red-dark: #E8543F;
  --color-text: #2D2624;
  --color-text-soft: #6B5D58;
  --color-white: #FFFFFF;
  --color-border: #E5D9D2;

  /* Typographie */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Rayon */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--color-led-red-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-led-red);
  outline-offset: 3px;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   HALO LUMINEUX — Signature visuelle du site
   ============================================ */

.halo-bg {
  position: relative;
  overflow: hidden;
}

.halo-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 91, 0.18) 0%, rgba(255, 107, 91, 0.06) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.halo-bg::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 118, 0.15) 0%, rgba(201, 168, 118, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-led-red);
  box-shadow: 0 0 12px 2px rgba(255, 107, 91, 0.6);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-led-red-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-led-red-dark);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.hero h1 em {
  font-style: normal;
  color: var(--color-led-red-dark);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  margin-bottom: var(--space-md);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-led-red);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(255, 107, 91, 0.35);
}

.btn-primary:hover {
  background: var(--color-led-red-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 107, 91, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-white);
  text-decoration: none;
  border-color: var(--color-rose);
}

/* ============================================
   SPECTRE LED — Élément signature interactif
   ============================================ */

.spectrum-strip {
  display: flex;
  gap: 4px;
  margin: var(--space-md) 0;
  max-width: 480px;
}

.spectrum-band {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  position: relative;
}

.spectrum-band.red { background: #FF6B5B; }
.spectrum-band.blue { background: #5B9FFF; }
.spectrum-band.infrared { background: #B85B5B; opacity: 0.7; }

/* ============================================
   SECTIONS GÉNÉRALES
   ============================================ */

.section {
  padding: var(--space-lg) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

.section-header .eyebrow {
  margin-bottom: var(--space-xs);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.section-header p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
}

/* ============================================
   CARTES ARTICLES
   ============================================ */

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.article-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(45, 38, 36, 0.08);
}

.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-led-red-dark);
  background: rgba(255, 107, 91, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  margin-bottom: var(--space-sm);
  width: fit-content;
}

.article-tag.tag-blue {
  color: #3D6FC9;
  background: rgba(91, 159, 255, 0.12);
}

.article-tag.tag-gold {
  color: #9C7A3E;
  background: rgba(201, 168, 118, 0.18);
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.article-card p {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
  flex-grow: 1;
}

.article-card .read-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-led-red-dark);
}

/* ============================================
   POURQUOI CE SITE / CRÉDIBILITÉ
   ============================================ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.trust-item {
  padding: var(--space-md);
}

.trust-item .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.4rem;
}

.trust-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.trust-item p {
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

/* ============================================
   NEWSLETTER / CTA FINALE
   ============================================ */

.cta-banner {
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-led-red) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  opacity: 0.95;
  max-width: 500px;
  margin: 0 auto var(--space-md);
}

.cta-banner .btn-primary {
  background: var(--color-white);
  color: var(--color-led-red-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn-primary:hover {
  background: var(--color-bg);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-led-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-md);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.affiliate-disclosure {
  font-size: 0.8rem;
  opacity: 0.6;
  max-width: 700px;
  margin-top: var(--space-sm);
}

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

/* ============================================
   PAGE ARTICLE
   ============================================ */

.article-header {
  padding: var(--space-lg) 0 var(--space-md);
  max-width: 720px;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin: var(--space-sm) 0;
}

.article-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.article-body {
  max-width: 720px;
  padding-bottom: var(--space-lg);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: var(--space-lg) 0 var(--space-sm);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: var(--space-md) 0 var(--space-xs);
}

.article-body p {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.article-body ul,
.article-body ol {
  margin: var(--space-sm) 0 var(--space-sm) 1.4rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.callout {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-led-red);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
}

.callout strong {
  color: var(--color-led-red-dark);
}

/* Tableau comparatif produits */

.product-table-wrap {
  overflow-x: auto;
  margin: var(--space-md) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  min-width: 600px;
}

.product-table th {
  background: var(--color-bg-alt);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  padding: var(--space-sm);
  font-size: 0.9rem;
}

.product-table td {
  padding: var(--space-sm);
  border-top: 1px solid var(--color-border);
  font-size: 0.92rem;
  vertical-align: top;
}

.product-table .product-name {
  font-weight: 600;
}

.product-cta {
  display: inline-block;
  background: var(--color-led-red);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.product-cta:hover {
  background: var(--color-led-red-dark);
  text-decoration: none;
}

/* Bloc recommandation produit en fin d'article */

.product-pick {
  display: flex;
  gap: var(--space-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  align-items: center;
  flex-wrap: wrap;
}

.product-pick-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.product-pick-info p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: var(--space-sm);
}

/* Encart "Bon à savoir" sécurité */

.safety-note {
  background: #FFF4F0;
  border: 1px solid rgba(255, 107, 91, 0.25);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  font-size: 0.92rem;
}

.toc {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.toc h4 {
  font-family: var(--font-display);
  margin-bottom: var(--space-xs);
  font-size: 1rem;
}

.toc ul {
  list-style: none;
  margin: 0;
}

.toc li {
  margin-bottom: 0.4rem;
}

.toc a {
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.toc a:hover {
  color: var(--color-led-red-dark);
}

/* Utilitaires responsive */

@media (max-width: 600px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
