/* HL Activ' — feuille de style principale */

:root {
  --red: #E24B4A;
  --red-dark: #A32D2D;
  --orange: #EF9F27;
  --gradient: linear-gradient(160deg, var(--orange), var(--red));
  --text-primary: #1F1F1F;
  --text-secondary: #5C5C5C;
  --text-tertiary: #8C8C8C;
  --bg-secondary: #F5F3F1;
  --bg-warning: #FDF1E7;
  --text-warning: #8A4A1F;
  --bg-danger: #FCE8E4;
  --border: #E7E3E0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; }
.brand-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--gradient);
  flex-shrink: 0;
}
.brand-name { font-weight: 600; font-size: 17px; color: var(--red-dark); white-space: nowrap; }

nav.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav.main-nav > .nav-item { position: relative; }
nav.main-nav a, nav.main-nav .nav-label {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  cursor: pointer;
}
nav.main-nav a:hover, nav.main-nav .nav-label:hover { color: var(--red); background: var(--bg-secondary); }
nav.main-nav a.active { color: var(--red); font-weight: 600; }

.nav-item.has-sub .submenu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 6px;
  min-width: 210px;
  z-index: 50;
}
.nav-item.has-sub:hover .submenu,
.nav-item.has-sub.open .submenu { display: flex; }
.submenu a {
  display: block;
  width: 100%;
  white-space: nowrap;
  box-sizing: border-box;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 34px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Buttons */
.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border);
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--red); color: #fff; border-color: transparent; }
.btn-primary:hover { background: var(--red-dark); }
.btn:hover { border-color: var(--red); }
.btn-block { display: block; width: 100%; }

/* Layout helpers */
main { display: block; }
.section { padding: 44px 0; }
.section-tight { padding: 24px 0; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.article-narrow { max-width: 700px; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

h1 { font-size: 28px; font-weight: 600; line-height: 1.3; margin: 0 0 16px; }
h2 { font-size: 22px; font-weight: 600; line-height: 1.35; margin: 0 0 14px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
p { color: var(--text-secondary); margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.card-soft {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.card-warning {
  background: var(--bg-warning);
  color: var(--text-warning);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  font-size: 13px;
  line-height: 1.7;
}
.card-danger {
  background: var(--bg-danger);
  color: var(--red-dark);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  font-size: 13px;
  line-height: 1.7;
}

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.photo-box { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-secondary); }
.photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

.price { font-size: 18px; font-weight: 600; color: var(--red); }
.price small { font-size: 12px; color: var(--text-secondary); font-weight: 400; }

.tag {
  display: inline-block;
  background: var(--bg-secondary);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Blog list */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
.post-card .thumb { height: 130px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-secondary); margin-bottom: 10px; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .cat { font-size: 10px; color: var(--red); font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.post-card .title { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 5px; }
.post-card .meta { font-size: 11px; color: var(--text-tertiary); }
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-pill { border: 0.5px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 12px; color: var(--text-secondary); }
.cat-pill.active { background: var(--red); color: #fff; border-color: transparent; }

/* Article */
.article-header .meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 24px; }
.article-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; background: var(--bg-secondary); }
.article-hero img { width: 100%; display: block; }
.toc { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 18px 22px; margin-bottom: 28px; }
.toc-title { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.toc a { display: block; font-size: 12px; color: var(--red); line-height: 2; }
.article-body h2 { font-size: 18px; margin-top: 30px; }
.article-body h3 { font-size: 15px; margin-top: 22px; }
.article-body p, .article-body li { font-size: 14px; color: var(--text-secondary); line-height: 1.85; }
.article-body ul, .article-body ol { padding-left: 20px; margin: 0 0 14px; }
.article-body figure { margin: 22px 0; }
.article-body figure img { border-radius: var(--radius-lg); width: 100%; }
.article-body figcaption { font-size: 12px; color: var(--text-tertiary); margin-top: 8px; font-style: italic; }
.article-body a { color: var(--red); text-decoration: underline; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-lg); margin: 22px 0; background: var(--bg-secondary); }
.video-embed iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; border-radius: var(--radius-lg); }
.related-box { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 20px 24px; margin: 28px 0; }
.related-box .label { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.related-box a { display: block; font-size: 12px; color: var(--red); line-height: 2; }
.tags-row { display:flex; gap:8px; flex-wrap:wrap; margin: 18px 0; }
.similar-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 14px; }
.similar-grid .thumb { height: 70px; border-radius: var(--radius-sm); background: var(--bg-secondary); margin-bottom: 6px; overflow:hidden; }
.similar-grid .thumb img { width:100%; height:100%; object-fit:cover; }
.similar-grid .t { font-size: 11px; font-weight: 600; }

/* Form */
.form-card { max-width: 480px; margin: 0 auto; background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 28px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%;
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
}
.form-field textarea { min-height: 90px; resize: vertical; }
.radio-row { display: flex; gap: 20px; font-size: 13px; color: var(--text-secondary); }
.radio-row label { display: flex; align-items: center; gap: 6px; }

/* Homepage hero */
.hero-block { display:grid; grid-template-columns: 1.05fr 0.95fr; gap:40px; align-items:center; margin:44px 0 56px; }
.hero-copy .eyebrow { display:flex; align-items:center; gap:8px; }
.hero-copy .eyebrow::before { content:""; width:20px; height:2px; background:var(--red); display:inline-block; }
.hero-copy h1 { font-size:34px; line-height:1.2; margin-bottom:18px; }
.hero-copy h1 .accent-line { display:block; color:var(--red); }
.hero-copy p { font-size:14.5px; }
.hero-ctas { display:flex; gap:12px; margin-top:24px; flex-wrap:wrap; }
.hero-image-wrap { position:relative; }
.hero-image-wrap::before {
  content:"";
  position:absolute;
  top:-16px; right:-16px;
  width:70%; height:70%;
  background: var(--gradient);
  border-radius: 24px;
  z-index:0;
}
.hero-image-wrap .photo-box { position:relative; z-index:1; height:360px; box-shadow: 0 18px 40px rgba(0,0,0,0.12); }
.hero-badge {
  position:relative; z-index:2;
  margin-top:-38px; margin-left:24px;
  display:inline-flex; align-items:center; gap:10px;
  background:#fff; border-radius:14px; padding:12px 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
  max-width:78%;
}
.hero-badge .dot { width:34px; height:34px; border-radius:10px; background:var(--gradient); flex-shrink:0; }
.hero-badge .txt { font-size:12px; color:var(--text-secondary); line-height:1.4; }
.hero-badge .txt strong { display:block; font-size:13px; color:var(--text-primary); }

@media (max-width: 860px) {
  .hero-block { grid-template-columns: 1fr; margin:28px 0 40px; }
  .hero-copy h1 { font-size:26px; }
  .hero-image-wrap .photo-box { height:280px; }
}

/* Footer */
footer.site-footer {
  background: #24211F;
  color: #D8D3CF;
  margin-top: 60px;
  padding: 44px 0 28px;
}
footer.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}
footer.site-footer img.footer-logo { height: 46px; margin-bottom: 12px; }
footer.site-footer h4 { color: #fff; font-size: 13px; margin: 0 0 10px; }
footer.site-footer p, footer.site-footer a { font-size: 12.5px; color: #B9B4B0; line-height: 1.9; }
footer.site-footer a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; margin-top: 10px; }
.social-row a {
  width: 32px; height: 32px; border-radius: 50%;
  background: #34302D; display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.footer-bottom {
  max-width: var(--max-width); margin: 30px auto 0; padding: 18px 24px 0 24px;
  border-top: 0.5px solid #3A3532; font-size: 11.5px; color: #8A857F;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #1B1918; color: #EDEAE7;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px;
}
.cookie-banner a { text-decoration: underline; color: #fff; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions button {
  font-size: 12px; padding: 8px 16px; border-radius: var(--radius-sm); border: none; cursor: pointer;
}
.cookie-accept { background: var(--red); color: #fff; }
.cookie-refuse { background: #34302D; color: #fff; }

/* Responsive */
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2,1fr); }
  .similar-grid { grid-template-columns: 1fr; }
  footer.site-footer .wrap { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 0.5px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav .nav-item { width: 100%; }
  nav.main-nav a, nav.main-nav .nav-label { display: block; padding: 10px 6px; }
  .nav-item.has-sub .submenu {
    display: flex;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 14px;
    min-width: 0;
  }
  .nav-toggle { display: flex; }
}
@media (min-width: 861px) {
  nav.main-nav { display: flex !important; }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
}
