/* Espirée — styles complémentaires */

:root {
  --ep-prune: #3a2838;
  --ep-prune-claire: #6b5a66;
  --ep-texte: #4d3d49;
  --ep-turquoise: #B5C6D5;
  --ep-casse: #faf8f6;
  --ep-filet: #e6e0da;
}

/* Bulles qui respirent */
@keyframes ep-float { 0% { transform: translateY(0); } 45% { transform: translateY(-16px); } 100% { transform: translateY(0); } }
.ep-b1 { animation: ep-float 10s ease-in-out infinite; }
.ep-b2 { animation: ep-float 10s ease-in-out infinite; animation-delay: -2.5s; }
.ep-b3 { animation: ep-float 10s ease-in-out infinite; animation-delay: -5s; }
.ep-b4 { animation: ep-float 10s ease-in-out infinite; animation-delay: -7.5s; }
@media (prefers-reduced-motion: reduce) { .ep-b1, .ep-b2, .ep-b3, .ep-b4 { animation: none; } }
.ep-bubble { position: absolute; border-radius: 50%; background: var(--ep-turquoise); display: block; }

/* Petits libellés */
.ep-eyebrow, .ep-eyebrow a { font-size: 0.78rem !important; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ep-prune-claire); text-decoration: none; }
.ep-muted { color: var(--ep-prune-claire); }
.ep-serif-i, .ep-serif-i em, h1 em, h2 em { font-family: var(--wp--preset--font-family--instrument-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* Bandeau d'annonce */
.ep-announce { display: block; background: var(--ep-prune); color: #fff !important; text-align: center; padding: 11px 16px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none !important; }

/* En-tête */
.ep-header { border-bottom: 1px solid #ddd5ce; background: #fff; }
.ep-header-top { max-width: 1320px; margin: 0 auto; padding: 14px 24px 6px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; }
.ep-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--ep-prune); }
.ep-brand img { width: 40px; height: 56px; object-fit: contain; }
.ep-brand-txt { display: flex; flex-direction: column; gap: 6px; }
.ep-brand-name { font-family: var(--wp--preset--font-family--bodoni-moda); font-weight: 500; font-size: 38px; line-height: 1.05; letter-spacing: -0.015em; }
.ep-brand-sub { font-size: 8.5px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ep-prune-claire); padding-left: 2px; }
.ep-btn { display: inline-block; background: var(--ep-prune); color: #fff !important; text-decoration: none !important; padding: 13px 20px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--ep-prune); }
.ep-btn:hover { background: #1f141d; }
.ep-btn-ghost { background: transparent; color: var(--ep-prune) !important; }
.ep-btn-ghost:hover { background: var(--ep-prune); color: #fff !important; }
.ep-nav { max-width: 1320px; margin: 0 auto; padding: 0 24px 4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 36px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ep-nav a { text-decoration: none; padding: 12px 0; white-space: nowrap; color: var(--ep-prune); }
.ep-nav a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .ep-header-top { grid-template-columns: 1fr auto; }
  .ep-header-top .ep-lang { display: none; }
  .ep-brand-name { font-size: 30px; }
  .ep-nav { gap: 0 20px; justify-content: flex-start; }
}

/* Grilles et cartes */
.ep-wrap { max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.ep-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ep-grid-2 { display: grid; gap: 40px 72px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.ep-card { border: 1px solid var(--ep-filet); background: #fff; display: flex; flex-direction: column; }
.ep-card-top { position: relative; background: var(--ep-casse); padding: 30px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ep-card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ep-card-body p { margin: 0; }
.ep-card .ep-desc { font-size: 14.5px; line-height: 1.55; color: var(--ep-texte); flex: 1; }
.ep-card .ep-price { font-size: 18px; font-weight: 600; white-space: nowrap; margin: 8px 0 4px; }
.ep-card .ep-btn { text-align: center; font-size: 12px; padding: 14px 10px; }
.ep-badge { position: absolute; left: 14px; top: 14px; background: var(--ep-prune); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; }
.ep-dots { display: flex; gap: 6px; align-items: flex-end; height: 30px; }
.ep-dots span { border-radius: 50%; background: var(--ep-turquoise); display: inline-block; }
.ep-panel { background: var(--ep-casse); border: 1px solid var(--ep-filet); }
.ep-box { border: 1px solid var(--ep-filet); }
.ep-dark { background: var(--ep-prune); color: #fff; }
.ep-dark h2, .ep-dark p { color: #fff; }

/* Liste « ingrédients » */
.ep-ingredients { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ep-prune); }
.ep-ingredients li { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 8px 16px; padding: 22px 0; border-bottom: 1px solid #ddd5ce; }
.ep-ingredients .ep-num { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ep-prune-claire); }
.ep-ingredients .ep-mini { position: relative; width: 30px; height: 30px; flex: none; }
.ep-ingredients strong { display: block; font-size: 17px; font-weight: 600; color: var(--ep-prune); }
.ep-ingredients span.ep-v { font-size: 15px; line-height: 1.55; color: var(--ep-texte); }

/* Liste « ce qui fait la différence » */
.ep-diff { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 16px; padding: 18px 0; border-top: 1px solid #ddd5ce; }
.ep-diff .ep-n { font-family: var(--wp--preset--font-family--instrument-serif); font-style: italic; font-size: 34px; line-height: 1; }
.ep-diff strong { display: block; font-size: 22px; font-weight: 600; }
.ep-diff span.ep-v { font-size: 15.5px; line-height: 1.55; color: var(--ep-texte); }

/* Cartes d'articles (boucle de requête) */
.ep-posts .wp-block-post-template { gap: 16px; }
.ep-post-card { border: 1px solid var(--ep-filet); background: #fff; height: 100%; gap: 0 !important; }
.ep-post-top { position: relative; background: var(--ep-casse); min-height: 150px; padding: 20px; box-sizing: border-box; overflow: hidden; }
.ep-post-top .wp-block-post-terms a { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ep-prune-claire); text-decoration: none; }
.ep-post-body { padding: 20px 20px 22px; }
.ep-post-card .wp-block-post-title { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.ep-post-card .wp-block-post-title a { text-decoration: none; }
.ep-post-card .wp-block-post-excerpt__excerpt { font-size: 14.5px; line-height: 1.55; color: var(--ep-texte); }
.ep-post-card .wp-block-post-excerpt__more-link { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }

/* Article seul */
.ep-article { padding-top: 56px; padding-bottom: 96px; }
.ep-article .wp-block-post-title { font-size: clamp(2.1rem, 4.4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.035em; }
.ep-standfirst p, .ep-standfirst { font-family: var(--wp--preset--font-family--instrument-serif); font-style: italic; font-size: 1.5rem; line-height: 1.35; }
.ep-author { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; border-bottom: 1px solid var(--ep-filet); font-size: 14px; line-height: 1.4; }
.ep-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 38%; }
.ep-article .wp-block-post-content p, .ep-article .wp-block-post-content li { font-size: 1.125rem; line-height: 1.75; color: var(--ep-texte); }
.ep-article .wp-block-post-content h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.ep-article .wp-block-post-content h3 { font-size: 1.35rem; margin-top: 1.8rem; }
.ep-note p { font-size: 0.85rem !important; font-style: italic; color: var(--ep-prune-claire) !important; }
.ep-cta { background: var(--ep-casse); border: 1px solid var(--ep-filet); padding: 26px 26px 28px; }

/* FAQ */
.ep-faq .wp-block-details { border-top: 1px solid #ddd5ce; padding: 6px 0; }
.ep-faq .wp-block-details summary { cursor: pointer; padding: 18px 0; font-size: 18px; font-weight: 600; }
.ep-faq .wp-block-details p { color: var(--ep-texte); margin: 0 0 18px; }

/* Pied de page */
.ep-footer { background: var(--ep-casse); border-top: 1px solid #ddd5ce; }
.ep-footer a { text-decoration: none; }
.ep-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.ep-footer-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ep-footer h4 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ep-legal { margin: 0; padding-top: 22px; border-top: 1px solid #d3cac3; font-size: 12px; line-height: 1.6; color: #5e4d59; }

.ep-tel sup { font-size: 9px; opacity: 0.7; margin-right: 3px; }
.ep-tel .ep-zero { opacity: 0.6; }

/* Ajustements */
.ep-article .wp-block-post-content .wp-block-quote p { font-family: var(--wp--preset--font-family--instrument-serif); font-style: italic; font-size: 1.65rem; line-height: 1.3; color: var(--ep-prune); }
.ep-article .wp-block-post-content .wp-block-quote { margin: 2rem 0; }
.ep-cta h3 { margin-top: 0 !important; }
@media (max-width: 640px) {
  .ep-nav { gap: 0 18px; font-size: 11.5px; }
  .ep-nav a { padding: 9px 0; }
}

/* Sélecteur de langue */
.ep-lang { display: flex; align-items: center; gap: 6px; color: var(--ep-prune-claire); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }
.ep-lang a { color: var(--ep-prune-claire); text-decoration: none; padding: 4px 2px; }
.ep-lang a[aria-current] { color: var(--ep-prune); text-decoration: underline; text-underline-offset: 4px; }
.ep-lang a:hover { color: var(--ep-prune); }
.ep-nav .ep-lang-nav { display: none; }
@media (max-width: 640px) { .ep-nav .ep-lang-nav { display: flex; } .ep-nav .ep-lang-nav a { padding: 9px 2px; } }

/* Accueil : accroche centrée, puis les 3 points clés en bandeau */
.ep-hero-intro { max-width: 1200px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.ep-hero-intro h1 { font-size: clamp(40px, 6.2vw, 92px); line-height: 1.02; letter-spacing: -0.045em; }
.ep-hero-intro h1 .ep-nowrap { display: inline-block; }
@media (max-width: 640px) { .ep-hero-intro h1 .ep-nowrap { display: inline; } }
.ep-hero-lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--ep-texte); max-width: 700px; }
.ep-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 4px; }
.ep-hero-author { display: flex; align-items: center; gap: 14px; }
.ep-hero-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ep-turquoise); }
.ep-hero-diff { display: grid; grid-template-columns: minmax(0, 0.9fr) repeat(3, minmax(0, 1fr)); align-items: stretch; border-top: 1px solid var(--ep-prune); border-bottom: 1px solid #ddd5ce; }
.ep-hero-diff-title { margin: 0; padding: 28px 28px 28px 0; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; align-self: center; }
.ep-hero-diff-title em { display: block; }
.ep-hero-point { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 28px clamp(16px, 2vw, 28px); border-left: 1px solid #ddd5ce; }
.ep-hero-mark { position: relative; width: 36px; height: 36px; margin-top: 4px; }
.ep-hero-point p { margin: 0; }
.ep-hero-point-t { display: flex; align-items: baseline; gap: 10px; font-size: 21px; font-weight: 600; margin-bottom: 6px !important; }
.ep-hero-point .ep-n { font-family: var(--wp--preset--font-family--instrument-serif); font-style: italic; font-weight: 400; font-size: 26px; color: var(--ep-prune-claire); }
.ep-hero-point .ep-v { font-size: 15px; line-height: 1.55; color: var(--ep-texte); }
@media (max-width: 960px) {
  .ep-hero-diff { grid-template-columns: 1fr; }
  .ep-hero-diff-title { padding: 24px 0 8px; text-align: center; }
  .ep-hero-diff-title em { display: inline; }
  .ep-hero-point { border-left: 0; border-top: 1px solid #ddd5ce; padding: 20px 0; }
  .ep-hero-lead { font-size: 16.5px; }
}

/* Accessibilité : contrastes */
.ep-tel .ep-zero { opacity: 1; }
.ep-legal a { text-decoration: underline; text-underline-offset: 2px; }

/* Couleurs de la charte Espirée : une teinte par section */
.tone-peche      { --tone: #EBBEAF; --tone-bg: #FBEDE7; }
.tone-souffle    { --tone: #B5C6D5; --tone-bg: #ECF1F6; }
.tone-lilas      { --tone: #BAA6E4; --tone-bg: #F3EEFB; }
.tone-nude       { --tone: #E8C5BE; --tone-bg: #F8EBE7; }
.tone-terracotta { --tone: #DAB5AE; --tone-bg: #F5E6E2; }
.tone-pervenche  { --tone: #ADB4CB; --tone-bg: #EEF0F6; }
[class*="tone-"] .ep-dots span,
[class*="tone-"] .ep-bubble,
[class*="tone-"].ep-hero-point .ep-bubble { background: var(--tone); }
.ep-dark .ep-bubble { background: var(--ep-turquoise); }

/* Titres de section : même forme que « Ce qui fait la différence » */
.ep-sec-title { margin: 0; display: flex; align-items: flex-start; gap: 16px; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.06; font-weight: 600; letter-spacing: -0.025em; }
.ep-sec-title em { display: block; }
.ep-sec-mark { position: relative; flex: none; width: 34px; height: 34px; margin-top: 6px; }
.ep-sec-mark i { position: absolute; border-radius: 50%; background: var(--tone, var(--ep-turquoise)); }
.ep-sec-mark i:first-child { left: 0; top: 10px; width: 22px; height: 22px; }
.ep-sec-mark i:last-child { left: 20px; top: 0; width: 12px; height: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .ep-sec-mark i:first-child { animation: ep-float 10s ease-in-out infinite; }
  .ep-sec-mark i:last-child { animation: ep-float 10s ease-in-out infinite; animation-delay: -5s; }
}
#journal .ep-sec-title, #seances .ep-sec-title { flex: none; }

/* Cartes teintées */
.ep-tinted { background: var(--tone-bg); border-color: transparent; border-radius: 22px; }
.ep-card { border-radius: 22px; overflow: hidden; }
.ep-card .ep-card-top { background: var(--tone-bg, var(--ep-casse)); }
.ep-card .ep-badge { background: #3a2838; border-radius: 20px; }
.ep-hero-point .ep-n { color: #3a2838; }
.ep-hero-diff { border-top-color: var(--ep-prune); }
.ep-ingredients li .ep-num { color: var(--ep-prune-claire); }

/* Articles : une couleur par type */
.ep-post-card { border-radius: 22px; overflow: hidden; }
.category-comprendre       { --tone: #B5C6D5; --tone-bg: #ECF1F6; }
.category-la-methode       { --tone: #ADB4CB; --tone-bg: #EEF0F6; }
.category-les-gestes       { --tone: #EBBEAF; --tone-bg: #FBEDE7; }
.category-mon-histoire     { --tone: #E8C5BE; --tone-bg: #F8EBE7; }
.category-pour-les-proches { --tone: #BAA6E4; --tone-bg: #F3EEFB; }
[class*="category-"] .ep-post-top { background: var(--tone-bg, var(--ep-casse)); }
[class*="category-"] .ep-post-top .ep-bubble { background: var(--tone); }
.ep-article .wp-block-post-terms a { background: var(--tone-bg, var(--ep-casse)); padding: 6px 12px; border-radius: 20px; }
.ep-faq .wp-block-details summary::marker { color: var(--tone, var(--ep-prune)); }
.ep-faq .wp-block-details[open] summary { color: #3a2838; }
.ep-faq .wp-block-details { border-top-color: var(--tone-bg, #ddd5ce); border-top-width: 2px; }

/* Accroche alignée à gauche (comme avant) */
.ep-hero-intro { align-items: flex-start; text-align: left; margin: 0; }
.ep-hero-lead { max-width: 760px; }
.ep-hero-cta { justify-content: flex-start; }
@media (max-width: 960px) { .ep-hero-diff-title { text-align: left; } }

/* Photo du lac d'Annecy dans l'encart « Faisons connaissance » */
.ep-lac { position: relative; margin: 0; align-self: stretch; min-height: 340px; overflow: hidden; }
.ep-lac img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; display: block; }
.ep-lac .ep-bubble { position: absolute; opacity: .9; }
.ep-lac figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.45); }

/* Bulles animées à droite de l'accroche : de la crise (rouge) à l'apaisement (bleu) */
.ep-hero-intro { position: relative; max-width: none; }
.ep-hero-bulles span { position: absolute; border-radius: 50%; }
.ep-hb-in { position: absolute; inset: 0; }
/* Téléphone et tablette : petite colonne verticale au-dessus de l'accroche, à droite */
.ep-hero-bulles { position: relative; align-self: flex-end; width: clamp(56px, 12vw, 80px); aspect-ratio: 440 / 1060; margin: -8px 0 -40px; flex: none; pointer-events: none; }
.ep-hero-intro > .ep-eyebrow { padding-right: clamp(68px, 14vw, 96px); }
@media (min-width: 1100px) {
  .ep-hero-bulles { position: absolute; margin: 0; right: clamp(0px, 2vw, 40px); top: 50%; transform: translateY(-50%); width: clamp(150px, 13vw, 200px); }
  .ep-hero-intro > .ep-eyebrow { padding-right: 0; }
}
/* Les rouges passent, le rose pâle et les bleus restent plus longtemps */
@media (prefers-reduced-motion: no-preference) {
  .ep-hero-bulles span { opacity: 0; animation: ep-bulle 10s ease-in-out infinite; animation-delay: var(--d); }
  .ep-hero-bulles span.ep-hb-long { animation-name: ep-bulle-longue; }
}
@keyframes ep-bulle {
  0%   { opacity: 0; transform: translateY(24px) scale(.6); }
  12%  { opacity: 1; transform: translateY(0) scale(1); }
  35%  { opacity: 1; transform: translateY(-6px) scale(1.03); }
  50%, 100% { opacity: 0; transform: translateY(-20px) scale(.9); }
}
@keyframes ep-bulle-longue {
  0%   { opacity: 0; transform: translateY(24px) scale(.6); }
  12%  { opacity: 1; transform: translateY(0) scale(1); }
  50%  { transform: translateY(-6px) scale(1.03); }
  88%  { opacity: 1; transform: translateY(0) scale(1); }
  97%, 100% { opacity: 0; transform: translateY(-14px) scale(.95); }
}


/* « Apaiser. » : du rouge vif de la crise au bleu clair des bulles, l'apaisement */
.ep-apaiser, .ep-apaiser em { color: #9ED3E8; }
@media (min-width: 641px) { .ep-hero-intro h1 .ep-apaiser { display: block; } }
@media (prefers-reduced-motion: no-preference) {
  .ep-apaiser em { animation: ep-apaiser 8s ease-in-out infinite; }
}
@keyframes ep-apaiser {
  0%, 10%   { color: #EB0000; }
  22%       { color: #FF7B73; }
  36%       { color: #F4A6AE; }
  55%, 86%  { color: #9ED3E8; }
  93%       { color: #F4A6AE; }
  100%      { color: #EB0000; }
}
