/*
Theme Name: Sexo En Devenir — Kadence Child
Theme URI: https://sexoendevenir.com
Description: Child theme Kadence — design éditorial. Charte terracotta + crème + noir.
Author: Olivier BERAUD
Author URI: https://sexoendevenir.com
Template: kadence
Version: 1.7.0
License: GNU General Public License v2 or later
Text Domain: sexoendevenir-child
*/

:root {
  --sed-terracotta: #B85C3A;
  --sed-terracotta-hover: #D4825A;
  --sed-terracotta-deep: #8E3F22;
  --sed-cream: #FAF6F0;
  --sed-cream-light: #FFFCF6;
  --sed-cream-deep: #F2E9DA;
  --sed-cream-deeper: #E8DCC4;
  --sed-black: #1A1A1A;
  --sed-black-soft: #333333;
  --sed-gray: #6B6B6B;
}

body, p, li, blockquote { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--sed-black-soft); line-height: 1.7; font-size: 1.0625rem; }
h1, h2, h3, h4, h5, h6, .entry-title, .site-title { font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif; font-weight: 600; letter-spacing: -0.015em; color: var(--sed-black); }
h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.2; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); line-height: 1.3; }

a { color: var(--sed-terracotta); text-decoration: underline; text-underline-offset: 3px; transition: color .15s ease; }
a:hover, a:focus { color: var(--sed-terracotta-deep); }

.page .entry-header .entry-title, .page .entry-header { display: none; }

.sed-hero { position: relative; min-height: 78vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 3rem); background: radial-gradient(ellipse at 30% 20%, rgba(184, 92, 58, 0.12) 0%, transparent 55%), radial-gradient(ellipse at 75% 75%, rgba(212, 130, 90, 0.10) 0%, transparent 55%), var(--sed-cream); overflow: hidden; }
.sed-hero::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: clamp(280px, 45vw, 600px); height: clamp(280px, 45vw, 600px); background: radial-gradient(circle, rgba(184, 92, 58, 0.06) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.sed-hero > * { position: relative; z-index: 2; }
.sed-hero h1 { max-width: 18ch; margin: 0 auto; animation: sedFadeUp .8s ease-out; }
.sed-hero-eyebrow { display: inline-block; font-family: 'Inter', sans-serif; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sed-terracotta-deep); font-weight: 600; margin-bottom: 1.5rem; animation: sedFadeUp .6s ease-out; }
.sed-hero-lead { max-width: 60ch; margin: 1.75rem auto 2.5rem; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--sed-black-soft); animation: sedFadeUp 1s ease-out .15s backwards; }
.sed-hero-cta { animation: sedFadeUp 1s ease-out .3s backwards; }

.sed-ornament { display: flex; align-items: center; justify-content: center; margin: 3rem auto; max-width: 200px; }
.sed-ornament::before, .sed-ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--sed-terracotta) 50%, transparent); }
.sed-ornament > span { display: inline-block; padding: 0 1rem; color: var(--sed-terracotta); font-size: 1rem; }

.sed-section { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 3rem); }
.sed-section-alt { background: var(--sed-cream-deep); }
.sed-section-darker { background: var(--sed-cream-deeper); }
.sed-section h2 { text-align: center; margin-bottom: 1rem; }
.sed-section-eyebrow { display: block; text-align: center; font-family: 'Inter', sans-serif; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sed-terracotta-deep); font-weight: 600; margin-bottom: 1rem; }
.sed-section-lead { max-width: 60ch; margin: 0 auto 3rem; text-align: center; font-size: 1.1rem; color: var(--sed-black-soft); }

.sed-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 2rem auto; }
.sed-card { background: var(--sed-cream-light); border: 1px solid var(--sed-cream-deeper); border-radius: 12px; padding: 2rem 1.75rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative; }
.sed-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(184, 92, 58, 0.10); border-color: var(--sed-terracotta); }
.sed-card-num { display: inline-block; font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 700; color: var(--sed-terracotta); line-height: 1; margin-bottom: 0.75rem; }
.sed-card h3 { font-size: 1.35rem; margin: 0 0 0.75rem; }
.sed-card p { margin: 0; font-size: 0.98rem; color: var(--sed-black-soft); }

.sed-manifesto { max-width: 720px; margin: 0 auto; text-align: center; }
.sed-manifesto-quote { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.4; font-style: italic; color: var(--sed-black); margin: 2rem 0; position: relative; }
.sed-manifesto-quote::before, .sed-manifesto-quote::after { color: var(--sed-terracotta); font-size: 1.4em; line-height: 0; vertical-align: -0.1em; }
.sed-manifesto-quote::before { content: "« "; }
.sed-manifesto-quote::after { content: " »"; }

.sed-intro { background: var(--sed-cream-deep); border-left: 4px solid var(--sed-terracotta); padding: 2rem 2.25rem; margin: 2.5rem 0; font-size: 1.15rem; line-height: 1.65; color: var(--sed-black); border-radius: 0 8px 8px 0; }

.wp-block-button .wp-block-button__link { background: var(--sed-terracotta); color: var(--sed-cream-light); border-radius: 6px; padding: 16px 36px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; text-decoration: none; transition: all .25s ease; box-shadow: 0 4px 14px rgba(184, 92, 58, 0.25); }
.wp-block-button .wp-block-button__link:hover { background: var(--sed-terracotta-deep); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(184, 92, 58, 0.35); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--sed-terracotta); border: 2px solid var(--sed-terracotta); box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--sed-terracotta); color: var(--sed-cream-light); }

.sed-signature { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.35rem; color: var(--sed-terracotta); text-align: center; letter-spacing: 0.04em; padding: 3rem 0; margin: 0; }

table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 0.95em; background: var(--sed-cream-light); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
th, td { border-bottom: 1px solid var(--sed-cream-deeper); padding: 1rem 1.25rem; text-align: left; }
th { background: var(--sed-cream-deep); color: var(--sed-black); font-weight: 600; font-family: 'Inter', sans-serif; font-size: 0.95em; }
tr:last-child td { border-bottom: none; }

blockquote { border-left: 4px solid var(--sed-terracotta); padding: 1rem 0 1rem 2rem; margin: 2rem 0; color: var(--sed-black-soft); font-style: italic; font-size: 1.15rem; }
blockquote cite { display: block; margin-top: 0.75rem; font-style: normal; font-size: 0.85em; color: var(--sed-gray); }

.sed-redirection { background: var(--sed-cream-light); border: 1px solid var(--sed-terracotta); border-radius: 12px; padding: 2rem 2.25rem; margin: 2.5rem 0; box-shadow: 0 2px 12px rgba(184, 92, 58, 0.08); }
.sed-redirection h2, .sed-redirection h3 { color: var(--sed-terracotta-deep); margin-top: 0; text-align: left; }

.sed-faq-section { max-width: 800px; margin: 0 auto; }
.sed-faq-section h2 { text-align: left; border-bottom: 2px solid var(--sed-terracotta); padding-bottom: 0.5rem; display: inline-block; margin-top: 3rem; }
.sed-faq-section h3 { margin-top: 2.5rem; font-size: 1.4rem; color: var(--sed-terracotta-deep); }

/* === NEWSLETTER WIDGET === */
.sed-newsletter {
  background: linear-gradient(135deg, rgba(184,92,58,0.08), rgba(212,130,90,0.04));
  border: 1px solid var(--sed-cream-deeper);
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 640px;
  margin: 3rem auto;
  text-align: center;
  box-shadow: 0 4px 20px rgba(184, 92, 58, 0.08);
}
.sed-newsletter-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sed-terracotta-deep);
  font-weight: 600;
  margin-bottom: 1rem;
}
.sed-newsletter h2,
.sed-newsletter h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--sed-black);
}
.sed-newsletter p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--sed-black-soft);
}
.sed-newsletter iframe {
  width: 100% !important;
  max-width: 100%;
  background: var(--sed-cream-light) !important;
  border-radius: 8px !important;
  border: 1px solid var(--sed-cream-deeper) !important;
}
.sed-newsletter-fallback {
  margin-top: 1.25rem;
}
.sed-newsletter-fallback a {
  display: inline-block;
  background: var(--sed-terracotta);
  color: var(--sed-cream-light);
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all .25s ease;
  box-shadow: 0 4px 14px rgba(184, 92, 58, 0.25);
}
.sed-newsletter-fallback a:hover {
  background: var(--sed-terracotta-deep);
  transform: translateY(-2px);
  color: var(--sed-cream-light);
}

@keyframes sedFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  .sed-hero { min-height: 65vh; }
  .sed-cards { grid-template-columns: 1fr; }
  .sed-section { padding: 3rem 1.25rem; }
}

.entry-content > * { max-width: 100%; }
.content-bg, body, body.wp-singular, .site { background: var(--sed-cream); }

/* Menu — Newsletter en accent */
.menu-item.menu-item-newsletter > a,
.menu-item a[href*="substack.com"] {
  color: var(--sed-terracotta) !important;
  font-weight: 600;
}
