/* ============================================
   GUIDE COLORATION CHEVEUX — Magazine Theme
   Palette : rose poudré, blanc cassé, noir doux, doré
   Fonts  : Playfair Display + Lato
   ============================================ */

:root {
  --rose: #f9a8d4;
  --rose-light: #fdf2f8;
  --rose-medium: #f472b6;
  --rose-dark: #ec4899;
  --noir: #1c1917;
  --noir-soft: #44403c;
  --dore: #d4a574;
  --dore-light: #e8c9a0;
  --blanc: #fffbf7;
  --gris: #78716c;
  --gris-light: #f5f5f4;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1200px;
  --narrow: 720px;
  --gap: 2rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--noir);
  background: var(--blanc);
  line-height: 1.7;
  font-weight: 300;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--noir); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--rose-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); }
.container-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 var(--gap); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--blanc);
  border-bottom: 1px solid rgba(244, 114, 182, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 251, 247, 0.95);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.2rem var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--noir);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rose-medium);
  font-weight: 400;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--noir);
  position: absolute;
  left: 0;
  transition: 0.3s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--noir-soft);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--rose-medium);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--rose-dark); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(160deg, var(--rose-light) 0%, #fff5f9 50%, var(--blanc) 100%);
  padding: 6rem var(--gap) 5rem;
  text-align: center;
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rose-medium);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--noir);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  color: var(--rose-dark);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--noir-soft);
  max-width: 550px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 4rem 0;
}

.section:nth-child(even) {
  background: var(--rose-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-intro {
  text-align: center;
  color: var(--gris);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================
   CARDS / ARTICLES GRID
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.featured-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(244, 114, 182, 0.12);
}

.card-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose-dark);
  font-weight: 700;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0.5rem 0;
  line-height: 1.3;
  font-weight: 600;
}

.card-body h3 a {
  color: var(--noir);
  transition: color 0.2s;
}

.card-body h3 a:hover { color: var(--rose-dark); }

.card-body p {
  color: var(--gris);
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose-dark);
  font-weight: 700;
  transition: color 0.2s;
}

.read-more:hover { color: var(--dore); }

/* ============================================
   GAMMES GRID
   ============================================ */
.gammes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gamme-card {
  display: block;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  padding: 2rem 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  border: 1px solid rgba(244, 114, 182, 0.1);
}

.gamme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(244, 114, 182, 0.12);
}

.gamme-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.gamme-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.gamme-brand {
  font-size: 0.78rem;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   ARTICLE SINGLE
   ============================================ */
.article-header {
  padding: 4rem 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--rose-light) 0%, var(--blanc) 100%);
}

.article-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rose-dark);
  font-weight: 700;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.2;
  margin: 0.8rem 0;
  font-weight: 700;
}

.article-lead {
  font-size: 1.2rem;
  color: var(--noir-soft);
  font-weight: 300;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.article-meta {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-hero {
  max-width: 960px;
  margin: 0 auto 3rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Article content typography */
.article-content {
  padding-bottom: 4rem;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 3rem 0 1rem;
  font-weight: 600;
  color: var(--noir);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2.5rem 0 0.8rem;
  font-weight: 600;
}

.article-content p {
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  padding-right: 0.5rem;
  color: var(--rose-dark);
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  margin: 1.2rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.article-content blockquote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--rose-dark);
  border-left: 3px solid var(--rose);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: var(--rose-light);
  border-radius: 0 12px 12px 0;
  line-height: 1.5;
}

.article-content a {
  color: var(--rose-dark);
  border-bottom: 1px solid var(--rose);
  transition: border-color 0.2s, color 0.2s;
}

.article-content a:hover {
  color: var(--dore);
  border-color: var(--dore);
}

.article-content strong {
  font-weight: 700;
  color: var(--noir);
}

.article-content img {
  border-radius: 12px;
  margin: 2rem auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Article products sidebar */
.article-products {
  background: var(--rose-light);
  padding: 2rem 0;
  margin: 2rem 0;
  border-radius: 16px;
}

.article-products h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.product-mention {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(244,114,182,0.15);
  font-size: 0.95rem;
}

.product-mention:last-child { border-bottom: none; }

.product-price {
  color: var(--rose-dark);
  font-weight: 700;
}

.product-mention a {
  color: var(--dore);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-left: 0.5rem;
}

/* Article nav */
.article-nav {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0 4rem;
  border-top: 1px solid rgba(244,114,182,0.15);
  margin-top: 2rem;
}

.article-nav a {
  font-size: 0.85rem;
  color: var(--gris);
  transition: color 0.2s;
  max-width: 45%;
}

.article-nav a:hover { color: var(--rose-dark); }

/* ============================================
   LIST HEADER
   ============================================ */
.list-header {
  background: linear-gradient(160deg, var(--rose-light) 0%, var(--blanc) 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}

.list-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
}

.list-intro {
  color: var(--gris);
  font-size: 1.1rem;
  margin-top: 0.8rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter { padding: 5rem 0; }

.newsletter-box {
  background: linear-gradient(135deg, var(--rose-light) 0%, #fff0f6 100%);
  border-radius: 24px;
  padding: 3.5rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 30px rgba(244,114,182,0.1);
}

.newsletter-box h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.newsletter-box p {
  color: var(--gris);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.8rem;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--rose);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: white;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--rose-dark);
  box-shadow: 0 0 0 3px rgba(244,114,182,0.15);
}

.newsletter-form button {
  background: var(--rose-dark);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--dore); }

.newsletter-thanks {
  color: var(--rose-dark);
  font-weight: 700;
  margin-top: 1rem;
}

/* ============================================
   BUTTON
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 2px solid var(--noir);
  border-radius: 50px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  transition: all 0.3s;
  color: var(--noir);
}

.btn:hover {
  background: var(--noir);
  color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--noir);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: white;
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.8rem;
  margin: 0.3rem 0 1.5rem;
  color: rgba(255,255,255,0.4);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--rose); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .articles-grid,
  .featured-grid,
  .gammes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    flex-direction: column;
    padding: 1.5rem var(--gap);
    gap: 1rem;
    border-bottom: 1px solid rgba(244,114,182,0.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  }

  .nav-links.open { display: flex; }

  .articles-grid,
  .featured-grid,
  .gammes-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 4rem var(--gap) 3rem; }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-box { padding: 2.5rem 1.5rem; }

  .article-header h1 { font-size: 1.8rem; }

  .article-content p:first-of-type::first-letter {
    font-size: 2.8rem;
  }

  .related-grid { grid-template-columns: 1fr; }
}

/* ============================================
   RELATED ARTICLES
   ============================================ */

.related-articles {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e7e5e4;
}

.related-articles h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--noir);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-card {
  text-decoration: none;
  color: var(--noir);
  border-radius: 12px;
  overflow: hidden;
  background: var(--gris-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  line-height: 1.4;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.article-faq {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--gris-light);
  border-radius: 12px;
}

.article-faq h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--noir);
}

.faq-list dt {
  font-weight: 700;
  font-size: 1rem;
  color: var(--noir);
  margin-top: 1.2rem;
  padding-bottom: 0.3rem;
}

.faq-list dt::before {
  content: "Q. ";
  color: var(--rose-dark);
}

.faq-list dd {
  color: var(--noir-soft);
  line-height: 1.7;
  margin-left: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e7e5e4;
}

/* ============================================
   GAMME CTA
   ============================================ */

.gamme-cta {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, var(--rose-light), #fff5f0);
  border-radius: 10px;
  border-left: 4px solid var(--rose-dark);
}

.gamme-cta p {
  margin: 0;
  color: var(--noir-soft);
  font-size: 0.95rem;
}

.gamme-cta a {
  color: var(--rose-dark);
  font-weight: 600;
}

/* ============================================
   ARTICLE AUTHOR META
   ============================================ */

.article-author {
  display: none;
}
