/* ══════════════════════════════════════════════════════════════
   FEMMES COSMÉTIQUES — Design éditorial organique
   Inspiration boho naturelle — Zéro framework
   ══════════════════════════════════════════════════════════════ */

/* Fonts système — pas de requête externe Google Fonts */
@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  src: local('Cormorant Garamond'), local('CormorantGaramond-Regular');
}
@font-face {
  font-family: 'Satisfy';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: local('Satisfy'), local('Satisfy-Regular');
}

:root {
  --noir: #2c2420;
  --titre: #2c2420;
  --texte: #4a3f38;
  --leger: #706560;
  --border: #e8e0d8;
  --fond-creme: #f8f4ef;
  --fond-sable: #f1ebe3;
  --blanc: #fff;
  --terracotta: #9e5540;
  --terracotta-hover: #7d3f2e;
  --terracotta-pale: #f5ece6;
  --sage: #8fa88a;
  --sage-pale: #eef3ec;
  --rose-nude: #d4a99a;
  --rose-nude-pale: #f7eeeb;
  --max: 1340px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--texte);
  background: var(--fond-creme);
  line-height: 1.8;
  font-weight: 400;
}

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

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--terracotta-hover); }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--titre);
  font-weight: 600;
  line-height: 1.3;
}

p { font-size: 0.95rem; margin-bottom: 1.2em; }

/* Police script pour accents */
.script {
  font-family: 'Satisfy', cursive;
  color: var(--terracotta);
  font-weight: 400;
}

/* ══ HEADER ══ */
.site-header {
  background: var(--blanc);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 160px;
}

.logo img { height: 140px; width: auto; }

.main-nav { display: flex; gap: 0.2rem; }

.main-nav a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--texte);
  padding: 0.4rem 0.8rem;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--terracotta); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--noir);
  margin: 5px 0;
}

/* ══ HERO ══ */
.hero-wrapper {
  background: var(--terracotta-pale);
  position: relative;
  overflow: hidden;
}

/* Photo de fond en opacité */
.hero-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/img/hero-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
}

/* Ligne décorative ondulée en bas à droite */
.hero-wrapper::after {
  content: '';
  position: absolute;
  bottom: 30px;
  right: 60px;
  width: 120px;
  height: 40px;
  border-bottom: 2px solid var(--rose-nude);
  border-radius: 0 0 60% 40%;
  opacity: 0.4;
  z-index: 1;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: 420px;
}

.hero-img {
  flex: 0 0 38%;
  position: relative;
  align-self: stretch;
  margin: -1rem 0;
}

/* Photo en arche — arrondie en haut, droite en bas */
.hero-img img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 200px 200px 6px 6px;
}

.hero-text { flex: 1; }

.hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: var(--terracotta-hover);
}

.hero-text .hero-sub {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--leger);
  margin-bottom: 1.2rem;
}

.hero-text p {
  font-size: 0.95rem;
  color: var(--texte);
  max-width: 420px;
  margin-bottom: 0;
  line-height: 1.8;
}

/* ══ SÉPARATEUR ORGANIQUE ══ */
.organic-sep {
  display: block;
  width: 100%;
  height: 50px;
}

/* ══ CONTENEUR ══ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ══ SECTIONS ALTERNÉES ══ */
.section-blanc { background: var(--blanc); }
.section-creme { background: var(--fond-creme); }
.section-sable { background: var(--fond-sable); }

.section-padded { padding: 3.5rem 0; }

/* ══ PRÉSENTATION BLOG ══ */
.blog-intro {
  max-width: 660px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  text-align: center;
}

.blog-intro p {
  font-size: 0.95rem;
  line-height: 1.85;
}

/* ══ CATÉGORIE GRANDE (photo + texte) ══ */
.cat-large {
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}

.cat-large.reverse { flex-direction: row-reverse; }

.cat-large-img {
  flex: 0 0 48%;
  position: relative;
}

/* Image avec arche / forme organique */
.cat-large-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 200px 200px 6px 6px;
}

/* Petit élément décoratif */
.cat-large-img::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 80px;
  height: 80px;
  border: 2px solid var(--sage);
  border-radius: 50%;
  opacity: 0.25;
  z-index: -1;
}

.cat-large-content { flex: 1; }

.cat-large-content h2 {
  font-size: 1.6rem;
  margin: 0 0 0.8rem;
}

.cat-large-content p {
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.cat-large-content a, .cat-duo-item a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ══ MASCOTTES — ronds imparfaits ══ */

/* Rond imparfait commun à toutes les mascottes */
.mascotte-blob {
  display: inline-block;
  position: relative;
}

.mascotte-blob::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: var(--terracotta-pale);
  border-radius: 58% 42% 55% 45% / 48% 62% 38% 52%;
  z-index: 0;
}

.mascotte-blob img {
  position: relative;
  z-index: 1;
}

/* Hero — mascotte grande à droite */
.hero-mascotte {
  flex: 0 0 300px;
  text-align: center;
  align-self: flex-end;
}

.hero-mascotte .mascotte-blob::before {
  background: rgba(255,255,255,0.3);
  border-radius: 52% 48% 60% 40% / 45% 55% 45% 55%;
}

.hero-mascotte img {
  width: 280px;
  height: auto;
}

/* Mascotte à côté du texte */
.cat-mascotte {
  flex: 0 0 200px;
  align-self: flex-end;
  text-align: center;
}

.cat-mascotte img {
  width: 200px;
  height: auto;
}

/* Mascottes inline dans le texte */
.mascotte-inline {
  flex-shrink: 0;
}

.mascotte-inline .mascotte-blob::before {
  border-radius: 48% 52% 42% 58% / 55% 45% 55% 45%;
}

/* ══ DEUX CATÉGORIES CÔTE À CÔTE ══ */
.cat-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.cat-duo-item { }

/* Zone visuelle : photo au-dessus, mascotte à côté du texte */
.cat-duo-visual {
  margin-bottom: 1.2rem;
}

.cat-duo-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 6px 6px 100px 6px;
}

.cat-duo-item:nth-child(2) .cat-duo-photo {
  border-radius: 6px 6px 6px 100px;
}

.cat-duo-mascotte { display: none; }

/* Ancien bloc mascotte row — supprimé */

.cat-duo-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.cat-duo-item p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ══ RESPIRATION PHOTO ══ */
.breathe {
  padding: 2.5rem 0;
  text-align: center;
}

.breathe img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
}

.breathe p {
  margin-top: 1.2rem;
  font-family: 'Satisfy', cursive;
  font-size: 1.3rem;
  color: var(--titre);
}

/* ══ ZONE À PROPOS — 3 colonnes ══ */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0;
}

.about-portrait img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 4px;
}

.about-content {
  text-align: center;
}

.about-content h2 {
  font-size: 1.6rem;
  margin: 0 0 0.3rem;
  font-style: italic;
}

.about-sub {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--texte);
  margin-bottom: 1.2rem !important;
}

.about-content p {
  font-size: 0.93rem;
  line-height: 1.8;
}

.about-ambiance img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 4px;
}

/* ══ GRILLE ARTICLES ══ */
.articles-section { padding: 3rem 0 4rem; }

.articles-section h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

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

.article-card {
  text-decoration: none;
  display: block;
}

.article-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  transition: opacity 0.2s;
}

.article-card:hover img { opacity: 0.85; }

.article-card-cat {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 0.25rem;
}

.article-card h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--titre);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.article-card:hover h3 { color: var(--terracotta); }

.article-card-date {
  font-size: 0.72rem;
  color: var(--leger);
}

.load-more {
  display: block;
  margin: 2.5rem auto 0;
  padding: 0.65rem 1.8rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--texte);
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.load-more:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ══ ARTICLE PAGE ══ */
.breadcrumb {
  font-size: 0.75rem;
  color: var(--leger);
  padding: 1rem 0;
  max-width: var(--max);
  margin: 0 auto;
}

.breadcrumb a { color: var(--leger); }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb span { margin: 0 0.3rem; }

.article-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
}

.article-meta {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 600;
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

.article-header h1 { margin-bottom: 0.6rem; }

.article-date {
  font-size: 0.78rem;
  color: var(--leger);
}

.article-featured-img {
  max-width: var(--max);
  margin: 1.5rem auto 2.5rem;
}

.article-featured-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
}

/* Layout article + sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

.article-content {
  min-width: 0;
  padding: 0 0 3rem;
}

/* ══ SIDEBAR ══ */
.article-sidebar {
  padding-top: 1rem;
}

.sidebar-mascotte {
  text-align: center;
  margin-bottom: 2rem;
}

.sidebar-mascotte .mascotte-blob::before {
  border-radius: 50% 50% 48% 52% / 52% 48% 52% 48%;
}

.sidebar-mascotte img {
  width: 140px;
  height: auto;
}

.sidebar-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--titre);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-articles {
  list-style: none;
  padding: 0;
}

.sidebar-articles li {
  margin-bottom: 1rem;
}

.sidebar-articles a {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
}

.sidebar-articles img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 3px;
}

.sidebar-articles span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--titre);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-articles a:hover span {
  color: var(--terracotta);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
  }
}

.article-content p { font-size: 1rem; line-height: 1.85; color: var(--noir); }
.article-content strong { color: var(--noir); }

.article-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  color: var(--noir);
  border-bottom: 2px solid var(--terracotta-pale);
}

.article-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--noir);
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--noir);
}

.article-content li { margin-bottom: 0.4rem; }

/* Contraindre TOUT le contenu dans le conteneur */
.article-content > * {
  max-width: 100%;
  overflow-x: auto;
}

.article-content div[style] {
  max-width: 100% !important;
  box-sizing: border-box;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  display: block;
  overflow-x: auto;
}

.article-content th {
  background: var(--terracotta-pale);
  color: var(--titre);
  font-weight: 600;
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.8rem;
}

.article-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
}

.article-content tr:nth-child(even) td { background: var(--fond-creme); }

.article-content blockquote {
  border-left: 2px solid var(--terracotta);
  padding: 0.8rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--leger);
}

.article-content a { color: var(--terracotta); border-bottom: 1px solid var(--border); }
.article-content a:hover { border-bottom-color: var(--terracotta); }
.article-content img { border-radius: 4px; margin: 1.5rem 0; }

/* ══ AUTEUR ══ */
.author-box {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin: 2rem auto;
  max-width: var(--max);
}

.author-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box-text h4 { font-size: 0.9rem; margin-bottom: 0.15rem; }
.author-box-text p { font-size: 0.8rem; color: var(--leger); margin: 0; }

/* ══ ARTICLES LIÉS ══ */
.related-posts {
  max-width: var(--max);
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.related-posts h3 { font-size: 1.1rem; margin-bottom: 1rem; }

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

.related-card { text-decoration: none; display: block; }

.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.related-card-cat {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 0.2rem;
}

.related-card h4 {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--titre);
  margin: 0;
  line-height: 1.4;
}

.related-card:hover h4 { color: var(--terracotta); }

/* Blocs visuels dans l'article — contraints */
.article-content div[style*="display:grid"],
.article-content div[style*="display: grid"] {
  max-width: 100% !important;
}

.article-content div[style*="grid-template-columns"] {
  grid-template-columns: 1fr 1fr !important;
}

@media (max-width: 768px) {
  .article-content div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* ══ PAGE CATÉGORIE ══ */
.category-header {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 0 3rem;
}

.category-header-text { flex: 1; }

.category-header-text h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.category-header-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 560px;
}

.category-header-mascotte {
  flex-shrink: 0;
}

/* ══ PAGES STATIQUES ══ */
.page-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.page-content h1 { margin-bottom: 2rem; }

.sitemap-list {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}

.sitemap-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  break-inside: avoid;
}

.sitemap-list a { font-size: 0.88rem; color: var(--texte); }
.sitemap-list a:hover { color: var(--terracotta); }

/* ══ FOOTER ══ */
.site-footer {
  background: var(--noir);
  color: rgba(255,255,255,0.45);
  padding: 2.5rem 2rem 1.5rem;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .footer-logo {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.footer-brand p {
  font-size: 0.8rem;
  margin-top: 0.6rem;
  color: rgba(255,255,255,0.65);
  max-width: 260px;
}

.footer-col h4, .footer-col .footer-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.8rem;
}

.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  padding: 0.2rem 0;
}

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

.footer-bottom {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 2.5rem 2rem; gap: 2rem; }
  .hero-img { flex: none; width: 80%; margin: 0 auto; }
  .hero-img img { height: 300px; }
  .hero-wrapper::before { width: 250px; height: 250px; top: -40px; right: -60px; }

  .cat-large, .cat-large.reverse { flex-direction: column; gap: 1.5rem; }
  .cat-large-img { flex: none; }
  .cat-large-img img { height: 280px; border-radius: 120px 120px 6px 6px; }

  .cat-duo { grid-template-columns: 1fr; gap: 2.5rem; }
  .cat-duo-photo { height: 220px; }
  .cat-mascotte { display: none; }
  .cat-duo-mascotte { width: 100px !important; bottom: -15px; }

  .articles-grid { grid-template-columns: repeat(2, 1fr); }

  .about-section { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .about-portrait img, .about-ambiance img { height: 260px; }
  .about-ambiance { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .articles-grid { grid-template-columns: 1fr; gap: 1.2rem; }

  .main-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--blanc);
    flex-direction: column;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 0; }
  .nav-toggle { display: block; }

  .hero-img img { height: 240px; }
  .hero-wrapper::before { display: none; }
}
