/*
Theme Name: Souvenirs & Pinceaux
Version: 1.1.0
*/

:root {
  --vert-sauge: #A3B18A;
  --beige-clair: #F5F0E6;
  --rose-poudre: #F2D1C9;
  --brun-terre: #6B4226;
  --brun-fonce: #3d2b1f;

  --vert-sauge-light: #c4d0ad;
  --vert-sauge-dark: #7d8a6a;
  --beige-warm: #f9f5ed;
  --rose-soft: #f8e5df;

  --text-primary: #2c2c2c;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;
  --blanc-chaud: #fefdfb;

  --font-titre: 'Cormorant Garamond', serif;
  --font-manuscrit: 'Dancing Script', cursive;
  --font-corps: 'Lato', sans-serif;
  
  --sauge: var(--vert-sauge);
  --sauge-fonce: var(--vert-sauge-dark);
  --beige: var(--beige-warm);
  --rose: var(--rose-poudre);
  --brun-fonce: var(--text-primary);

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-corps);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
  background: var(--beige-warm);
  padding-top: 100px;
}

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

a {
  color: var(--vert-sauge);
  text-decoration: none;
  transition: all 0.3s;
}

.has-normal-font-size,
.medium,
.has-medium-font-size {
  font-size: inherit !important;
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titre);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--vert-sauge);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
h5 { font-size: clamp(1.125rem, 2vw, 1.4rem); font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

.titre-manuscrit {
  font-family: var(--font-manuscrit);
  font-size: clamp(2rem, 5vw, 5rem);
  color: var(--brun-terre);
  line-height: 1.2;
}
.titre-manuscrit, .site-title, .rm-header__eyebrow, .rm-divider span, .error-404__number{
  font-weight: 600 !important;
}
/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(249, 245, 237, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(163, 177, 138, .18);
}

.header-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px max(32px, calc((100vw - 1120px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img,
.custom-logo {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain;
}

.site-logo svg {
  width: 46px;
  height: 46px;
}

.site-title {
  font-family: var(--font-manuscrit);
  font-size: 1.8rem;
  color: var(--vert-sauge-dark);
  margin: 0;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.8rem;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-corps);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--brun-terre);
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--vert-sauge);
  transition: width 0.3s;
}

.main-nav a:hover { color: var(--vert-sauge-dark); }
.main-nav a:hover::after { width: 100%; }

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--vert-sauge-dark); }
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after { width: 100%; }

.header-cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: var(--vert-sauge);
  color: #fff;
  font-family: var(--font-corps);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 26px;
  border-radius: 999px;
  transition: all 0.3s;
  box-shadow: 0 8px 20px -8px rgba(125,138,106,.5);
}
.header-cta:hover {
  background: var(--vert-sauge-dark);
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 900px) {
  .header-container { flex-wrap: wrap; justify-content: center; text-align: center; }
  .main-nav { order: 3; width: 100%; }
  .header-cta { order: 2; }
}
/* ============================================================
   HERO IMMERSIF (legacy — plus appelé par front-page.php actuel,
   laissé au cas où une autre page l'utiliserait encore)
   ============================================================ */
.hero-immersif {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.4) 0%, rgba(163,177,138,.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  padding: 0 2rem;
}
.hero-titre {
  font-family: var(--font-manuscrit);
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--brun-terre);
  margin-bottom: 1rem;
}
.hero-baseline {
  font-family: var(--font-titre);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--brun-terre);
  margin-bottom: 3rem;
}
.hero-cta {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--vert-sauge);
  color: var(--blanc-chaud);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 15px;
  transition: all 0.3s;
}
.hero-cta:hover { background: var(--vert-sauge-dark); transform: translateY(-3px); }

/* ============================================================
   GALERIE "MES CRÉATIONS" (remise au niveau racine — n'était
   avant appliquée qu'en dessous de 768px par erreur)
   ============================================================ */
.intro-section {
  padding: 4rem max(32px, calc((100vw - 1120px) / 2));
}
.intro-content {
  max-width: 100%;
  text-align: center;
}

.galerie-container {
  margin: 4rem 0;
  padding: 0 max(32px, calc((100vw - 1120px) / 2));
}
.galerie-titre {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--rose-poudre);
}
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
}

.oeuvre-card {
  background: var(--beige-warm);
  border-radius: 4px 40px 4px 40px;
  overflow: hidden;
  box-shadow: 0 20px 45px -25px rgba(107,66,38,.28);
  transition: all 0.3s;
  cursor: pointer;
}
.oeuvre-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 55px -25px rgba(107,66,38,.35);
}
.oeuvre-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--beige-clair);
}
.oeuvre-image {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.oeuvre-card:hover .oeuvre-image { transform: scale(1.05); }
.oeuvre-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(163,177,138,.9) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}
.oeuvre-card:hover .oeuvre-overlay { opacity: 1; }
.oeuvre-overlay-titre {
  color: white;
  font-family: var(--font-titre);
  font-size: 1.5rem;
  margin: 0;
}
.oeuvre-info {
  padding: 1.5rem;
  border-top: 2px solid var(--rose-poudre);
}
.oeuvre-titre {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--vert-sauge-dark);
}
.oeuvre-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.oeuvre-categorie { color: var(--vert-sauge); font-weight: 600; }
.oeuvre-prix { font-weight: 600; color: var(--brun-terre); }

/* ============================================================
   BLOG — grille + cartes
   ============================================================ */
.blog-section {
  background: var(--beige-clair);
  padding: 4rem max(32px, calc((100vw - 1120px) / 2));
  margin-top: 6rem;
}
.section-titre {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--rose-poudre);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.6rem;
}

.blog-card,
article.post,
article[class*="post-"] {
  background: var(--blanc-chaud);
  border-radius: 4px 48px 4px 48px;
  overflow: hidden;
  box-shadow: 0 20px 45px -25px rgba(107,66,38,.28);
  border: none;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card:hover,
article.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px -25px rgba(107,66,38,.35);
}
.blog-card-image, .entry-image {
  height: 280px;
  border-radius: 4px 48px 0 0;
  overflow: hidden;
}
.blog-card-image img, .entry-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.blog-card:hover .blog-card-image img,
article.post:hover .entry-image img { transform: scale(1.05); }

.blog-card-content, .entry-content-wrapper {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-title, .entry-title {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--vert-sauge-dark);
  text-align: left;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 5.2rem;
  max-height: 5.2rem;
}
.blog-card-excerpt, .entry-excerpt {
  color: var(--text-secondary);
  margin-bottom: auto;
  font-size: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8rem;
  max-height: 4.8rem;
}
.blog-card-meta, .entry-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(163,177,138,.25);
}

/* ============================================================
   ARTICLE (page.php / single.php)
   ============================================================ */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 32px;
}
.article-header {
  margin-bottom: 2.5rem;
  text-align: center;
  padding-bottom: 0;
  border-bottom: none;
}
.article-titre {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.2rem;
  text-align: center;
}
.article-meta {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  font-family: var(--font-corps);
  flex-wrap: wrap;
}
.article-meta time,
.article-meta span,
.article-meta a {
  padding: 6px 16px;
  background: var(--beige-clair);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--text-muted);
}
.article-meta a { color: var(--vert-sauge-dark); }
.article-meta a:hover { background: var(--vert-sauge); color: #fff; }

.article-featured-image {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  height: 60vh;
  min-height: 340px;
  max-height: 620px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 3.5rem;
}

.article-content {
  font-size: 1.2rem;
  line-height: 1.9;
}
.article-content p { margin-bottom: 1.8rem; }
.article-content h2 { font-style: italic; margin: 2.4rem 0 1rem; }
.article-content figure { margin: 2.5rem 0; }
.article-content figure img {
  border-radius: 4px 40px 4px 40px;
  box-shadow: 0 20px 45px -25px rgba(107,66,38,.28);
}

/* --- Partage --- */
.article-share {
  max-width: 720px;
  margin: 3.5rem auto;
  padding: 2rem 0;
  background: transparent;
  border-top: 1px solid rgba(163,177,138,.3);
  border-radius: 0;
  text-align: center;
}
.article-share-title {
  font-family: var(--font-manuscrit);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--brun-terre);
}
.article-share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--vert-sauge);
  color: var(--vert-sauge-dark);
  transition: all 0.3s;
}
.share-button svg { width: 16px; height: 16px; }
.share-button:hover {
  background: var(--vert-sauge-dark);
  border-color: var(--vert-sauge-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Étiquettes --- */
.article-tags {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(163,177,138,.3);
}
.article-tags-title {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.article-tags-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-item {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1.5px solid var(--vert-sauge);
  color: var(--vert-sauge-dark);
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: var(--font-corps);
  transition: all 0.3s;
}
.tag-item:hover { background: var(--vert-sauge); color: #fff; transform: translateY(-2px); }

/* --- Navigation précédent / suivant --- */
.related-articles {
  max-width: 1120px;
  margin: 5rem auto 0;
  padding: 0 32px;
}
.related-title {
  text-align: center;
  font-family: var(--font-manuscrit);
  font-size: 1.8rem;
  color: var(--brun-terre);
  margin-bottom: 2.5rem;
}
.article-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.nav-article {
  background: var(--beige-warm);
  border-radius: 4px 40px 4px 40px;
  overflow: hidden;
  box-shadow: 0 18px 40px -25px rgba(107,66,38,.28);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.nav-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px -25px rgba(107,66,38,.35);
}
.nav-article-image { height: 200px; overflow: hidden; }
.nav-article-image img { width: 100%; height: 100%; object-fit: cover; }
.nav-article-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.nav-label {
  font-family: var(--font-manuscrit);
  font-size: 1.05rem;
  color: var(--vert-sauge-dark);
  margin-bottom: 0.5rem;
}
.nav-title {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--vert-sauge-dark);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  text-align: left;
}
.nav-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: auto;
}
.nav-meta { margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   FICHE ŒUVRE (single-oeuvre.php)
   ============================================================ */
.single-oeuvre .article-featured-image {
  height: 400px;
  object-fit: contain;
  background: var(--beige-clair);
  padding: 2rem;
}
.oeuvre-details {
  background: var(--beige-clair);
  padding: 2.2rem;
  border-radius: 4px 40px 4px 40px;
  margin: 2.5rem 0;
  box-shadow: 0 20px 45px -25px rgba(107,66,38,.28);
}
.oeuvre-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}
.oeuvre-detail-item {
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border-left: 3px solid var(--rose-poudre);
}
.oeuvre-detail-label {
  font-family: var(--font-manuscrit);
  font-size: 1.1rem;
  color: var(--brun-terre);
  text-transform: none;
  margin-bottom: 0.3rem;
}
.oeuvre-detail-value {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  color: var(--text-primary);
}

/* ============================================================
   ARCHIVES / CATÉGORIES
   ============================================================ */
.archive-header,
.page-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(163,177,138,.3);
}
.archive-header h1,
.page-header h1 { text-align: center; }
.archive-header .titre-manuscrit { font-size: clamp(2.4rem, 5vw, 3.2rem); }

/* ============================================================
   FOOTER (base + premium fusionnés)
   ============================================================ */
.site-footer {
    background: var(--brun-fonce);
    color: rgba(249, 245, 237, .75);
    padding: 50px 32px 30px;
    text-align: center;
    font-size: .85rem;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0; height: 70px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'><path d='M0,30 C200,70 400,0 650,32 C900,64 1050,10 1200,38 L1200,0 L0,0 Z' fill='%23F5F0E6'/></svg>");
  background-size: 100% 100%;
  transform: translateY(-100%);
  pointer-events: none;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}
.footer-section h3 {
  font-family: var(--font-manuscrit);
  font-size: 1.5rem;
  color: var(--rose);
  margin-bottom: 1.2rem;
  padding-right: 1rem;
}
.footer-section p,
.footer-section li,
.footer-section a {
  color: var(--rose);
  font-size: 0.95rem;
}
.footer-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 2.8rem;
  align-items: center;
}

.footer-nav a {
  font-family: var(--font-corps);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--rose);
  position: relative;
  padding: 0.5rem 0;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--beige);
}

.footer-nav a:hover { color: var(--beige); }
.footer-nav a:hover::after { width: 100%; }

.footer-nav .current-menu-item > a,
.footer-nav .current_page_item > a { color: var(--rose); }
.footer-nav .current-menu-item > a::after,
.footer-nav .current_page_item > a::after { width: 100%; }


.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--rose);
  color: var(--rose);
  transition: all 0.3s;
}
.social-links a:hover {
  background: var(--beige);
  border-color: var(--brun-fonce);
  color: var(--brun-fonce);
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(163, 177, 138, 0.1);
  color: var(--rose);
  font-size: 0.9rem;
  font-family: var(--font-corps);
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary { background: var(--vert-sauge); color: white; }
.btn-primary:hover { background: var(--vert-sauge-dark); transform: translateY(-2px); }
.btn-secondary { background: transparent; border: 2px solid var(--vert-sauge); color: var(--vert-sauge); }
.btn-secondary:hover { background: var(--vert-sauge); color: white; }

/* Boutons Gutenberg natifs (À propos, etc.) */
.wp-block-button__link {
  background: var(--vert-sauge);
  color: #fff;
  border-radius: 999px;
  padding: 16px 34px;
  font-family: var(--font-corps);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px -8px rgba(125,138,106,.5);
  transition: all .3s ease;
}
.wp-block-button__link:hover { background: var(--vert-sauge-dark); transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1.5px solid var(--vert-sauge-dark);
  color: var(--vert-sauge-dark);
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.container { padding: 0 max(20px, 5%); }
.text-center { text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  body { padding-top: 80px; }

  .header-container { padding: 1rem 5%; }
  .site-logo img, .custom-logo { width: 50px !important; height: 50px !important; }
  .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .main-nav a { font-size: 1rem; }

  .article-featured-image { height: 40vh; min-height: 240px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-navigation { grid-template-columns: 1fr; }
}

/* ============================================================
   RACONTE-MOI TON MOMENT
   ============================================================ */
/* Page wrapper */
/* ============================================================
   RACONTE-MOI TON MOMENT
   ============================================================ */
.rm-page {
    background-color: var(--beige-warm, #F9F5ED);
    min-height: 100vh;
    padding: 0 0 5rem;
}

/* ── En-tête ── */
.rm-header {
    position: relative;
    overflow: hidden;
    background-color: var(--blanc-chaud, #fff);
    background-image:
        radial-gradient(circle at 90% -10%, rgba(163,177,138,.4) 0%, rgba(163,177,138,0) 60%),
        radial-gradient(circle at -8% 100%, rgba(242,209,201,.4) 0%, rgba(242,209,201,0) 60%);
    text-align: center;
    padding: 4.5rem 1.5rem 3rem;
}
.rm-header__inner {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.rm-header__eyebrow {
    display: block;
    font-family: var(--font-manuscrit, 'Dancing Script', cursive);
    font-size: 1.4rem;
    color: var(--brun-terre, #6B4226);
    margin-bottom: 6px;
}
.rm-header__title {
    font-family: var(--font-titre, 'Cormorant Garamond', serif);
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    font-weight: 400;
    font-style: italic;
    color: var(--vert-sauge-dark, #7d8a6a);
    margin-bottom: 0.9rem;
    line-height: 1.25;
}
.rm-header__sub {
    font-family: var(--font-corps, 'Lato', sans-serif);
    font-size: 14.5px;
    font-weight: 300;
    color: #7a6555;
    line-height: 1.8;
}
.rm-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 1.75rem auto 0;
    max-width: 280px;
}
.rm-divider::before,
.rm-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--vert-sauge, #A3B18A);
    opacity: 0.5;
}
.rm-divider span {
    font-family: var(--font-manuscrit, 'Dancing Script', cursive);
    color: var(--vert-sauge, #A3B18A);
    font-size: 20px;
}
.rm-header__required {
    font-size: 12px;
    color: #9c8878;
    margin-top: 1rem;
    font-style: italic;
}
.rm-header__required span {
    color: var(--rose-poudre, #F2D1C9);
    font-style: normal;
}

/* Vague de transition sous le header */
.rm-header::after{
    content:'';
    position:absolute; left:0; right:0; bottom:-1px; height:70px;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'><path d='M0,40 C150,90 350,0 600,45 C850,90 1050,10 1200,50 L1200,90 L0,90 Z' fill='%23F9F5ED'/></svg>");
    background-size:100% 100%;
    pointer-events:none;
}

/* ── Formulaire ── */
.rm-form {
    max-width: 75%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 0;
}

.rm-honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Sections ── */
.rm-section {
    background: #ffffff;
    border-top: 3px solid var(--rose-poudre, #F2D1C9);
    border-radius: 4px 32px 4px 32px;
    padding: 2rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 16px 36px -22px rgba(107, 66, 38, 0.22);
}

.rm-section__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.4rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(163,177,138,.2);
}
.rm-section__num {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: var(--beige-clair, #F5F0E6);
    border: 2px solid var(--vert-sauge, #A3B18A);
    color: var(--vert-sauge-dark, #7d8a6a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-family: var(--font-manuscrit, 'Dancing Script', cursive);
    flex-shrink: 0;
}
.rm-section__title {
    font-family: var(--font-titre, 'Cormorant Garamond', serif);
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--brun-terre, #6B4226);
    margin: 0;
}

/* ── Espaces illustration ── */
.rm-illus-slot {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--beige-clair, #F5F0E6);
    border: 1px dashed rgba(163,177,138,.5);
    border-radius: 4px 22px 4px 22px;
    padding: 14px 18px;
    margin-bottom: 1.4rem;
}
.rm-illus-slot__placeholder {
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 4px 18px 4px 18px;
    background: #fff;
    border: 1px dashed rgba(163,177,138,.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.rm-illus-slot__placeholder span {
    color: var(--vert-sauge, #A3B18A);
    font-size: 18px;
}
.rm-illus-slot__placeholder em {
    font-size: 10px;
    color: #a89880;
    font-style: italic;
    text-align: center;
}
.rm-illus-slot__caption {
    font-size: 13px;
    color: #7a6555;
    font-style: italic;
    line-height: 1.65;
    font-weight: 300;
}

/* ── Champs ── */
.rm-field { margin-bottom: 1.1rem; }
.rm-field:last-child { margin-bottom: 0; }
.rm-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 400;
    color: #3d2b1f;
    margin-bottom: 6px;
    line-height: 1.5;
}
.rm-field__required {
    color: var(--rose-poudre, #F2D1C9);
    font-size: 15px;
    line-height: 1;
}

.rm-field input[type="text"],
.rm-field input[type="email"],
.rm-field textarea,
.rm-field select {
    width: 100%;
    font-size: 13.5px;
    font-weight: 300;
    background: var(--beige-clair, #F5F0E6);
    color: #3d2b1f;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 11px 14px;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.rm-field input:focus,
.rm-field textarea:focus,
.rm-field select:focus {
    outline: none;
    background: #fff;
    border-color: var(--vert-sauge, #A3B18A);
    box-shadow: 0 0 0 3px rgba(163, 177, 138, 0.15);
}
.rm-field textarea { min-height: 88px; line-height: 1.65; }
.rm-field__textarea--tall { min-height: 120px !important; }

.rm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Bouton de soumission ── */
.rm-submit { text-align: center; margin-top: 2.5rem; }
.rm-btn {
    display: inline-block;
    background: var(--vert-sauge, #A3B18A);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 14px 42px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 22px -8px rgba(125,138,106,.55);
    transition: background 0.25s, transform 0.2s;
}
.rm-btn:hover { background: var(--vert-sauge-dark, #7d8a6a); transform: translateY(-2px); }
.rm-btn--submit { font-size: 15px; padding: 15px 50px; }
.rm-submit__note {
    font-size: 11.5px;
    color: #9c8878;
    font-style: italic;
    margin-top: 12px;
}

/* ── Message d'erreur ── */
.rm-error { max-width: 680px; margin: 0 auto 1.5rem; padding: 0 1.5rem; }
.rm-error p {
    background: #fdf0ed;
    border: 1px solid #e8c5bc;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13.5px;
    color: #7a3a2e;
}

/* ── Page de confirmation ── */
.rm-confirmation {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}
.rm-confirmation__inner { text-align: center; max-width: 480px; }
.rm-confirmation__icon {
    font-family: var(--font-manuscrit, 'Dancing Script', cursive);
    font-size: 32px;
    color: var(--vert-sauge, #A3B18A);
    margin-bottom: 1.25rem;
}
.rm-confirmation h1 {
    font-family: var(--font-titre, 'Cormorant Garamond', serif);
    font-size: 1.7rem;
    font-weight: 400;
    font-style: italic;
    color: var(--vert-sauge-dark, #7d8a6a);
    margin-bottom: 0.9rem;
}
.rm-confirmation p {
    font-size: 14px;
    font-weight: 300;
    color: #7a6555;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

/* ── Toggle "Pour moi / Pour l'offrir" (bug corrigé : position:relative ajouté) ── */
.rm-toggle {
    position: relative;
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid rgba(163,177,138,.4);
    overflow: hidden;
    background: var(--beige-clair, #F5F0E6);
    margin-top: 4px;
}
.rm-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.rm-toggle__option {
    padding: 9px 26px;
    font-size: 13.5px;
    font-weight: 400;
    color: #7a6555;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    margin: 0;
    line-height: 1;
}
.rm-toggle input[type="radio"]:checked + .rm-toggle__option {
    background: var(--vert-sauge, #A3B18A);
    color: #fff;
}
.rm-toggle__option:hover { background: rgba(163,177,138,.15); }

.rm-toggle .rm-toggle__option{
  display: inline-block !important;
  margin: 0 !important;
}

/* ── Compteur de caractères ── */
.rm-field__counter {
    text-align: right;
    font-size: 11px;
    color: #b5aea6;
    margin-top: 4px;
    transition: color 0.2s;
}
.rm-field__counter--near { color: #c4956a; }
.rm-field__counter--max  { color: #c0392b; font-weight: 600; }

/* ── Section légale ── */
.rm-section--legal {
    background: var(--beige-clair, #F5F0E6);
    border-top-color: var(--vert-sauge, #A3B18A);
}
.rm-legal__photos { font-size: 13px; color: #7a6555; font-style: italic; line-height: 1.65; margin: 0; }
.rm-legal__rgpd { font-size: 12px; color: #9c8878; line-height: 1.7; margin: 0; }
.rm-legal__rgpd a { color: var(--vert-sauge-dark, #7d8a6a); text-decoration: underline; }

/* ── Checkbox opt-in (bug corrigé : position:relative ajouté) ── */
.rm-field--checkbox { margin-bottom: 0.9rem; }
.rm-checkbox {
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer !important;
}
.rm-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.rm-checkbox__box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1px solid rgba(163,177,138,.5);
    border-radius: 4px;
    background: #fff;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s, background 0.18s;
}
.rm-checkbox input:checked + .rm-checkbox__box {
    background: var(--vert-sauge, #A3B18A);
    border-color: var(--vert-sauge, #A3B18A);
}
.rm-checkbox input:checked + .rm-checkbox__box::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}
.rm-checkbox__label { font-size: 13px; color: #5a4538; line-height: 1.6; }

/* ── Captcha ── */
.rm-captcha { display: flex; justify-content: center; margin-bottom: 1.4rem; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .rm-row { grid-template-columns: 1fr; }
    .rm-section { padding: 1.5rem 1.25rem; }
    .rm-illus-slot { flex-direction: column; text-align: center; }
    .rm-illus-slot__placeholder { width: 64px; height: 64px; min-width: 64px; }
}

/* ============================================================
   PAGE 404
   ============================================================ */
.error-404{
  position:relative; overflow:hidden;
  min-height:70vh;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  padding:80px max(20px, 5%);
  background-color:var(--beige-warm);
  background-image:radial-gradient(circle at 90% -10%, rgba(163,177,138,.35) 0%, rgba(163,177,138,0) 60%);
}
.error-404__blob{
  position:absolute; width:480px; height:480px; opacity:.12; bottom:-160px; left:-140px; pointer-events:none;
}
.error-404__inner{ max-width:560px; position:relative; z-index:1; }
.error-404__number{
  display:block; font-family:var(--font-manuscrit); font-size:5rem; color:var(--vert-sauge); opacity:.5; line-height:1; margin-bottom:1rem;
}
.error-404__title{
  font-family:var(--font-titre); font-style:italic; font-size:clamp(2rem,4.5vw,2.8rem); color:var(--vert-sauge-dark); margin-bottom:1rem;
}
.error-404__lead{
  font-family:var(--font-corps); font-size:1.05rem; color:var(--text-secondary); margin-bottom:2.2rem;
}
.error-404__search{ max-width:440px; margin:0 auto 2.5rem; display:flex; flex-direction:column; gap:14px; }
.error-404__search .search-field{
  width:100%; padding:14px 22px; border:1.5px solid var(--beige-clair); border-radius:999px; font-family:var(--font-corps); font-size:1rem; background:#fff;
}
.error-404__search .search-field:focus{ outline:none; border-color:var(--vert-sauge); }
.error-404__links{
  display:flex; flex-wrap:wrap; gap:0.6rem 1.6rem; justify-content:center; list-style:none;
  margin-bottom:2.5rem; padding:0;
}
.error-404__links a{
  font-family:var(--font-corps); font-weight:500; color:var(--brun-terre); position:relative; padding-bottom:2px;
}
.error-404__links a::after{ content:''; position:absolute; bottom:0; left:0; width:0; height:1.5px; background:var(--vert-sauge); transition:width .3s; }
.error-404__links a:hover{ color:var(--vert-sauge-dark); }
.error-404__links a:hover::after{ width:100%; }
.error-404__actions{ margin-top:1rem; }

/* ============================================================
   RÉSULTATS DE RECHERCHE
   ============================================================ */
.search-results-page{ max-width:900px; margin:0 auto; padding:60px max(20px,5%) 100px; }
.search-results__header{ text-align:center; margin-bottom:2.5rem; }
.search-results__title{ font-family:var(--font-titre); font-style:italic; font-size:clamp(1.8rem,4vw,2.4rem); color:var(--vert-sauge-dark); }
.search-results__title span{ color:var(--brun-terre); }
.search-results__count{ font-family:var(--font-corps); color:var(--text-secondary); margin-top:.6rem; }

.search-results__form{ max-width:480px; margin:0 auto 3rem; }
.search-results__form form{ display:flex; gap:.6rem; }
.search-results__form .search-field{ flex:1; padding:12px 20px; border:1.5px solid var(--beige-clair); border-radius:999px; font-family:var(--font-corps); background:#fff; }
.search-results__form .search-field:focus{ outline:none; border-color:var(--vert-sauge); }
.search-results__form .btn{ display:flex; align-items:center; gap:6px; padding:12px 22px; }

.search-results__list{ display:flex; flex-direction:column; gap:1.6rem; }
.search-result-card{
  background:var(--blanc-chaud); border-radius:4px 34px 4px 34px;
  box-shadow:0 16px 36px -22px rgba(107,66,38,.24); padding:1.8rem; transition:all .3s;
}
.search-result-card:hover{ transform:translateY(-3px); box-shadow:0 20px 44px -22px rgba(107,66,38,.3); }
.search-result-card__inner{ display:flex; gap:1.6rem; align-items:flex-start; }
.search-result-card__thumb{ flex-shrink:0; width:120px; height:120px; border-radius:4px 24px 4px 24px; overflow:hidden; }
.search-result-card__thumb img{ width:100%; height:100%; object-fit:cover; }
.search-result-card__type{
  display:inline-block; padding:4px 14px; background:var(--vert-sauge); color:#fff;
  border-radius:999px; font-size:.75rem; letter-spacing:.04em; margin-bottom:.6rem;
}
.search-result-card__title{ font-family:var(--font-titre); font-style:italic; font-size:1.4rem; margin-bottom:.4rem; }
.search-result-card__title a{ color:var(--text-primary); }
.search-result-card__meta{ display:flex; gap:1.2rem; font-size:.85rem; color:var(--text-muted); margin-bottom:.8rem; }
.search-result-card__excerpt{ color:var(--text-secondary); line-height:1.7; }
.search-result-card__link{ display:inline-flex; align-items:center; gap:6px; margin-top:.8rem; color:var(--vert-sauge-dark); font-weight:600; }

.search-results__pagination{ margin-top:3rem; text-align:center; }

.search-results__empty{ text-align:center; max-width:520px; margin:3rem auto; }
.search-results__empty-icon{ display:block; font-family:var(--font-manuscrit); font-size:2.4rem; color:var(--vert-sauge); opacity:.5; margin-bottom:1rem; }
.search-results__empty-title{ font-family:var(--font-titre); font-style:italic; font-size:2rem; color:var(--vert-sauge-dark); margin-bottom:.8rem; }
.search-results__empty-lead{ font-family:var(--font-corps); color:var(--text-secondary); margin-bottom:1.5rem; }
.search-results__empty-hint{ color:var(--text-muted); margin-bottom:1.5rem; }
.search-results__empty-actions{ display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; }

/* ============================================================
   MENU MOBILE (hamburger)
   ============================================================ */
.header-cta--mobile{ display:none; }
.sp-burger{ display:none; }

.sp-burger{
  width:32px; height:24px; position:relative; background:none; border:none; cursor:pointer; padding:0;
}
.sp-burger span{
  display:block; position:absolute; left:0; width:100%; height:2px; background:var(--brun-terre);
  border-radius:2px; transition:all .3s ease;
}
.sp-burger span:nth-child(1){ top:0; }
.sp-burger span:nth-child(2){ top:11px; }
.sp-burger span:nth-child(3){ top:22px; }
.sp-burger.is-open span:nth-child(1){ transform:translateY(11px) rotate(45deg); }
.sp-burger.is-open span:nth-child(2){ opacity:0; }
.sp-burger.is-open span:nth-child(3){ transform:translateY(-11px) rotate(-45deg); }

@media (max-width: 900px){
  .header-cta--desktop{ display:none; }
  .sp-burger{ display:block; order:3; }
  .header-container{ flex-wrap:nowrap !important; justify-content:space-between !important; }

  .main-nav{
    position:fixed; top:0; right:0; bottom:0;
    width:78%; max-width:340px;
    background:var(--beige-warm);
    display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start;
    padding:100px 32px 40px;
    box-shadow:-10px 0 40px rgba(0,0,0,.15);
    transform:translateX(100%);
    transition:transform .35s ease;
    z-index:999;
  }
  .main-nav.is-open{ transform:translateX(0); }
  .main-nav ul{ flex-direction:column; align-items:flex-start; gap:1.6rem; }
  .main-nav a{ font-size:1.15rem; }
  .header-cta--mobile{
    display:inline-flex; margin-top:2rem;
    background:var(--vert-sauge); color:#fff; font-weight:700;
    padding:12px 26px; border-radius:999px;
  }

  body.sp-nav-open::after{
    content:''; position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:998;
  }
}
.article-container > *:first-child,
#main-content > *:first-child{
  padding-top: 40px !important;
}