/* Article du blog Floz Raku — chargé par blog.tpl, avec fz-blog.css (barre latérale, cartes, recherche). */
body#module-leoblog-blog { background: #faf8f3; }
body#module-leoblog-blog #wrapper { padding: 0; background: #faf8f3; }
body#module-leoblog-blog #footer { margin-top: 0; }

.fz-art-hero, .fz-art {
  --a-paper: #faf8f3;
  --a-cream: #f1ebe1;
  --a-ink: #252923;
  --a-text: #45463f;
  --a-muted: #625f56;
  --a-soft: #7d786d;
  --a-line: #e6dfd3;
  --a-teal: #287c79;
  --a-teal-dark: #1f6461;
  --a-teal-tint: #e2efec;
  --a-serif: var(--fz-serif, "Cormorant Garamond", Georgia, serif);
  --a-ease: cubic-bezier(.2, .7, .2, 1);
}
.fz-art-hero *, .fz-art *, .fz-art *::before, .fz-art *::after { box-sizing: border-box; }
.fz-art svg, .fz-art-hero svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fz-art a:focus-visible, .fz-art button:focus-visible { outline: 2px solid var(--a-teal); outline-offset: 3px; }

/* ---------- Hero ---------- */
.fz-art-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(320px, 27vw, 420px); overflow: hidden; color: #fff; background: #3a352d; }
.fz-art-hero__photo { position: absolute; z-index: -2; inset: 0 0 0 30%; margin: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.fz-art-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.fz-art-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(38, 33, 26, .55) 0%, rgba(38, 33, 26, .3) 45%, rgba(38, 33, 26, 0) 70%); }
.fz-art-hero--plain { background: linear-gradient(120deg, #3a352d 0%, #4a4438 55%, #2f5f5c 100%); }
.fz-art-hero__inner { width: min(100% - 30px, 1170px); margin: 0 auto; padding: 40px 0 46px; }
.fz-art-hero__crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 22px; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; }
.fz-art-hero__crumbs li { display: inline-flex; align-items: center; max-width: 100%; color: rgba(255, 255, 255, .86); }
.fz-art-hero__crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 12px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); opacity: .75; }
.fz-art-hero__crumbs li:last-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.fz-art-hero__crumbs a { color: #fff; text-decoration: none; }
.fz-art-hero__crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fz-art-hero__crumbs a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.fz-art-hero__title { max-width: 17ch; margin: 0; color: #fff; font-family: var(--a-serif); font-size: clamp(36px, 3.9vw, 56px); font-weight: 500; line-height: 1.06; letter-spacing: -.015em; text-transform: none; text-wrap: balance; overflow-wrap: break-word; }
.fz-art-hero__lead { max-width: 48ch; margin: 18px 0 0; color: #f5f0e6; font-size: 15px; line-height: 1.7; }

/* ---------- Mise en page ---------- */
.fz-art { padding: clamp(28px, 3vw, 40px) 0 clamp(48px, 5vw, 72px); color: var(--a-text); font-family: Poppins, sans-serif; }
.fz-art__layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(250px, 24vw, 296px); gap: clamp(36px, 5vw, 72px); align-items: start; }
.fz-art__main { min-width: 0; max-width: 760px; }
.fz-art.fz-art--missing { max-width: 640px; padding: 64px 0; }
.fz-art__missing-title { margin: 0 0 10px; color: var(--a-ink); font-family: var(--a-serif); font-size: 40px; font-weight: 500; text-transform: none; }
.fz-art__back { display: inline-flex; min-height: 44px; align-items: center; color: var(--a-teal-dark); font-weight: 500; text-decoration: underline; }

.fz-art__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 30px; padding: 0 0 22px; border-bottom: 1px solid var(--a-line); list-style: none; color: var(--a-soft); font-size: 13px; line-height: 1.4; }
.fz-art__meta li { display: inline-flex; align-items: center; gap: 7px; }
.fz-art__meta svg { width: 16px; height: 16px; color: var(--a-muted); }
.fz-art__meta a { color: var(--a-muted); text-decoration: none; }
.fz-art__meta a:hover { color: var(--a-teal-dark); text-decoration: underline; text-underline-offset: 3px; }

/* La barre latérale reprend les blocs de la page Blog. */
.fz-art .fz-art__side { padding: 0; display: grid; gap: 40px; }
.fz-art__side .fz-blog__side { grid-area: auto; gap: 40px; } /* « grid-area: side » vient de la page Blog */

/* ---------- Contenu éditorial (HTML saisi dans le back-office) ---------- */
.fz-prose { color: var(--a-text); font-size: 16px; line-height: 1.8; overflow-wrap: break-word; }
.fz-prose > *:first-child, .fz-prose > div:first-child > *:first-child { margin-top: 0 !important; }
/* Les anciens articles ont des styles en ligne (marges, tailles) : on uniformise la typographie. */
.fz-prose :is(p, div, span, li, a, strong, em, b, i)[style] { font-size: inherit !important; line-height: inherit !important; margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; }
.fz-prose :is(h2, h3, h4)[style] { padding: 0 !important; }
.fz-prose div { margin: 0 !important; }
.fz-prose p { margin: 0 0 1.15em !important; }
.fz-prose p:empty { display: none; }
.fz-prose h2 { margin: 2em 0 .7em !important; color: var(--a-ink); font-family: var(--a-serif) !important; font-size: clamp(26px, 2.2vw, 31px) !important; font-weight: 500; line-height: 1.2 !important; letter-spacing: -.01em; text-transform: none; }
.fz-prose h2::after { content: ""; display: block; width: 30px; height: 2px; margin-top: 12px; background: var(--a-teal); }
.fz-prose h3 { margin: 1.7em 0 .5em !important; color: var(--a-ink); font-family: Poppins, sans-serif !important; font-size: 18px !important; font-weight: 600; line-height: 1.4 !important; text-transform: none; }
.fz-prose h4, .fz-prose h5, .fz-prose h6 { margin: 1.5em 0 .5em !important; color: var(--a-ink); font-size: 16px !important; font-weight: 600; text-transform: none; }
.fz-prose strong, .fz-prose b { color: var(--a-ink); font-weight: 600; }
.fz-prose a { color: var(--a-teal-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease, text-decoration-color .2s ease; }
.fz-prose a:hover { color: var(--a-teal); text-decoration-color: transparent; }
.fz-prose ul, .fz-prose ol { margin: 0 0 1.3em !important; padding: 0 !important; list-style: none; }
.fz-prose li { position: relative; margin: 0 0 .55em; padding-left: 32px; }
.fz-prose ul > li::before { content: ""; position: absolute; left: 0; top: .32em; width: 19px; height: 19px; border-radius: 50%; background: var(--a-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.fz-prose ol { counter-reset: fz-ol; }
.fz-prose ol > li { counter-increment: fz-ol; }
.fz-prose ol > li::before { content: counter(fz-ol); position: absolute; left: 0; top: .2em; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--a-teal-tint); color: var(--a-teal-dark); font-size: 12px; font-weight: 600; line-height: 1; }
.fz-prose blockquote { position: relative; margin: 2em 0 !important; padding: 26px 30px 26px 96px !important; border: 0; border-radius: 8px; background: var(--a-cream); color: #3f453c; font-family: var(--a-serif); font-size: 21px !important; font-style: italic; line-height: 1.5 !important; }
.fz-prose blockquote::before { content: ""; position: absolute; left: 28px; top: 50%; width: 46px; height: 62px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80' fill='none' stroke='%236aa6a1' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 76C20 58 30 40 52 6M24 50c-9-1-15-6-17-14 9 0 15 5 17 14Zm6-12c2-9 8-14 16-15-1 8-7 13-16 15Zm-14 24c-9 1-14-3-16-10 8-1 13 3 16 10Zm22-38c-8-3-11-9-10-17 7 3 11 9 10 17Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.fz-prose blockquote p:last-child { margin-bottom: 0 !important; }
.fz-prose img { display: block; max-width: 100%; height: auto !important; margin: 1.6em 0 !important; border-radius: 8px; }
.fz-prose figure { margin: 1.8em 0 !important; }
.fz-prose figure img { margin: 0 !important; }
.fz-prose figcaption { margin-top: 10px; color: var(--a-soft); font-size: 13px; line-height: 1.5; text-align: center; }
.fz-prose table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 14.5px; }
.fz-prose th, .fz-prose td { padding: 10px 14px; border-bottom: 1px solid var(--a-line); text-align: left; vertical-align: top; }
.fz-prose th { color: var(--a-ink); font-weight: 600; background: #f5f1ea; }
.fz-prose hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--a-line); }
.fz-prose iframe, .fz-prose video, .fz-prose__video iframe { display: block; max-width: 100%; border: 0; border-radius: 8px; }
.fz-prose__video { margin: 2em 0; }

/* ---------- Pied d'article : tags, partage ---------- */
.fz-art__foot { display: grid; gap: 18px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--a-line); }
.fz-art__tags, .fz-art__share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fz-art__foot-label { color: var(--a-ink); font-size: 13.5px; font-weight: 600; }
.fz-art__tags ul, .fz-art__share ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fz-art__tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid #ddd5c7; border-radius: 999px; background: #fff; color: #4b4840; font-size: 13px; text-decoration: none; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.fz-art__tags a:hover { border-color: var(--a-teal); color: var(--a-teal-dark); background: var(--a-teal-tint); text-decoration: none; }
.fz-share { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid #d6cdbd; border-radius: 50%; background: #fff; color: var(--a-ink); cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.fz-share svg { width: 18px; height: 18px; }
.fz-share:hover { border-color: var(--a-teal); color: var(--a-teal-dark); background: var(--a-teal-tint); }
.fz-art__copied { color: var(--a-teal-dark); font-size: 13px; overflow-wrap: anywhere; }

/* ---------- Vous aimerez aussi ---------- */
.fz-art .fz-art__related { margin-top: clamp(48px, 5vw, 72px); padding: 0; }
.fz-art .fz-art__section-title { margin: 0 0 28px; color: var(--a-ink); font-family: var(--a-serif); font-size: clamp(30px, 2.6vw, 38px); font-weight: 500; line-height: 1.1; text-transform: none; }
.fz-art .fz-art__related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fz-art__related .fz-post__title { font-size: clamp(21px, 1.7vw, 24px); }

/* ---------- Commentaires ---------- */
.fz-comments { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 4.4vw, 64px); align-items: start; margin-top: clamp(48px, 5vw, 72px); padding-top: clamp(36px, 4vw, 52px); border-top: 1px solid var(--a-line); }
.fz-comments__count { color: var(--a-soft); font-size: .8em; }
.fz-comments__items { margin: 0; padding: 0; list-style: none; }
.fz-comment { display: flex; gap: 16px; padding: 20px 0; }
.fz-comment + .fz-comment { border-top: 1px solid var(--a-line); }
.fz-comment:first-child { padding-top: 4px; }
.fz-comment__avatar { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: #e7e1d6; color: #4b4840; font-family: var(--a-serif); font-size: 21px; font-weight: 600; }
.fz-comment__body { min-width: 0; }
.fz-comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 6px; }
.fz-comment__head strong { color: var(--a-ink); font-size: 15px; font-weight: 600; }
.fz-comment__head time { color: var(--a-soft); font-size: 12.5px; }
.fz-comment__text { margin: 0; color: var(--a-text); font-size: 14.5px; line-height: 1.7; overflow-wrap: anywhere; }
.fz-comments__empty { margin: 0; padding: 18px 20px; border-radius: 8px; background: #fff; border: 1px dashed #d8cfbf; color: var(--a-muted); font-size: 14.5px; }
.fz-comments .fz-pager { margin-top: 18px; }

.fz-comments__form { position: relative; overflow: hidden; padding: clamp(24px, 2.6vw, 34px); border: 1px solid var(--a-line); border-radius: 10px; background: #fdfbf7; }
.fz-comments__sprig { position: absolute; top: -4px; right: 14px; width: 60px; height: 80px; color: #b9ccc7; stroke-width: .9; transform: rotate(-24deg); pointer-events: none; }
.fz-comments__form-title { margin: 0; padding-right: 50px; color: var(--a-ink); font-family: var(--a-serif); font-size: 28px; font-weight: 500; line-height: 1.15; text-transform: none; }
.fz-comments__note { margin: 6px 0 18px; color: var(--a-soft); font-size: 13px; line-height: 1.55; }
.fz-cform__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.fz-cform__field { margin-bottom: 14px; min-width: 0; }
.fz-cform__field label { display: block; margin: 0 0 6px; color: var(--a-ink); font-size: 13px; font-weight: 500; text-align: left; }
.fz-cform__field label span { color: #a3271b; }
.fz-cform input[type="text"], .fz-cform input[type="email"], .fz-cform textarea { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid #ddd5c7; border-radius: 6px; background: #fff; color: var(--a-ink); font: 400 15px/1.4 Poppins, sans-serif; box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease; }
.fz-cform textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.fz-cform input::placeholder, .fz-cform textarea::placeholder { color: #9a9488; opacity: 1; }
.fz-cform input:focus, .fz-cform textarea:focus { border-color: var(--a-teal); outline: none; box-shadow: 0 0 0 3px rgba(40, 124, 121, .16); }
.fz-cform__captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fz-cform__captcha-row img { display: block; flex: 0 0 auto; width: auto; height: 48px; border: 1px solid #ddd5c7; border-radius: 6px; background: #fff; }
.fz-cform__captcha-row input[type="text"] { flex: 1 1 120px; max-width: 200px; }
.fz-cform__refresh { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ddd5c7; border-radius: 50%; background: #fff; color: var(--a-muted); cursor: pointer; }
.fz-cform__refresh svg { width: 18px; height: 18px; }
.fz-cform__refresh:hover { border-color: var(--a-teal); color: var(--a-teal-dark); }
.fz-cform .fz-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fz-cform__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 230px; min-height: 52px; margin-top: 6px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--a-teal); color: #fff; font: 500 15px/1.2 Poppins, sans-serif; text-transform: none; letter-spacing: normal; cursor: pointer; transition: background-color .2s ease; }
.fz-cform__btn:hover, .fz-cform__btn:focus { background: var(--a-teal-dark); color: #fff; }
.fz-cform__btn .btn-submit-comment { display: inline-flex; align-items: center; gap: 10px; }
.fz-cform__btn svg { width: 18px; height: 18px; }
.fz-cform__btn .leoblog-cssload-container { display: none; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: fz-art-tourne .8s linear infinite; }
.fz-cform__btn.bt-active { cursor: progress; }
@keyframes fz-art-tourne { to { transform: rotate(360deg); } }
/* Message renvoyé par le module après l'envoi (inséré avant le formulaire par leoblog.js). */
.fz-comments__form .comment-message .alert { margin: 0 0 16px; padding: 12px 14px; border: 0; border-radius: 6px; font-size: 14px; line-height: 1.5; }
.fz-comments__form .comment-message .alert-info { color: #1d5b40; background: #e3f1e8; }
.fz-comments__form .comment-message .alert-warning { color: #7c2016; background: #fbefec; }

/* ---------- Tablette ---------- */
@media (max-width: 991px) {
  .fz-art__layout { grid-template-columns: minmax(0, 1fr); }
  .fz-art__main { max-width: none; }
  .fz-art .fz-art__side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; padding-top: 32px; border-top: 1px solid var(--a-line); }
  .fz-art__side .fz-search { grid-column: 1 / -1; max-width: 520px; }
  .fz-art__side .fz-blog__side { display: contents; }
  .fz-art .fz-art__related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fz-comments { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .fz-art-hero { align-items: flex-end; min-height: 400px; }
  .fz-art-hero__photo { inset: 0; -webkit-mask-image: none; mask-image: none; }
  .fz-art-hero::before { background: linear-gradient(180deg, rgba(38, 33, 26, .05) 0%, rgba(38, 33, 26, .3) 30%, rgba(38, 33, 26, .86) 68%, rgba(38, 33, 26, .93) 100%); }
  .fz-art-hero__inner { width: calc(100% - 32px); padding: 110px 0 28px; }
  .fz-art-hero__crumbs li:last-child { display: none; }
  .fz-art-hero__crumbs li:nth-last-child(2) span, .fz-art-hero__crumbs li:nth-last-child(2) a { white-space: nowrap; }
  .fz-art-hero__title { font-size: clamp(31px, 8.6vw, 38px); }

  .fz-art { padding-top: 22px; }
  .fz-art__meta { gap: 8px 16px; margin-bottom: 24px; padding-bottom: 18px; font-size: 12.5px; }
  .fz-prose { font-size: 16px; line-height: 1.75; }
  .fz-prose blockquote { padding: 70px 20px 22px !important; font-size: 19px !important; }
  .fz-prose blockquote::before { left: 20px; top: 16px; width: 34px; height: 46px; transform: none; }
  .fz-prose table { display: block; overflow-x: auto; }

  .fz-art .fz-art__side { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fz-art__side .fz-side--recent { display: none; }
  .fz-art .fz-art__related-grid { grid-template-columns: minmax(0, 1fr); }

  .fz-comments__form { padding: 22px 18px; }
  .fz-cform__pair { grid-template-columns: minmax(0, 1fr); }
  .fz-cform input[type="text"], .fz-cform input[type="email"], .fz-cform textarea { font-size: 16px; }
  .fz-cform__btn { width: 100%; min-width: 0; }
  .fz-cform__captcha-row img { max-width: calc(100% - 54px); object-fit: contain; }
  .fz-cform__captcha-row input[type="text"] { flex-basis: 100%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fz-art *, .fz-art *::before, .fz-art *::after { transition: none !important; }
}

/* Le thème place une icône en position absolue sur les alertes : elle recouvrait le message de confirmation. */
.fz-comments__form .comment-message .alert::before, .fz-comments__form .comment-message .alert::after { content: none !important; display: none !important; }
