/* Rubriqua, glossaire et pages définition */

[hidden] { display: none !important; }

/* Page Glossaire */
.gl-hero { color: var(--white); }
.gl-hero-inner { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.gl-hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; max-width: 820px; }
.gl-lead { color: #cfcbc4; font-size: 19px; line-height: 1.6; max-width: 680px; }
.gl-search { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 700; color: #cfcbc4; max-width: 720px; }
.gl-search input { font: inherit; font-size: 20px; font-weight: 500; padding: 18px 20px; border: 0; border-radius: 8px; background: var(--white); color: var(--ink); }
.gl-search input:focus { outline: 2px solid var(--red-light); outline-offset: 2px; }
.gl-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-width: 1000px; }
.gl-letters > span { display: contents; }
.gl-letters a, .gl-letters [aria-disabled] { height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 18px; text-decoration: none; }
.gl-letters a { border: 1px solid var(--white); color: var(--white); background: rgba(22, 22, 22, .85); font-weight: 800; }
.gl-letters a:hover { background: var(--white); color: var(--ink); }
.gl-letters [aria-disabled] { border: 1px dashed #3a3a3a; color: #6b6660; font-weight: 600; }

.gl-list { padding-top: 40px; padding-bottom: 96px; }
.gl-list-inner { max-width: 1000px; display: flex; flex-direction: column; gap: 40px; }
.gl-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.gl-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-themes button { font: inherit; font-size: 15px; font-weight: 700; padding: 10px 16px; border-radius: 6px; cursor: pointer; background: var(--white); color: var(--ink); border: 1px solid #d6d1c9; }
.gl-themes button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.gl-count { font-size: 15px; color: var(--muted); }
.gl-letter { display: flex; flex-direction: column; scroll-margin-top: 100px; }
.gl-letter-head { display: flex; align-items: center; gap: 16px; padding-bottom: 6px; }
.gl-letter-head h2 { font-size: 28px; font-weight: 800; color: var(--red); letter-spacing: -0.02em; }
.gl-letter-head::after { content: ""; flex: 1; height: 2px; background: var(--ink); }
.gl-row { display: flex; align-items: center; gap: 24px; padding: 20px 16px; margin: 0 -16px; border-bottom: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); scroll-margin-top: 100px; transition: background .2s; }
.gl-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gl-row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.gl-row-name { font-size: 21px; font-weight: 800; }
.gl-row-alt { font-size: 14px; font-weight: 600; color: var(--muted); }
.gl-row-def { font-size: 16px; line-height: 1.6; color: var(--text); }
.gl-row-theme { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.gl-row-go { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--beige); color: var(--red); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
a.gl-row .gl-row-name { color: var(--red); text-decoration: underline; text-decoration-color: var(--red-light); text-decoration-thickness: 2px; text-underline-offset: 6px; }
a.gl-row:hover { background: var(--beige); }
a.gl-row:hover .gl-row-name { text-decoration-color: var(--red); }
a.gl-row:hover .gl-row-go { background: var(--red); color: var(--white); }
div.gl-row:target { background: #fbf1f0; }
.gl-empty { font-size: 17px; color: var(--text); }
.gl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; border-top: 2px solid var(--ink); }
.gl-cta p { font-size: 22px; font-weight: 800; max-width: 620px; line-height: 1.3; }

/* Page définition */
.df-head { background: var(--beige); }
.df-head-inner { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.df-head h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; max-width: 900px; text-wrap: balance; }
.df-alt { font-size: 19px; font-weight: 600; color: var(--text); }
.df-meta { font-size: 14px; color: var(--muted); }
.df-brief { margin-top: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 26px 30px; max-width: 860px; display: flex; flex-direction: column; gap: 10px; }
.df-brief b { font-size: 13px; color: var(--red); }
.df-brief p { font-size: 20px; line-height: 1.55; font-weight: 600; color: var(--ink); }
.df-layout { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; padding-top: 56px; padding-bottom: 80px; }
.df-main { flex: 999 1 600px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.df-main h2 { font-size: 30px; letter-spacing: -0.03em; line-height: 1.2; margin-top: 30px; scroll-margin-top: 100px; }
.df-main h3 { font-size: 20px; letter-spacing: -0.01em; margin-top: 12px; }
.df-main p, .df-main li { font-size: 17px; line-height: 1.75; color: var(--text); }
.df-main ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.df-main a { color: var(--red); }
.df-main em { font-style: italic; }
.df-keep { background: var(--beige); border-radius: 10px; padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.df-keep h2 { margin-top: 0 !important; font-size: 22px !important; }
.df-keep li { font-size: 16px !important; line-height: 1.6 !important; }
.df-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.df-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.df-table th, .df-table td { padding: 14px 18px; text-align: left; vertical-align: top; line-height: 1.5; border-top: 1px solid var(--line); }
.df-table thead th { background: var(--beige); font-size: 13px; border-top: 0; }
.df-aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 100px; }
.df-aside nav { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.df-aside-title { font-size: 13px; font-weight: 800; color: var(--muted); }
.df-aside nav a { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.4; }
.df-aside nav a:hover { color: var(--red); }
.df-related { display: flex; flex-wrap: wrap; gap: 8px; }
.df-related a { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; border: 1px solid #d6d1c9; border-radius: 6px; padding: 8px 12px; }
.df-related a:hover { border-color: var(--ink); }
.df-card { color: var(--white); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.df-card b { font-size: 20px; line-height: 1.3; }
.df-card p { font-size: 15px; line-height: 1.6; color: #cfcbc4; }
.df-card .btn { align-self: flex-start; }
.df-near { border-top: 1px solid var(--line); }
.df-near-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 56px; }
.df-near a { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.df-near a span { font-size: 13px; color: var(--muted); }
.df-near a:hover b { color: var(--red); }

/* Simulateur de ROAS */
.roas-sim { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.roas-sim h3 { margin: 0 !important; font-size: 22px !important; }
.roas-sim p { font-size: 15px !important; line-height: 1.6 !important; }
.roas-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.roas-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.roas-fields .unit { display: flex; align-items: center; border: 1px solid #cfcbc4; border-radius: 6px; background: var(--white); }
.roas-fields .unit:focus-within { outline: 2px solid var(--red); outline-offset: 1px; }
.roas-fields input { font: inherit; font-size: 17px; font-weight: 600; border: 0; padding: 12px; min-width: 0; flex: 1; background: transparent; color: var(--ink); outline: none; }
.roas-fields .unit span { padding-right: 12px; color: var(--muted); font-weight: 600; }
.roas-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.roas-results div { background: var(--beige); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.roas-results b { font-size: 26px; letter-spacing: -0.03em; color: var(--ink); }
.roas-results span { font-size: 13px; color: #5a5650; }
.roas-verdict { font-size: 16px !important; font-weight: 700; padding: 14px 16px; border-radius: 8px; }
.roas-verdict.ok { background: #eaf3ec; color: #24552d !important; }
.roas-verdict.ko { background: #fbeceb; color: var(--red) !important; }
.roas-verdict.neutre { background: var(--beige); }
.roas-note { font-size: 13px !important; color: var(--muted) !important; }

@media (max-width: 1024px) {
  .df-aside { position: static; }
}
@media (max-width: 760px) {
  .gl-hero-inner { padding-top: 40px; padding-bottom: 40px; }
  .gl-search input { font-size: 17px; padding: 15px 16px; }
  .gl-letters { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
  .gl-letters a, .gl-letters [aria-disabled] { height: 38px; font-size: 16px; }
  .gl-row { gap: 12px; padding: 16px 12px; margin: 0 -12px; }
  .gl-row-theme { display: none; }
  .gl-row-name { font-size: 19px; }
  .gl-row-def { font-size: 15px; }
  .gl-row-go { width: 34px; height: 34px; }
  .df-brief { padding: 20px; }
  .df-brief p { font-size: 17px; }
  .df-main h2 { font-size: 25px; }
  .df-main p, .df-main li { font-size: 16px; }
  .roas-fields { grid-template-columns: 1fr; }
  .roas-results { grid-template-columns: 1fr 1fr; }
}
.df-card .df-card-sub { font-size: 14px; color: #cfcbc4; }

/* Visuel de la page Cannibalisation SEO : positions de deux URL sur 12 semaines */
.yoyo { margin: 28px 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.yoyo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; }
.yoyo figcaption { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
.yoyo figcaption b { font-size: 18px; color: var(--ink); line-height: 1.3; }
.yoyo figcaption span { font-size: 13px; color: var(--muted); }
.yoyo-switch { display: inline-flex; background: var(--beige); border-radius: 8px; padding: 4px; gap: 4px; flex: none; }
.yoyo-switch button { font: inherit; font-size: 14px; font-weight: 700; border: 0; background: transparent; color: var(--text); padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.yoyo-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.yoyo-chart { overflow-x: auto; }
.yoyo-chart svg { display: block; width: 100%; height: auto; }
.yo-grid { stroke: #ece8e1; stroke-width: 1; }
.yo-ax { fill: #8a857e; font-size: 12px; font-family: inherit; }
.yo-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.yo-line.yo-a { stroke: var(--red); }
.yo-line.yo-b { stroke: var(--ink); }
.yo-line.yo-site { stroke: #c9c3ba; stroke-width: 2; stroke-dasharray: 5 5; }
.yoyo.is-double .yo-line.yo-site { opacity: 0; }
.yo-dot.yo-a { fill: var(--red); }
.yo-dot.yo-b { fill: var(--ink); }
.yoyo-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--text); }
.yoyo-legend li { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.yoyo-legend i { flex: none; width: 18px; height: 4px; border-radius: 2px; }
.yl-a { background: var(--red); } .yl-b { background: var(--ink); } .yl-s { background: repeating-linear-gradient(90deg, #c9c3ba 0 5px, transparent 5px 10px); }
.yoyo-verdict { margin: 0 !important; font-size: 15px; line-height: 1.6; padding: 12px 14px; border-radius: 8px; background: #f6e8e7; color: var(--ink); }
.yoyo.is-double .yoyo-verdict { background: #e8f1ea; }
@media (max-width: 560px) { .yoyo { padding: 18px; } .yoyo-switch { width: 100%; } .yoyo-switch button { flex: 1; padding: 8px 6px; } }

/* Intention de recherche : les quatre types selon les outils */
.itn { margin: 28px 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.itn figcaption { display: flex; flex-direction: column; gap: 4px; }
.itn figcaption b { font-size: 17px; }
.itn figcaption span, .itn-foot { font-size: 13px; color: var(--grey); margin: 0; }
.itn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.itn-col { background: var(--beige); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.itn-col > b { font-size: 15px; }
.itn-want { font-size: 13px; color: var(--grey); margin-bottom: 4px; }
.itn-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); }
.itn-col ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.itn-col li { font-size: 13px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.itn-col .itn-serp li { border-radius: 6px; }
@media (max-width: 760px) { .itn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .itn-grid { grid-template-columns: 1fr; } .itn { padding: 18px; } }

/* Intention de recherche : deux lectures d'une SERP */
.slx { margin: 28px 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.slx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; }
.slx figcaption { display: flex; flex-direction: column; gap: 4px; flex: 1 1 240px; min-width: 0; }
.slx figcaption b { font-size: 17px; }
.slx figcaption span { font-size: 13px; color: var(--grey); }
.slx-switch { display: inline-flex; background: var(--beige); border-radius: 999px; padding: 4px; gap: 4px; }
.slx-switch button { font: inherit; font-size: 13px; font-weight: 700; border: 0; background: transparent; color: var(--ink); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.slx-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.slx-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.slx-serp { display: flex; flex-direction: column; gap: 10px; }
.slx-bar { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 15px; }
.slx-bar svg { width: 16px; height: 16px; fill: none; stroke: var(--grey); stroke-width: 2.2; stroke-linecap: round; flex: none; }
.slx-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.slx-ai { background: #f3f6fc; }
.slx-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); }
.slx-item p { margin: 0; font-size: 14px; line-height: 1.5; }
.slx-item ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.slx-url { font-size: 12px; color: #4d5156; }
.slx-t { font-size: 17px; color: #1a0dab; }
.slx-d { font-size: 13px; color: var(--grey); }
.slx-note { display: none; align-items: flex-start; gap: 8px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.slx-note i { font-style: normal; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 11px; }
.slx[data-mode="vue"] .slx-note { display: flex; }
.slx[data-mode="vue"] .slx-item { border-color: var(--ink); }
.slx-out > div { background: var(--beige); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.slx-out b { font-size: 20px; line-height: 1.25; }
.slx-out p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--grey); }
.slx-read { display: none !important; }
.slx[data-mode="vue"] .slx-read { display: flex !important; }
.slx[data-mode="vue"] .slx-tool { display: none !important; }
@media (max-width: 760px) { .slx-body { grid-template-columns: 1fr; } .slx { padding: 18px; } .slx-out { order: -1; } }
.df-main .itn p.itn-foot { font-size: 13px; line-height: 1.5; color: var(--grey); margin: 0; }
.df-main .itn .itn-col ul { margin: 0 0 6px; padding: 0; }
.df-main .itn .itn-col li { width: auto; margin: 0; font-size: 13px; line-height: 1.4; padding: 4px 10px; }
.df-main .itn .itn-col li::before { display: none; }
.df-main .slx .slx-item ul { margin: 0; padding-left: 18px; }
.df-main .slx .slx-item li { font-size: 14px; line-height: 1.6; margin: 0; }
.df-main .slx .slx-item p, .df-main .slx .slx-out p { margin: 0; }
.df-main .itn .itn-col ul { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.df-main .slx .slx-item ul { gap: 2px; }

/* Visuel image dans une page définition */
.df-visuel { margin: 28px 0; display: flex; flex-direction: column; gap: 10px; }
.df-visuel-img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.df-main .df-visuel figcaption { font-size: 13px; line-height: 1.5; color: var(--grey); }

/* Chiffres clés dans une page définition */
.stx { margin: 28px 0; display: flex; flex-direction: column; gap: 10px; }
.stx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stx-i { background: var(--beige); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stx-i b { font-size: 34px; line-height: 1; color: var(--red); letter-spacing: -0.02em; }
.df-main .stx-i span { font-size: 14px; line-height: 1.45; color: var(--grey); }
.df-main .stx figcaption { font-size: 13px; color: var(--grey); }
@media (max-width: 640px) { .stx-grid { grid-template-columns: 1fr; } }
