/* Elyom Site : blog (grille d'articles, article seul) et liens de zones du pied de page. */
.ely-blog, .ely-post, .ely-related { --ely-ink: #0E1638; --ely-blue: #24387D; --ely-orange: #ED7224; --ely-muted: #5B6283; --ely-line: #E6E2DA; --ely-sand: #F6F3EE;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ely-ink); }

/* Grille */
.ely-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1024px) { .ely-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ely-blog-grid { grid-template-columns: 1fr; gap: 16px; } }
.ely-card { background: #fff; border: 1px solid var(--ely-line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.ely-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgb(14 22 56 / .10); }
.ely-card-img { display: block; aspect-ratio: 16 / 9; background: linear-gradient(140deg, #0E1638, #24387D 60%, #ED7224 130%); overflow: hidden; }
.ely-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ely-card-ph { display: grid; place-items: center; width: 100%; height: 100%; font: 700 64px/1 "Bricolage Grotesque", system-ui, sans-serif; color: rgba(255,255,255,.9); letter-spacing: -2px; }
.ely-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.ely-card-cat { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ely-blue); background: #E8ECF7; border-radius: 999px; padding: 4px 10px; }
.ely-card-title { margin: 2px 0 0 !important; font: 700 20px/1.25 "Bricolage Grotesque", system-ui, sans-serif !important; letter-spacing: -.3px; }
.ely-card-title a { color: var(--ely-ink) !important; text-decoration: none !important; }
.ely-card-title a:hover { color: var(--ely-blue) !important; }
.ely-card-excerpt { margin: 0 !important; color: var(--ely-muted); font-size: 15.5px; line-height: 1.55; }
.ely-card-meta { margin: auto 0 0 !important; padding-top: 6px; color: #8A90AA; font-size: 13.5px; }
.ely-card-more { font-weight: 700; font-size: 15px; color: var(--ely-orange) !important; text-decoration: none !important; }
.ely-card-more:hover span { margin-left: 4px; }
.ely-card-more span { transition: margin .2s ease; }

/* Filtres et pagination */
.ely-blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.ely-blog-filters a, .ely-blog-pages a, .ely-blog-pages span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ely-line);
  background: #fff; color: var(--ely-ink) !important; font-weight: 600; font-size: 14.5px; text-decoration: none !important; }
.ely-blog-filters a:hover, .ely-blog-pages a:hover { border-color: var(--ely-blue); }
.ely-blog-filters a[aria-current], .ely-blog-pages span { background: var(--ely-ink); border-color: var(--ely-ink); color: #fff !important; }
.ely-blog-pages { display: flex; gap: 8px; justify-content: center; margin-top: 34px; }
.ely-blog-empty { text-align: center; color: var(--ely-muted); padding: 32px 16px; background: #fff; border: 1px dashed var(--ely-line); border-radius: 20px; }

/* Article seul (thème Hello) */
body.single-post:not(.ely-single) .site-main, body.single-post:not(.ely-single) main#content { max-width: 780px; margin: 0 auto; padding: 48px 20px 24px; }
body.single-post:not(.ely-single) .page-header .entry-title, body.single-post:not(.ely-single) h1.entry-title { font: 700 clamp(32px, 5vw, 48px)/1.08 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -1.2px; color: #0E1638; margin: 0 0 10px; }
.ely-post-meta { color: var(--ely-muted); font-size: 14.5px; margin: 0 0 24px !important; }
.ely-post-meta a { color: var(--ely-blue); font-weight: 700; text-decoration: none; }
.ely-toc { background: var(--ely-sand); border-radius: 18px; padding: 18px 22px; margin: 0 0 30px; }
.ely-toc p { margin: 0 0 8px !important; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--ely-blue); }
.ely-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.ely-toc a { color: var(--ely-ink); text-decoration: none; }
.ely-toc a:hover { color: var(--ely-orange); text-decoration: underline; }
.ely-post-body { font-size: 18px; line-height: 1.72; color: #1B2140; }
.ely-post-body h2 { font: 700 clamp(24px, 3.4vw, 30px)/1.2 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.5px; color: #0E1638; margin: 40px 0 12px; scroll-margin-top: 110px; }
.ely-post-body h3 { font: 700 21px/1.3 "Bricolage Grotesque", system-ui, sans-serif; color: #0E1638; margin: 28px 0 8px; }
.ely-post-body p, .ely-post-body ul, .ely-post-body ol { margin: 0 0 18px; }
.ely-post-body ul, .ely-post-body ol { padding-left: 22px; }
.ely-post-body li { margin: 0 0 8px; }
.ely-post-body li::marker { color: var(--ely-orange); }
.ely-post-body a { color: var(--ely-blue); text-underline-offset: 3px; }
.ely-post-body img { border-radius: 16px; height: auto; }
.ely-post-cta { margin: 44px 0 10px; padding: 30px 30px 26px; border-radius: 26px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #24387D 0%, #0E1638 60%); }
.ely-post-cta p { margin: 0 0 10px !important; color: #AEB6D8; font-size: 16.5px; line-height: 1.6; }
.ely-post-cta .ely-post-cta-eb { color: var(--ely-orange); font-weight: 700; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; }
.ely-post-cta .ely-post-cta-title { color: #fff; font: 700 clamp(22px, 3vw, 28px)/1.2 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.5px; }
.ely-post-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px !important; }
.ely-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ely-orange); color: #0E1638 !important;
  font-weight: 700; text-decoration: none !important; transition: background .2s ease; }
.ely-btn:hover { background: #F48A47; }
.ely-btn-ghost { background: transparent; color: #fff !important; border: 1.5px solid #2A3566; }
.ely-btn-ghost:hover { background: #18224A; }
.ely-related { margin: 48px 0 0; }
.ely-related-title { font: 700 26px/1.2 "Bricolage Grotesque", system-ui, sans-serif !important; color: #0E1638; margin: 0 0 18px !important; }
body.single-post .ely-related .ely-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  body.single-post .ely-related .ely-blog-grid { grid-template-columns: 1fr; }
  .ely-post-body { font-size: 17px; }
  .ely-post-cta { padding: 24px 20px 20px; border-radius: 22px; }
  .ely-post-cta-btns .ely-btn { flex: 1 1 100%; justify-content: center; }
}

/* Pied de page : liens « Création de site internet à … » */
.ely-foot-zones { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px !important; }
.ely-foot-zones .ely-foot-link .elementor-heading-title { font-size: 14px !important; }
@media (max-width: 767px) { .ely-foot-zones .e-con { gap: 6px 16px !important; } }

/* Liens-pastilles des pages locales */
.ely-chip-link a { text-decoration: none !important; color: inherit !important; }
.ely-chip-link:hover { border-color: #ED7224 !important; }
.ely-toc ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; list-style: none; padding-left: 0; }
.ely-card-img, .ely-card-img:hover { text-decoration: none !important; color: inherit !important; }
.ely-related .ely-card-title { font-size: 17px !important; }
.ely-related .ely-card-excerpt { display: none; }
.ely-related .ely-card-body { padding: 16px 16px 18px; }
.ely-related .ely-card-cat { font-size: 11px; }
.ely-related { margin-bottom: 48px; }


/* =================== Article : mise en page Elyom =================== */
body.ely-single { background: #fff !important; background-image: none !important; }
.ely-article { --ely-ink: #0E1638; --ely-blue: #24387D; --ely-orange: #ED7224; --ely-muted: #5B6283; --ely-line: #E6E2DA; --ely-sand: #F6F3EE;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ely-ink); background: #fff; overflow-x: clip; }
.ely-article *, .ely-article *::before, .ely-article *::after { box-sizing: border-box; }
.ely-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ely-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100000; pointer-events: none; }
.ely-progress span { display: block; height: 100%; width: 0; background: var(--ely-orange, #ED7224); transition: width .1s linear; }

.ely-article-hero { background: radial-gradient(120% 120% at 100% 0%, #24387D 0%, #0E1638 62%); color: #fff; padding: 56px 0 120px; }
.ely-article-hero .ely-wrap { max-width: 960px; }
.ely-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: #AEB6D8; margin: 0 0 22px; }
.ely-crumbs a { color: #AEB6D8 !important; text-decoration: none !important; }
.ely-crumbs a:hover { color: #fff !important; }
.ely-article-cat { display: inline-block; background: rgba(237,114,36,.16); color: #F6A56E !important; border: 1px solid rgba(237,114,36,.35); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; text-decoration: none !important; margin-bottom: 18px; }
.ely-article-title { font: 700 clamp(34px, 5.4vw, 60px)/1.04 "Bricolage Grotesque", system-ui, sans-serif !important; letter-spacing: -1.6px; color: #fff !important; margin: 0 0 18px !important; max-width: 900px; }
.ely-article-lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: #C9CFEA; margin: 0 0 26px; max-width: 760px; }
.ely-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: #AEB6D8; font-size: 14.5px; }
.ely-article-meta > span:not(.ely-author)::before { content: "•"; margin-right: 22px; color: #4B5689; }
.ely-author { display: inline-flex; align-items: center; gap: 10px; }
.ely-author b { display: block; color: #fff; font-weight: 700; }
.ely-author small { display: block; color: #AEB6D8; font-size: 12.5px; }
.ely-avatar { border-radius: 50%; border: 2px solid rgba(255,255,255,.18); }

.ely-article-cover { margin: -84px auto 0 !important; max-width: 1200px; }
.ely-article-cover img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 26px; display: block; box-shadow: 0 30px 60px rgb(14 22 56 / .22); }

.ely-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; margin-top: 52px; margin-bottom: 72px; align-items: start; }
.ely-article-grid.no-cover { margin-top: -60px; }
.ely-article-grid.no-cover .ely-article-main { background: #fff; border-radius: 26px; padding: 40px 44px 8px; box-shadow: 0 24px 50px rgb(14 22 56 / .10); }
.ely-article-main { min-width: 0; max-width: 760px; }
.ely-article .ely-post-body { font-size: 18.5px; line-height: 1.75; color: #1B2140; }
.ely-article .ely-post-body > *:first-child { margin-top: 0; }
.ely-article .ely-post-body > p:first-child { font-size: 20px; color: #0E1638; }
.ely-article .ely-post-body h2 { font-size: clamp(25px, 3.2vw, 32px); margin: 46px 0 14px; padding-top: 4px; }
.ely-article .ely-post-body h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--ely-orange); margin-bottom: 14px; }
.ely-article .ely-post-body blockquote { margin: 28px 0; padding: 18px 24px; border-left: 4px solid var(--ely-orange); background: var(--ely-sand); border-radius: 0 16px 16px 0; font-size: 19px; color: #0E1638; }
.ely-article .ely-post-body figure { margin: 28px 0; }
.ely-article .ely-post-body figcaption { color: var(--ely-muted); font-size: 14px; text-align: center; margin-top: 8px; }
.ely-article .ely-post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.ely-article .ely-post-body th, .ely-article .ely-post-body td { border-bottom: 1px solid var(--ely-line); padding: 10px 12px; text-align: left; }
.ely-article .ely-post-body th { background: var(--ely-sand); }
.ely-article .ely-post-body strong { color: #0E1638; }

.ely-article-side { position: relative; min-width: 0; align-self: stretch; }
.ely-side-sticky { position: sticky; top: 110px; display: grid; gap: 18px; }
body.admin-bar .ely-side-sticky { top: 142px; }
.ely-side-sticky .ely-toc { margin: 0; background: var(--ely-sand); border: 1px solid var(--ely-line); max-height: 52vh; overflow: auto; }
.ely-side-sticky .ely-toc a { display: block; padding: 3px 0; font-size: 14.5px; line-height: 1.4; color: #3A416A; }
.ely-side-sticky .ely-toc a.is-active { color: var(--ely-orange); font-weight: 700; }
.ely-side-sticky .ely-post-cta { margin: 0; padding: 24px 22px 20px; border-radius: 22px; }
.ely-side-sticky .ely-post-cta-title { font-size: 21px !important; }
.ely-side-sticky .ely-post-cta p { font-size: 15px; }
.ely-side-sticky .ely-post-cta-btns .ely-btn { flex: 1 1 100%; justify-content: center; }
.ely-toc-mobile { display: none; }

.ely-article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.ely-article-tags span { background: #E8ECF7; color: var(--ely-blue); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; font-weight: 600; }
.ely-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 0; padding: 18px 0; border-top: 1px solid var(--ely-line); border-bottom: 1px solid var(--ely-line); }
.ely-share span { font-weight: 700; margin-right: 6px; }
.ely-share a, .ely-share button { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ely-line); background: #fff;
  color: var(--ely-ink) !important; font: 600 14px/1 inherit; font-family: inherit; text-decoration: none !important; cursor: pointer; }
.ely-share a:hover, .ely-share button:hover { border-color: var(--ely-orange); color: var(--ely-orange) !important; }
.ely-author-box { display: flex; gap: 16px; align-items: flex-start; margin: 30px 0 0; padding: 22px; background: var(--ely-sand); border-radius: 20px; }
.ely-author-box p { margin: 0 !important; color: var(--ely-muted); font-size: 15.5px; line-height: 1.6; }
.ely-author-box .ely-author-name { color: var(--ely-ink); font-weight: 700; font-size: 17px; margin-bottom: 4px !important; }
.ely-author-box .ely-avatar { border-color: #fff; flex: none; }
.ely-cta-end { display: none; }

.ely-article-related { background: var(--ely-sand); padding: 64px 0 72px; }
.ely-related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.ely-related-head h2 { font: 700 clamp(26px, 3.4vw, 36px)/1.1 "Bricolage Grotesque", system-ui, sans-serif !important; letter-spacing: -.8px; color: #0E1638; margin: 0 !important; }
.ely-related-head a { color: var(--ely-orange) !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.ely-article-comments { max-width: 860px; padding-top: 48px; padding-bottom: 48px; }

@media (max-width: 1024px) {
  .ely-article-grid { grid-template-columns: 1fr; gap: 0; }
  .ely-article-side { display: none; }
  .ely-cta-end { display: block; }
  .ely-toc-mobile { display: block; background: var(--ely-sand); border-radius: 18px; margin: 0 0 28px; border: 1px solid var(--ely-line); }
  .ely-toc-mobile summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; color: var(--ely-blue); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; display: flex; justify-content: space-between; }
  .ely-toc-mobile summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--ely-orange); }
  .ely-toc-mobile[open] summary::after { content: "–"; }
  .ely-toc-mobile summary::-webkit-details-marker { display: none; }
  .ely-toc-mobile .ely-toc { margin: 0; padding-top: 0; background: none; }
  .ely-toc-mobile .ely-toc > p { display: none; }
  .ely-article-main { max-width: none; }
}
@media (max-width: 640px) {
  .ely-wrap { padding: 0 18px; }
  .ely-article-hero { padding: 34px 0 86px; }
  .ely-article-title { letter-spacing: -1px; }
  .ely-article-meta > span:not(.ely-author)::before { display: none; }
  .ely-article-meta { gap: 8px 16px; font-size: 13.5px; }
  .ely-author { flex: 1 1 100%; }
  .ely-article-cover { margin-top: -60px !important; }
  .ely-article-cover img { border-radius: 18px; }
  .ely-article-grid { margin-top: 32px; margin-bottom: 48px; }
  .ely-article-grid.no-cover { margin-top: -50px; }
  .ely-article-grid.no-cover .ely-article-main { padding: 26px 20px 4px; border-radius: 20px; }
  .ely-article .ely-post-body { font-size: 17px; }
  .ely-article .ely-post-body > p:first-child { font-size: 18px; }
  .ely-related-head { flex-direction: column; align-items: flex-start; }
  .ely-article-related { padding: 44px 0 52px; }
}

/* Commentaires aux couleurs Elyom */
.ely-article-comments { font-size: 16px; color: #1B2140; }
.ely-article-comments h2, .ely-article-comments h3, .ely-article-comments .comment-reply-title { font: 700 clamp(24px, 3vw, 30px)/1.2 "Bricolage Grotesque", system-ui, sans-serif !important; color: #0E1638; letter-spacing: -.5px; margin: 0 0 10px; }
.ely-article-comments label { font-weight: 600; color: #0E1638; }
.ely-article-comments input[type=text], .ely-article-comments input[type=email], .ely-article-comments input[type=url], .ely-article-comments textarea {
  width: 100%; border: 1px solid #E6E2DA !important; border-radius: 14px !important; padding: 12px 14px !important; background: #fff; font: inherit; color: #0E1638; }
.ely-article-comments input:focus, .ely-article-comments textarea:focus { outline: none; border-color: #24387D !important; box-shadow: 0 0 0 3px rgb(36 56 125 / .15); }
.ely-article-comments input[type=submit], .ely-article-comments .submit { background: #ED7224 !important; color: #0E1638 !important; border: 0 !important; border-radius: 999px !important;
  padding: 14px 26px !important; font-weight: 700 !important; cursor: pointer; font-family: inherit; }
.ely-article-comments input[type=submit]:hover { background: #F48A47 !important; }
.ely-article-comments a { color: #24387D; }
.ely-article-comments .comment-list { list-style: none; padding: 0; }
.ely-article-comments .comment-body { background: #F6F3EE; border-radius: 18px; padding: 18px 20px; margin-bottom: 14px; }

/* 2.5.1 : page des articles */
.ely-archive-hero { padding: 56px 0 96px; }
.ely-archive-eb { margin: 18px 0 10px !important; font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--ely-orange, #ED7224); }
.ely-archive-body { position: relative; margin-top: -56px; padding-bottom: 72px; }
.ely-archive-body > .ely-blog { background: #fff; border-radius: 28px; padding: clamp(18px, 3vw, 36px); box-shadow: 0 20px 60px rgba(14,22,56,.08); }
.ely-archive-body .ely-post-cta { margin-top: 32px; }
@media (max-width: 782px) { .ely-archive-hero { padding: 34px 0 76px; } .ely-archive-body { margin-top: -44px; } }
@media (max-width: 600px) { .ely-blog-filters { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } .ely-blog-filters a { flex: none; } }
