/* =============================================================
   LE MONDE DU CORTISOL — Feuille de style partagée
   Palette : #FFFCF8 · #001E3A · #A5BFDB · #F7EDDD · #FFEDA2 · #F5D2D6
   Font : Red Hat Display (Google Fonts)
   ============================================================= */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Red Hat Display', system-ui, -apple-system, sans-serif;
  background: #FFFCF8;
  color: #001E3A;
  line-height: 1.7;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 0; }

/* ===== LAYOUT ===== */
.container     { max-width: 860px;  margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }

/* ===== HEADER / NAV ===== */
.site-header {
  background: #FFFCF8;
  border-bottom: 1px solid #F0E8DA;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo { font-weight: 700; font-size: 20px; color: #001E3A; white-space: nowrap; flex-shrink: 0; }
.site-logo span { color: #A5BFDB; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #001E3A;
  white-space: nowrap;
}
.main-nav > a:hover { background: #F7EDDD; opacity: 1; }
.main-nav .nav-cta { background: #001E3A; color: #FFFCF8 !important; margin-left: 6px; }
.main-nav .nav-cta:hover { background: #0d3560; opacity: 1; }
.nav-search { background: none; border: none; cursor: pointer; padding: 8px; color: #001E3A; font-size: 18px; }

/* Dropdown */
.nav-item { position: relative; }
.nav-item:hover .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFCF8;
  border: 1px solid #F0E8DA;
  border-radius: 10px;
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 8px 32px rgba(0,30,58,.1);
  z-index: 200;
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: #001E3A;
}
.dropdown a:hover { background: #F7EDDD; opacity: 1; }
.dropdown-icon { font-size: 18px; flex-shrink: 0; }
.dropdown-meta { display: flex; flex-direction: column; }
.dropdown-title { font-weight: 600; }
.dropdown-count { font-size: 12px; opacity: .5; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #001E3A; margin: 5px 0; border-radius: 2px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: #F7EDDD; padding: 10px 24px; font-size: 13px; }
.breadcrumb ol { max-width: 1100px; margin: 0 auto; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.breadcrumb li + li::before { content: '›'; margin-right: 4px; opacity: .4; }
.breadcrumb a { opacity: .65; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb li:last-child { opacity: .5; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .7px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary   { background: #001E3A; color: #FFFCF8; border-color: #001E3A; }
.btn-primary:hover { background: #0d3560; opacity: 1; }
.btn-white     { background: #FFFCF8; color: #001E3A; border-color: #FFFCF8; }
.btn-white:hover { background: #F7EDDD; opacity: 1; }
.btn-outline   { background: transparent; color: #001E3A; border-color: #001E3A; }
.btn-outline:hover { background: #001E3A; color: #FFFCF8; opacity: 1; }
.btn-outline-white { background: transparent; color: #FFFCF8; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color: #FFFCF8; background: rgba(255,255,255,.08); opacity: 1; }
.btn-sm { padding: 8px 18px; font-size: 12px; }

/* ===== SECTION HEADERS ===== */
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #A5BFDB; margin-bottom: 10px; }
.section-title { font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: #001E3A; margin-bottom: 10px; line-height: 1.2; }
.section-sub   { font-size: 16px; opacity: .65; max-width: 520px; line-height: 1.6; }
.section-header { text-align: center; margin-bottom: 44px; }
.section-header .section-sub { margin: 0 auto; }
.section-divider { width: 48px; height: 4px; background: #A5BFDB; border-radius: 2px; margin-bottom: 20px; }

/* ===== HERO (pages internes) ===== */
.page-hero {
  background: linear-gradient(145deg, #001E3A 0%, #0d3560 100%);
  color: #FFFCF8;
  padding: 64px 24px 56px;
}
.page-hero__inner { max-width: 860px; margin: 0 auto; }
.page-hero__cat {
  display: inline-block;
  background: rgba(165,191,219,.2);
  color: #A5BFDB;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.page-hero h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.page-hero__meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.6); margin-top: 20px; }
.page-hero__meta span { display: flex; align-items: center; gap: 6px; }
.page-hero__excerpt { font-size: 17px; color: rgba(255,255,255,.8); max-width: 640px; margin-top: 12px; line-height: 1.65; }

/* ===== ARTICLE LAYOUT ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
  align-items: start;
}

/* Prose (article body) */
.prose { font-size: 16px; line-height: 1.8; color: #001E3A; }
.prose h2 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 700; margin: 44px 0 16px; color: #001E3A; line-height: 1.25; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; color: #001E3A; }
.prose h4 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.prose p { margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 16px 0 20px 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose a { text-decoration: underline; color: #001E3A; font-weight: 500; }
.prose a:hover { opacity: .7; }
.prose hr { border: none; border-top: 2px solid #F7EDDD; margin: 40px 0; }
.prose blockquote {
  border-left: 4px solid #A5BFDB;
  background: #F7EDDD;
  padding: 20px 24px;
  border-radius: 0 10px 10px 0;
  margin: 28px 0;
  font-style: italic;
  font-size: 17px;
}
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.prose table th { background: #001E3A; color: #FFFCF8; padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.prose table td { padding: 12px 16px; border-bottom: 1px solid #F7EDDD; }
.prose table tr:hover td { background: rgba(0,30,58,.03); }

/* Info boxes in prose */
.prose .info-box {
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.prose .info-box--blue  { background: #EBF3FB; border-left: 4px solid #A5BFDB; }
.prose .info-box--yellow { background: #FFFBEA; border-left: 4px solid #FFEDA2; }
.prose .info-box--green  { background: #f0fdf4; border-left: 4px solid #86efac; }
.prose .info-box--pink   { background: #fdf2f4; border-left: 4px solid #F5D2D6; }
.prose .info-box__icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.prose .info-box__content h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.prose .info-box__content p  { font-size: 14px; opacity: .85; margin: 0; }

/* Key figures */
.key-figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin: 28px 0; }
.key-figure { background: #001E3A; color: #FFFCF8; border-radius: 10px; padding: 20px; text-align: center; }
.key-figure .stat { font-size: 32px; font-weight: 700; color: #FFEDA2; line-height: 1; margin-bottom: 6px; }
.key-figure p { font-size: 13px; color: #A5BFDB; margin: 0; }

/* Table of contents */
.article-toc {
  background: #FFFCF8;
  border: 2px solid #A5BFDB;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 0 0 32px;
}
.article-toc h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; color: #001E3A; }
.article-toc ol { padding-left: 16px; }
.article-toc li { margin-bottom: 6px; font-size: 14px; }
.article-toc a { text-decoration: none; color: #001E3A; }
.article-toc a:hover { text-decoration: underline; opacity: 1; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: #FFFCF8; border: 2px solid #F0E8DA; border-radius: 14px; overflow: hidden; }
.sidebar-card--dark { background: #001E3A; border-color: #001E3A; color: #FFFCF8; }
.sidebar-card__header { padding: 16px 20px; font-weight: 700; font-size: 14px; border-bottom: 1px solid #F0E8DA; text-transform: uppercase; letter-spacing: .6px; font-size: 12px; }
.sidebar-card--dark .sidebar-card__header { border-color: rgba(255,255,255,.1); color: #A5BFDB; }
.sidebar-card__body { padding: 16px 20px; }

.sidebar-product { padding: 20px; text-align: center; }
.sidebar-product .label { display: inline-block; background: #FFEDA2; color: #001E3A; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; }
.sidebar-product .emoji { font-size: 48px; display: block; margin: 0 auto 10px; }
.sidebar-product .name { font-weight: 700; font-size: 15px; color: #FFFCF8; margin-bottom: 4px; }
.sidebar-product .brand { font-size: 12px; color: #A5BFDB; margin-bottom: 12px; }
.sidebar-product .stars { color: #FFEDA2; font-size: 16px; letter-spacing: 2px; }
.sidebar-product .price { font-size: 28px; font-weight: 700; color: #FFEDA2; margin: 12px 0 4px; }
.sidebar-product .price-label { font-size: 12px; color: #A5BFDB; margin-bottom: 16px; }
.sidebar-product .features { text-align: left; margin-bottom: 16px; }
.sidebar-product .features li { font-size: 13px; color: #FFFCF8; padding: 4px 0; padding-left: 16px; position: relative; list-style: none; }
.sidebar-product .features li::before { content: '✓'; position: absolute; left: 0; color: #FFEDA2; }

.sidebar-links li { padding: 6px 0; border-bottom: 1px solid #F0E8DA; list-style: none; font-size: 14px; }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { color: #001E3A; display: flex; justify-content: space-between; align-items: center; }
.sidebar-links a:hover { opacity: .7; }

/* ===== ARTICLE CARDS (blog listing) ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: #FFFCF8;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #F0E8DA;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #001E3A;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,30,58,.1); opacity: 1; }
.article-card__image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  overflow: hidden;
}
.img-1 { background: linear-gradient(135deg, #A5BFDB, #7aa3c8); }
.img-2 { background: linear-gradient(135deg, #FFEDA2, #f5d56b); }
.img-3 { background: linear-gradient(135deg, #F5D2D6, #e8a8b0); }
.img-4 { background: linear-gradient(135deg, #B8BFA5, #8f9878); }
.img-5 { background: linear-gradient(135deg, #A5BFDB, #001E3A); }
.img-6 { background: linear-gradient(135deg, #FFEDA2, #F7EDDD); }
.img-7 { background: linear-gradient(135deg, #001E3A, #1a4a7a); }
.img-8 { background: linear-gradient(135deg, #F5D2D6, #A5BFDB); }
.article-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,30,58,.8);
  color: #FFFCF8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.article-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; opacity: .55; margin-bottom: 10px; }
.article-card__title { font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; color: #001E3A; flex: 1; }
.article-card__excerpt { font-size: 14px; opacity: .7; line-height: 1.6; margin-bottom: 16px; }
.article-read-more { font-size: 13px; font-weight: 700; color: #001E3A; display: flex; align-items: center; gap: 4px; margin-top: auto; }

/* ===== CATEGORY HERO ===== */
.cat-hero {
  background: #F7EDDD;
  padding: 56px 24px;
  border-bottom: 1px solid #F0E8DA;
}
.cat-hero__inner { max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.cat-hero__icon { font-size: 64px; flex-shrink: 0; }
.cat-hero__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #A5BFDB; margin-bottom: 6px; }
.cat-hero h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 700; margin-bottom: 10px; }
.cat-hero p { font-size: 16px; opacity: .7; max-width: 540px; }
.cat-hero__count { margin-top: 12px; display: inline-block; background: #001E3A; color: #FFFCF8; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #F0E8DA;
}
.pagination a { color: #001E3A; }
.pagination a:hover { background: #F7EDDD; opacity: 1; }
.pagination .active { background: #001E3A; color: #FFFCF8; border-color: #001E3A; }

/* ===== CTA ARTICLE (inline product push) ===== */
.article-cta {
  background: #001E3A;
  color: #FFFCF8;
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.article-cta__emoji { font-size: 48px; flex-shrink: 0; }
.article-cta__content { flex: 1; }
.article-cta__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #A5BFDB; margin-bottom: 6px; }
.article-cta__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.article-cta__text { font-size: 14px; color: #A5BFDB; margin-bottom: 0; }
.article-cta__price { font-size: 28px; font-weight: 700; color: #FFEDA2; white-space: nowrap; }
.article-cta__price-label { font-size: 12px; color: #A5BFDB; }

/* ===== RELATED ARTICLES ===== */
.related-section { background: #F7EDDD; padding: 56px 24px; margin-top: 0; }
.related-section .section-title { font-size: 22px; margin-bottom: 28px; }

/* ===== STATIC PAGES ===== */
.static-hero { background: #F7EDDD; padding: 56px 24px; text-align: center; }
.static-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; margin-bottom: 12px; }
.static-hero p { font-size: 16px; opacity: .7; max-width: 520px; margin: 0 auto; }
.static-content { max-width: 720px; margin: 0 auto; padding: 56px 24px; }
.static-content h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.static-content h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.static-content p { margin-bottom: 16px; font-size: 15px; line-height: 1.75; }
.static-content ul { padding-left: 20px; margin-bottom: 16px; }
.static-content li { margin-bottom: 8px; font-size: 15px; }
.static-content a { text-decoration: underline; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.form-group label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #F0E8DA;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: #FFFCF8;
  color: #001E3A;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: #A5BFDB; }
.form-group textarea { resize: vertical; min-height: 140px; }

/* ===== FOOTER ===== */
footer {
  background: #001E3A;
  color: #A5BFDB;
  padding: 56px 24px 32px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { font-size: 20px; font-weight: 700; color: #FFFCF8; margin-bottom: 12px; }
.footer-brand .logo span { color: #A5BFDB; }
.footer-brand p { font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background .2s; }
.social-link:hover { background: rgba(255,255,255,.15); opacity: 1; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #FFFCF8; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: #A5BFDB; }
.footer-col a:hover { color: #FFFCF8; opacity: 1; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,.4); font-size: 13px; margin-left: 16px; }
.footer-bottom a:hover { color: #FFFCF8; opacity: 1; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0; }
.bg-beige { background: #F7EDDD; }
.bg-dark   { background: #001E3A; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 20px; }
  .article-cta { flex-direction: column; text-align: center; }
}
