/*
 * Identité éditoriale 2026 — Comparateur pour Bébé
 * Harmonise les anciens guides et conseils avec la palette bordeaux,
 * champagne et ivoire utilisée sur les nouvelles pages du site.
 */

:root {
  --primary: #6b2f49;
  --accent: #c29a61;
  --coral: #e6816d;
  --yellow: #f2e1c8;
  --text: #271d1b;
  --text-secondary: #6e5e58;
  --text-tertiary: #8b7770;
  --bg: #fff7ef;
  --bg-white: #fffdf9;
  --radius: 20px;
  --brand-dark: #4c1d33;
  --brand-soft: #f2dfe5;
  --champagne-soft: #f2e1c8;
  --line: rgba(85, 60, 47, 0.16);
  --shadow-sm: 0 8px 28px rgba(72, 48, 36, 0.07);
  --shadow-lg: 0 22px 55px rgba(72, 48, 36, 0.13);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(242, 223, 229, 0.72), transparent 27rem),
    radial-gradient(circle at 92% 4%, rgba(242, 225, 200, 0.7), transparent 25rem),
    var(--bg);
  font-family: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration-color: rgba(107, 47, 73, 0.35);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--brand-dark);
}

.site-header {
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 24px rgba(72, 48, 36, 0.05);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: 980px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.logo {
  color: var(--text);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.logo-icon {
  border: 1px solid rgba(194, 154, 97, 0.72);
  border-radius: 13px;
  background: linear-gradient(145deg, var(--primary), var(--brand-dark));
  box-shadow: 0 8px 22px rgba(76, 29, 51, 0.22);
}

.logo span {
  color: var(--text);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

.back-link {
  padding: 8px 12px;
  border: 1px solid rgba(194, 154, 97, 0.42);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 253, 249, 0.85);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  border-color: rgba(194, 154, 97, 0.75);
  color: var(--brand-dark);
  background: var(--champagne-soft);
  transform: translateY(-1px);
}

.hero-img {
  max-height: 440px;
  border-bottom: 1px solid rgba(194, 154, 97, 0.36);
  filter: saturate(0.92) contrast(1.02);
}

article {
  max-width: 820px;
  padding: 44px 34px 72px;
  border-right: 1px solid rgba(194, 154, 97, 0.2);
  border-left: 1px solid rgba(194, 154, 97, 0.2);
  background: rgba(255, 253, 249, 0.97);
  box-shadow: var(--shadow-sm);
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing: -0.018em;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  line-height: 1.08;
}

h3 {
  color: var(--brand-dark);
  font-size: 1.42rem;
  line-height: 1.3;
}

p,
ul,
ol {
  color: var(--text-secondary);
}

strong {
  color: var(--text);
}

.badge {
  border: 1px solid rgba(194, 154, 97, 0.68);
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--brand-dark));
  box-shadow: 0 7px 18px rgba(89, 53, 61, 0.16);
}

.meta {
  color: var(--text-tertiary);
}

.tip-box,
.warning-box {
  border: 1px solid rgba(194, 154, 97, 0.28);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(72, 48, 36, 0.045);
}

.tip-box {
  border-left: 4px solid #6f846f;
  background: #edf2ed;
}

.warning-box {
  border-left: 4px solid var(--coral);
  background: #f8eee8;
}

.cta-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(194, 154, 97, 0.7);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-dark), var(--primary));
  box-shadow: var(--shadow-lg);
}

.cta-box::after {
  position: absolute;
  top: -105px;
  right: -75px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.035),
    0 0 0 56px rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

.cta-box p {
  position: relative;
  z-index: 1;
  color: #eadde1;
}

.cta-box a {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(194, 154, 97, 0.78);
  border-radius: 12px;
  color: var(--brand-dark);
  background: #fffaf1;
  box-shadow: 0 8px 20px rgba(31, 14, 22, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-box a:hover {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 12px 27px rgba(31, 14, 22, 0.25);
  transform: translateY(-2px);
}

.affiliate-note {
  padding: 13px 15px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  color: var(--text-secondary);
  background: #f5e9df;
}

.site-footer {
  max-width: 820px;
  color: #d1c3b9;
  background: #2f2521;
}

.site-footer a {
  color: #f7e8d3;
}

@media (max-width: 680px) {
  .site-header-inner {
    padding: 11px 15px;
  }

  .logo {
    font-size: 0.96rem;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }

  .back-link {
    padding: 7px 9px;
    font-size: 0.76rem;
  }

  article {
    padding: 32px 19px 54px;
    border-right: 0;
    border-left: 0;
  }

  h1 {
    font-size: clamp(1.9rem, 10vw, 2.55rem);
  }

  h3 {
    font-size: 1.25rem;
  }

  .cta-box {
    padding: 24px 18px;
  }

  .cta-box a {
    display: block;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
  }
}
