/* ==========================================================================
   texte-de-naissance.fr — "Soft & Tender"
   Style doux et emotionnel — Rose poudre + Bleu ciel
   ========================================================================== */

:root {
  --texted-rose: #E8B4B8;
  --texted-rose-light: #F5D5D8;
  --texted-rose-dark: #C9969A;
  --texted-rose-bg: #FDF5F6;
  --texted-blue: #A8D8EA;
  --texted-blue-light: #D0ECFA;
  --texted-blue-dark: #7ABFD4;
  --texted-white: #FFFFFF;
  --texted-gray: #6B7280;
  --texted-gray-light: #9CA3AF;
  --texted-text: #374151;
  --texted-text-dark: #1F2937;
  --texted-shadow-rose: 0 8px 30px rgba(232, 180, 184, 0.25);
  --texted-shadow-hover: 0 16px 48px rgba(232, 180, 184, 0.35);
  --texted-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --texted-max-width: 1200px;
  --texted-radius: 24px;
  --texted-radius-sm: 16px;
}

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

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--texted-text);
  background: var(--texted-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--texted-transition);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--texted-text-dark);
}

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

/* ---- Header ---- */
.texted-header {
  background: var(--texted-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 20px rgba(232, 180, 184, 0.1);
}

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

.texted-header__brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--texted-rose-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.texted-header__star {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--texted-rose);
  border-radius: 50%;
  position: relative;
}

.texted-header__star::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--texted-rose-light);
  border-radius: 50%;
  animation: texted-pulse 2s ease-in-out infinite;
}

.texted-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.texted-header__nav a {
  color: var(--texted-gray);
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--texted-transition);
}

.texted-header__nav a:hover {
  color: var(--texted-rose-dark);
}

.texted-header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--texted-rose);
  border-radius: 2px;
  transition: width var(--texted-transition);
}

.texted-header__nav a:hover::after {
  width: 100%;
}

.texted-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.texted-header__hamburger span {
  width: 22px;
  height: 2px;
  background: var(--texted-rose);
  border-radius: 2px;
  transition: var(--texted-transition);
}

/* ---- Hero ---- */
.texted-hero {
  background: linear-gradient(135deg, var(--texted-rose-bg) 0%, var(--texted-blue-light) 50%, var(--texted-rose-bg) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.texted-hero__deco {
  position: absolute;
  font-size: 4rem;
  opacity: 0.08;
  pointer-events: none;
}

.texted-hero__deco--1 { top: 15%; left: 8%; transform: rotate(-15deg); }
.texted-hero__deco--2 { top: 25%; right: 10%; transform: rotate(20deg); }
.texted-hero__deco--3 { bottom: 15%; left: 15%; transform: rotate(-10deg); }
.texted-hero__deco--4 { bottom: 20%; right: 12%; transform: rotate(15deg); }

.texted-hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--texted-text-dark);
  margin-bottom: 1rem;
  animation: texted-fadeUp 0.8s ease both;
}

.texted-hero__title span {
  color: var(--texted-rose-dark);
}

.texted-hero__subtitle {
  font-size: 1.1rem;
  color: var(--texted-gray);
  max-width: 550px;
  margin: 0 auto 2rem;
  font-weight: 400;
  animation: texted-fadeUp 0.8s ease 0.15s both;
}

.texted-hero__hearts {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  animation: texted-fadeUp 0.8s ease 0.3s both;
}

.texted-hero__heart {
  width: 12px;
  height: 12px;
  background: var(--texted-rose);
  border-radius: 50%;
  opacity: 0.5;
}

.texted-hero__heart:nth-child(2) {
  width: 8px;
  height: 8px;
  background: var(--texted-blue);
  opacity: 0.4;
}

/* ---- Inspirations Section ---- */
.texted-inspirations {
  padding: 5rem 2rem;
  max-width: var(--texted-max-width);
  margin: 0 auto;
}

.texted-inspirations__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.texted-inspirations__subtitle {
  text-align: center;
  color: var(--texted-gray);
  margin-bottom: 3rem;
  font-size: 1rem;
}

.texted-inspirations__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.texted-inspi-card {
  background: var(--texted-white);
  border-radius: var(--texted-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--texted-shadow-rose);
  border: 1px solid var(--texted-rose-light);
  transition: transform var(--texted-transition), box-shadow var(--texted-transition);
}

.texted-inspi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--texted-shadow-hover);
}

.texted-inspi-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.texted-inspi-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--texted-text-dark);
}

.texted-inspi-card__desc {
  font-size: 0.92rem;
  color: var(--texted-gray);
  line-height: 1.7;
}

/* ---- Banner ---- */
.texted-banner {
  background: var(--texted-blue-light);
  padding: 3rem 2rem;
  text-align: center;
}

.texted-banner__text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--texted-text-dark);
  max-width: 600px;
  margin: 0 auto;
}

.texted-banner__text span {
  color: var(--texted-rose-dark);
}

/* ---- Articles Section ---- */
.texted-articles {
  padding: 5rem 2rem;
  max-width: var(--texted-max-width);
  margin: 0 auto;
}

.texted-articles__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.texted-articles__grid {
  columns: 2;
  column-gap: 2rem;
}

/* ---- Card ---- */
.texted-card {
  background: var(--texted-white);
  border-radius: var(--texted-radius);
  overflow: hidden;
  box-shadow: var(--texted-shadow-rose);
  border: 1px solid var(--texted-rose-light);
  transition: transform var(--texted-transition), box-shadow var(--texted-transition);
  break-inside: avoid;
  margin-bottom: 2rem;
}

.texted-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--texted-shadow-hover);
}

.texted-card__image-wrap {
  overflow: hidden;
  border-radius: var(--texted-radius) var(--texted-radius) 0 0;
  aspect-ratio: 16 / 10;
  background: var(--texted-rose-bg);
}

.texted-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.texted-card:hover .texted-card__image-wrap img {
  transform: scale(1.05);
}

.texted-card__body {
  padding: 1.75rem;
}

.texted-card__date {
  font-size: 0.78rem;
  color: var(--texted-gray-light);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.texted-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--texted-text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.texted-card__title a:hover {
  color: var(--texted-rose-dark);
}

.texted-card__excerpt {
  font-size: 0.92rem;
  color: var(--texted-gray);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.texted-card__link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--texted-rose-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--texted-transition), color var(--texted-transition);
}

.texted-card__link:hover {
  color: var(--texted-rose);
  gap: 0.8rem;
}

.texted-card__link::after {
  content: '\2192';
}

/* ---- Single Article ---- */
.texted-single {
  max-width: 740px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.texted-single__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--texted-rose-dark);
  font-weight: 700;
  margin-bottom: 2rem;
  transition: gap var(--texted-transition);
}

.texted-single__back:hover {
  gap: 0.7rem;
}

.texted-single__back::before {
  content: '\2190';
}

.texted-single__meta {
  font-size: 0.82rem;
  color: var(--texted-gray-light);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.texted-single__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--texted-text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.texted-single__hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--texted-radius);
  margin-bottom: 2.5rem;
}

.texted-single__content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--texted-text);
}

.texted-single__content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--texted-text-dark);
}

.texted-single__content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.texted-single__content p {
  margin-bottom: 1.25rem;
}

.texted-single__content a {
  color: var(--texted-rose-dark);
  border-bottom: 1px solid var(--texted-rose-light);
  transition: border-color var(--texted-transition);
}

.texted-single__content a:hover {
  border-color: var(--texted-rose-dark);
}

.texted-single__content blockquote {
  border-left: 3px solid var(--texted-rose);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--texted-rose-bg);
  border-radius: 0 var(--texted-radius-sm) var(--texted-radius-sm) 0;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--texted-text-dark);
}

.texted-single__content ul,
.texted-single__content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.texted-single__content li {
  margin-bottom: 0.5rem;
}

.texted-single__content img {
  border-radius: var(--texted-radius-sm);
  margin: 2rem 0;
}

/* ---- Footer ---- */
.texted-footer {
  background: var(--texted-rose-bg);
  padding: 3.5rem 2rem 2rem;
  border-top: 1px solid var(--texted-rose-light);
}

.texted-footer__inner {
  max-width: var(--texted-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.texted-footer__col-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--texted-text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.texted-footer__text {
  font-size: 0.9rem;
  color: var(--texted-gray);
  line-height: 1.7;
}

.texted-footer__links {
  list-style: none;
}

.texted-footer__links li {
  margin-bottom: 0.5rem;
}

.texted-footer__links a {
  font-size: 0.9rem;
  color: var(--texted-gray);
  transition: color var(--texted-transition);
}

.texted-footer__links a:hover {
  color: var(--texted-rose-dark);
}

.texted-footer__bottom {
  max-width: var(--texted-max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--texted-rose-light);
  text-align: center;
  font-size: 0.8rem;
  color: var(--texted-gray-light);
}

/* ---- Animations ---- */
@keyframes texted-fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes texted-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.texted-fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: texted-fadeUp 0.6s ease forwards;
}

.texted-fade-in:nth-child(1) { animation-delay: 0.05s; }
.texted-fade-in:nth-child(2) { animation-delay: 0.1s; }
.texted-fade-in:nth-child(3) { animation-delay: 0.15s; }
.texted-fade-in:nth-child(4) { animation-delay: 0.2s; }
.texted-fade-in:nth-child(5) { animation-delay: 0.25s; }
.texted-fade-in:nth-child(6) { animation-delay: 0.3s; }

/* ---- Responsive ---- */
@media (max-width: 968px) {
  .texted-inspirations__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .texted-articles__grid {
    columns: 1;
  }

  .texted-footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .texted-header__nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--texted-white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(232, 180, 184, 0.15);
  }

  .texted-header__nav.active {
    display: flex;
  }

  .texted-header__hamburger {
    display: flex;
  }

  .texted-hero {
    padding: 3.5rem 1.5rem;
  }

  .texted-hero__deco {
    display: none;
  }

  .texted-single {
    padding: 2.5rem 1.25rem 3rem;
  }
}

@media (max-width: 480px) {
  .texted-hero__title {
    font-size: 1.7rem;
  }

  .texted-banner__text {
    font-size: 1.2rem;
  }

  .texted-card__body {
    padding: 1.25rem;
  }
}

/* ================================================================
   UPGRADED SINGLE ARTICLE — SEO Features
   ================================================================ */

.texted-article {
  padding: 48px 0 80px;
}

.texted-article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.texted-breadcrumb {
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.texted-breadcrumb a {
  font-weight: 600;
  transition: color 0.2s ease;
}

.texted-breadcrumb a:hover {
  opacity: 0.8;
}

.texted-breadcrumb span {
  color: #ccc;
}

.texted-article-header {
  margin-bottom: 32px;
}

.texted-article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.texted-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #888;
  flex-wrap: wrap;
}

.texted-meta-sep {
  color: #ccc;
}

.texted-reading-time {
  font-weight: 500;
}

.texted-article-cover {
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.texted-article-cover img {
  width: 100%;
  height: auto;
}

.texted-article-body {
  font-size: 1.05rem;
  line-height: 1.85;
}

.texted-article-body h2 {
  margin: 48px 0 16px;
}

.texted-article-body h3 {
  margin: 36px 0 12px;
}

.texted-article-body p {
  margin-bottom: 20px;
}

.texted-article-body ul,
.texted-article-body ol {
  margin: 16px 0 24px 24px;
}

.texted-article-body li {
  margin-bottom: 8px;
}

.texted-article-body blockquote {
  border-left: 4px solid currentColor;
  padding: 20px 28px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.texted-article-body img {
  border-radius: 8px;
  margin: 28px 0;
}

.texted-related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid #e5e5e5;
}

.texted-related h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.texted-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.texted-related-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.texted-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.texted-related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.texted-related-card:hover img {
  transform: scale(1.05);
}

.texted-related-card h4 {
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.texted-related-card a {
  display: block;
  color: inherit;
}

@media (max-width: 768px) {
  .texted-related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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