/* ==========================================================================
   La Chérie sur le Gâteau : éditorial mariage, chic et décoré.
   Fichier CSS externe UNIQUE (aucun style inline dans le PHP).
   Parti pris : papier ivoire, typographie de faire-part (Cormorant Garamond),
   filets or, ornements botaniques. Le mur d'articles reste dense pour le SEO.
   ========================================================================== */

:root {
  --c-bg: #FDF9F6;          /* ivoire chaud, jamais de blanc pur */
  --c-paper: #FFFFFF;
  --c-ink: #241B22;         /* aubergine profond */
  --c-muted: #7A6A70;
  --c-border: #E8DCD5;
  --c-accent: #8E3B52;      /* bordeaux rosé, signature du site */
  --c-gold: #B08A5A;        /* filets et ornements */
  --c-blush: #F5E9E7;
  --c-section: #F8EFEA;

  --r-demande-en-mariage: #8E3B52;
  --r-organisation: #2E6F73;
  --r-budget: #A0662B;
  --r-ceremonie: #6B4E8E;
  --r-decoration: #B5544A;
  --r-tenues-beaute: #4A6C8C;

  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-text: "Inter", system-ui, sans-serif;
  --wrap: 1180px;

  /* Les CSS de shortcodes universels retombent sur --color-primary quand elle
     existe, sinon sur le vert #2C5F2D herite d'electricien-38. On la definit
     donc ici pour que les encarts prennent le bordeaux du site. */
  --color-primary: #8E3B52;
  --color-accent: #B08A5A;
}

/* Texture papier très légère : le fond ne doit jamais paraître plat */
body {
  background-color: var(--c-bg);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(142, 59, 82, .045) 0, transparent 42%),
    radial-gradient(circle at 84% 68%, rgba(176, 138, 90, .05) 0, transparent 46%);
  background-attachment: fixed;
  color: var(--c-ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.72;
}

h1, h2, h3, h4, .lcg-card-title, .main-title, .site-title {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--c-ink);
}

a { color: var(--c-accent); }
a:hover { color: #6E2B3E; }

.inside-article, .site-content .content-area { background: transparent; }

/* Front page : le mur d'articles se suffit. Pas de titre "Accueil" affiche,
   pas de cadre blanc GeneratePress qui casserait le fond ivoire. */
.home .entry-header, .home .entry-title, .home .page-header { display: none; }
.home .inside-article,
.home .entry-content,
.home .site-content,
.home .content-area,
.home #primary { background: transparent; padding-left: 0; padding-right: 0; }
.home .inside-article { border: 0; box-shadow: none; }

/* ---------- Bandeau haut : date + signature ---------- */
.lcg-topbar {
  background: var(--c-ink);
  color: #EFE3DC;
  font-family: var(--f-text);
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.lcg-topbar-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.lcg-tagline { color: var(--c-gold); }

/* ---------- Masthead façon faire-part ---------- */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  padding: 26px 0 18px;
  position: relative;
}
.site-header::after {              /* double filet or, signature papeterie */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  height: 1px;
  background: var(--c-gold);
  opacity: .5;
}
.site-header .inside-header {
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.site-branding { text-align: center; }
.main-title, .site-title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0;
  line-height: 1.12;
}
.main-title a, .site-title a { color: var(--c-ink); text-decoration: none; }
.main-title a::before, .site-title a::before {    /* emblème cerise, clin d'œil au nom */
  content: "";
  display: block;
  width: 42px; height: 42px;
  margin: 0 auto 8px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 8 C22 15 17 19 14 24' stroke='%238E3B52' fill='none' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M24 8 C26 15 31 19 34 24' stroke='%238E3B52' fill='none' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M24 8 c4-4 10-4 13-1 -4 4-9 4-13 1z' fill='%23B08A5A'/%3E%3Ccircle cx='14' cy='32' r='7.5' fill='%238E3B52'/%3E%3Ccircle cx='34' cy='32' r='7.5' fill='%238E3B52'/%3E%3Ccircle cx='11.6' cy='29.6' r='2.1' fill='%23fff' opacity='.34'/%3E%3Ccircle cx='31.6' cy='29.6' r='2.1' fill='%23fff' opacity='.34'/%3E%3C/svg%3E");
}

/* ---------- Navigation en petites capitales ---------- */
.main-navigation { background: transparent; border-top: 1px solid var(--c-border); }
.main-navigation .inside-navigation { max-width: var(--wrap); }
.main-navigation .main-nav ul li a {
  font-family: var(--f-text);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-ink);
  padding: 15px 17px;
}
.main-navigation .main-nav ul li a:hover { color: var(--c-accent); background: transparent; }
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--c-accent); }

/* ---------- Ornement réutilisable ---------- */
.lcg-orn {
  height: 16px;
  margin: 6px auto 0;
  background: no-repeat center/150px 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 16'%3E%3Cline x1='0' y1='8' x2='55' y2='8' stroke='%23D8C3B0' stroke-width='1'/%3E%3Cline x1='95' y1='8' x2='150' y2='8' stroke='%23D8C3B0' stroke-width='1'/%3E%3Cpath d='M75 2.5 L79.5 8 L75 13.5 L70.5 8 Z' fill='%23B08A5A'/%3E%3Ccircle cx='63' cy='8' r='1.7' fill='%23B08A5A'/%3E%3Ccircle cx='87' cy='8' r='1.7' fill='%23B08A5A'/%3E%3C/svg%3E");
}

/* ---------- Home ---------- */
.lcg-home { max-width: var(--wrap); margin: 0 auto; padding: 34px 20px 10px; }

/* En-têtes de section : titre centré + ornement */
.lcg-sec-head, .lcg-rub-head {
  text-align: center;
  margin: 46px 0 24px;
  position: relative;
}
.lcg-sec-title, .lcg-rub-title {
  font-size: clamp(23px, 3vw, 31px);
  margin: 0 0 4px;
  letter-spacing: .02em;
}
.lcg-sec-head::after, .lcg-rub-head::after {
  content: "";
  display: block;
  height: 16px;
  margin-top: 8px;
  background: no-repeat center/150px 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 16'%3E%3Cline x1='0' y1='8' x2='55' y2='8' stroke='%23D8C3B0' stroke-width='1'/%3E%3Cline x1='95' y1='8' x2='150' y2='8' stroke='%23D8C3B0' stroke-width='1'/%3E%3Cpath d='M75 2.5 L79.5 8 L75 13.5 L70.5 8 Z' fill='%23B08A5A'/%3E%3Ccircle cx='63' cy='8' r='1.7' fill='%23B08A5A'/%3E%3Ccircle cx='87' cy='8' r='1.7' fill='%23B08A5A'/%3E%3C/svg%3E");
}
.lcg-rub-all {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--f-text);
  font-size: 11.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-muted);
  text-decoration: none;
}
.lcg-rub-all:hover { color: var(--c-accent); }

/* À la une : une pièce maîtresse encadrée + 3 brèves */
.lcg-alaune {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: 30px;
  align-items: start;
}
.lcg-alaune-lead .lcg-card-lead {
  background: var(--c-paper);
  border: 1px solid var(--c-border);
  padding: 12px 12px 22px;
  position: relative;
}
/* Filets d'angle dorés : la décoration qui fait le faire-part */
.lcg-alaune-lead .lcg-card-lead::before,
.lcg-alaune-lead .lcg-card-lead::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid var(--c-gold);
  opacity: .75;
}
.lcg-alaune-lead .lcg-card-lead::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.lcg-alaune-lead .lcg-card-lead::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.lcg-alaune-side { display: grid; gap: 20px; }

/* ---------- Cartes ---------- */
.lcg-card { margin: 0 0 4px; }
.lcg-card-media { display: block; overflow: hidden; }
.lcg-card-img {
  width: 100%; height: auto; display: block;
  transition: transform .5s ease;
  filter: saturate(.94);
}
.lcg-card-media:hover .lcg-card-img { transform: scale(1.035); }
.lcg-card-body { padding: 13px 8px 0; }
.lcg-card-kicker { margin-bottom: 5px; }
.lcg-label {
  font-family: var(--f-text);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
}
.lcg-label::after {                /* losange discret après le label */
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  margin: 0 0 1px 9px;
  transform: rotate(45deg);
  background: var(--c-gold);
}
.lcg-card-title { margin: 0; line-height: 1.26; }
.lcg-card-title a { color: var(--c-ink); text-decoration: none; }
.lcg-card-title a:hover { color: var(--c-accent); }
.lcg-card-std .lcg-card-title { font-size: 20px; }
.lcg-card-feat .lcg-card-title { font-size: 23px; }
.lcg-card-lead .lcg-card-title { font-size: clamp(27px, 3.4vw, 37px); }
.lcg-card-exc {
  margin: 10px 0 0;
  color: var(--c-muted);
  font-size: 15.5px;
  line-height: 1.68;
}
/* Lettrine sur le chapô de la une */
.lcg-card-lead .lcg-card-exc::first-letter {
  font-family: var(--f-display);
  font-size: 3.05em;
  float: left;
  line-height: .82;
  padding: 4px 9px 0 0;
  color: var(--c-accent);
}
.lcg-card-meta { margin-top: 9px; }
.lcg-card-time {
  font-family: var(--f-text);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ---------- Dernières publications ---------- */
.lcg-latest-grid, .lcg-rub-grid, .lcg-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

/* ---------- Sections rubrique : fond alterné + filet couleur ---------- */
.lcg-rub {
  margin-top: 12px;
  padding: 8px 24px 34px;
  border-top: 2px solid var(--r, var(--c-accent));
  background: linear-gradient(180deg, var(--c-section) 0, rgba(248, 239, 234, 0) 190px);
}
.lcg-rub + .lcg-rub { margin-top: 26px; }
.lcg-rub .lcg-rub-title { color: var(--r, var(--c-accent)); }
.lcg-rub .lcg-rub-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
.lcg-rub .lcg-rub-grid .lcg-card:nth-child(n+4) { display: none; }
.lcg-rub .lcg-card-feat .lcg-card-title { font-size: 25px; }

/* ---------- Article ---------- */
.single .entry-title, .page .entry-title {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.16;
  margin-bottom: 10px;
}
.single .entry-content, .page .entry-content { max-width: 760px; margin: 0 auto; }
.single .entry-content p { margin-bottom: 1.35em; }
.single .entry-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 2.1em 0 .6em;
  padding-bottom: .28em;
  border-bottom: 1px solid var(--c-border);
}
.single .entry-content h3 { font-size: 22px; margin: 1.6em 0 .5em; }
.single .entry-content img { border: 1px solid var(--c-border); }
.single .entry-content figcaption {
  font-family: var(--f-text);
  font-size: 13px;
  color: var(--c-muted);
  text-align: center;
  padding-top: 8px;
  font-style: italic;
}
.single .entry-content blockquote {
  border-left: 2px solid var(--c-gold);
  background: var(--c-blush);
  padding: 16px 22px;
  font-family: var(--f-display);
  font-size: 21px;
  font-style: italic;
}
.entry-meta, .posted-on, .byline {
  font-family: var(--f-text);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ---------- Habillage des shortcodes universels ----------
   Les fichiers site-shortcodes*.css sont universels et codent en dur le vert
   #2C5F2D d'electricien-38. On neutralise ici, en gardant la meme structure. */
.site-summary, .site-encart, .site-chiffre, .site-faq, .site-toc, .site-bio {
  background: var(--c-paper);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent) !important;
  border-radius: 0;
}
.site-summary, .site-toc {
  background: var(--c-blush);
  border-left-color: var(--c-gold) !important;
}
/* Titres d'encarts : serif du site, petites capitales, filet or */
.site-summary-title, .site-encart-title, .site-alerte-title,
.site-toc-title, .site-faq h2 {
  font-family: var(--f-display) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--c-ink) !important;
  letter-spacing: .01em;
  background: transparent !important;
  padding: 0 0 8px !important;
  margin: 0 0 12px !important;
  border-bottom: 1px solid var(--c-gold);
  text-transform: none !important;
}
.site-summary-title::before, .site-encart-title::before, .site-toc-title::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin: 0 10px 3px 0;
  transform: rotate(45deg);
  background: var(--c-gold);
}
.site-summary ul, .site-encart ul { margin: 0; padding-left: 20px; }
.site-summary li, .site-encart li { margin-bottom: 8px; }
.site-summary li::marker, .site-encart li::marker { color: var(--c-gold); }
/* FAQ en accordeon */
.site-faq { padding: 20px 22px; }
.site-faq-item { border-bottom: 1px solid var(--c-border); }
.site-faq-item summary {
  font-family: var(--f-display);
  font-size: 19px;
  color: var(--c-ink);
  padding: 12px 0;
  cursor: pointer;
}
.site-faq-item summary:hover { color: var(--c-accent); }
.site-chiffre-valeur { color: var(--c-accent) !important; font-family: var(--f-display) !important; font-size: 2.1rem !important; }
.site-toc a:hover { color: var(--c-accent) !important; }

/* ---------- Quiz d'article ---------- */
.lcg-quiz {
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-accent);
  background: var(--c-paper);
  padding: 24px;
  margin: 26px 0;
}
.lcg-quiz-q {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0 0 14px;
}
.lcg-quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0;
  padding: 13px 16px;
  font-family: var(--f-text);
  font-size: 15.5px;
  color: var(--c-ink);            /* le defaut du theme etait trop clair */
  background: var(--c-section);
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.lcg-quiz-opt:hover {
  background: var(--c-blush);
  border-color: var(--c-gold);
  color: var(--c-accent);
}
.lcg-quiz-res {
  border-top: 1px solid var(--c-gold);
  padding-top: 16px;
  margin-top: 14px;
}
.lcg-quiz-res-lab {
  font-family: var(--f-text);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 8px;
}
.lcg-quiz-res p.lcg-quiz-res-txt {
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.5;
  color: var(--c-ink);
  margin: 0;
}
.site-table table { border-color: var(--c-border); }
.site-table th {
  background: var(--c-ink);
  color: #F6EDE8;
  font-family: var(--f-text);
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.site-table tr:nth-child(even) td { background: var(--c-section); }
.site-chiffre { border-left-color: var(--c-gold); }

/* ---------- À lire aussi ---------- */
.lcg-related { max-width: var(--wrap); margin: 46px auto 0; padding: 0 20px; }
.lcg-related-title {
  font-family: var(--f-display);
  font-size: 27px;
  text-align: center;
  margin-bottom: 6px;
}
.lcg-related::before {
  content: "";
  display: block;
  height: 16px;
  margin-bottom: 14px;
  background: no-repeat center/150px 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 16'%3E%3Cline x1='0' y1='8' x2='55' y2='8' stroke='%23D8C3B0' stroke-width='1'/%3E%3Cline x1='95' y1='8' x2='150' y2='8' stroke='%23D8C3B0' stroke-width='1'/%3E%3Cpath d='M75 2.5 L79.5 8 L75 13.5 L70.5 8 Z' fill='%23B08A5A'/%3E%3Ccircle cx='63' cy='8' r='1.7' fill='%23B08A5A'/%3E%3Ccircle cx='87' cy='8' r='1.7' fill='%23B08A5A'/%3E%3C/svg%3E");
}
.lcg-related-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Pied de page ---------- */
.site-footer, .site-info {
  background: var(--c-ink);
  color: #E7D9D2;
  font-family: var(--f-text);
  font-size: 13px;
  letter-spacing: .04em;
}
.site-info { padding: 24px 20px; text-align: center; border-top: 1px solid var(--c-gold); }
.site-info a { color: var(--c-gold); text-decoration: none; }
.site-info a:hover { color: #F0DFC8; }
.lcg-foot-copy { color: #E7D9D2; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lcg-latest-grid, .lcg-rub-grid, .lcg-related-grid,
  .lcg-rub .lcg-rub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .lcg-alaune { grid-template-columns: 1fr; gap: 24px; }
  .lcg-latest-grid, .lcg-rub-grid, .lcg-related-grid,
  .lcg-rub .lcg-rub-grid { grid-template-columns: 1fr; }
  .lcg-rub { padding: 8px 12px 26px; }
  .lcg-topbar-in { justify-content: center; }
  body { font-size: 16.5px; }
}
