:root {
    /* Vibrant Brutalist-inspired accents (no orange / no yellow) */
    --pink:         #ff5fa3;
    --pink-light:   rgba(255, 95, 163, 0.10);
    --green:        #2dd58c;
    --green-light:  rgba(45, 213, 140, 0.12);
    --blue:         #4d8eff;
    --blue-light:   rgba(77, 142, 255, 0.12);
    --purple:       #b94dff;
    --purple-light: rgba(185, 77, 255, 0.10);
    --neon-purple:  #d580ff;

    --primary:        var(--pink);
    --primary-light:  var(--pink-light);
    --secondary:      var(--green);
    --secondary-light:var(--green-light);
    --tertiary:       var(--purple);
    --tertiary-light: var(--purple-light);

    --bg: #f3f8f4;
    --bg-alt: #f5f0fa;
    --card: #ffffff;
    --dark: #1f1d24;
    --text: #2d2d2d;
    --text-secondary: #5a5a5a;
    --border: #e6e1ec;
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Nunito", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; }

/* Mobile-safety: long words/headings must wrap rather than overflow. */
h1, h2, h3, h4, h5, h6,
p, li, a, span, button, label,
.section-title, .section-sub, .hero-title, .hero-subtitle {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Page accent — set by inc/post-types.php body_class filter on Outil singles.
   Blocks that opt-in (concept, hero-split fallback) read --page-accent. */
body.outil-color-pink   { --page-accent: var(--pink); }
body.outil-color-green  { --page-accent: var(--green); }
body.outil-color-blue   { --page-accent: var(--blue); }
body.outil-color-purple { --page-accent: var(--purple); }

/* ─── HEADER ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 44px; width: auto; }

.logo-cluster { display: flex; align-items: center; gap: 16px; }
.logo-divider { display: block; width: 1px; height: 38px; background: var(--border); }

.logo-partner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    line-height: 1;
}

.logo-partner-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
}

.logo-partner img { display: block; height: 26px; width: auto; }

.nav-links,
.site-header .wp-block-navigation > .wp-block-navigation__container {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-links li,
.site-header .wp-block-navigation__container li {
    list-style: none;
}

.nav-links a,
.site-header .wp-block-navigation-item__content {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.25s ease;
    display: inline-block;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.site-header .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
    color: var(--purple);
    background: var(--purple-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ─── HERO ─── */
.hero {
    --hero-overlay-opacity: 0.88;
    --hero-min-height: 56vh;
    --hero-accent: var(--neon-purple);

    position: relative;
    min-height: var(--hero-min-height);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-hands.webp');
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(15, 10, 25, var(--hero-overlay-opacity)) 0%,
            rgba(15, 10, 25, calc(var(--hero-overlay-opacity) * 0.625)) 55%,
            rgba(15, 10, 25, calc(var(--hero-overlay-opacity) * 0.227)) 100%
        ),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.40) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0 100px;
}

.hero h1 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(40px, 6.5vw, 84px);
    color: #ffffff;
    line-height: 1.0;
    text-transform: uppercase;
    letter-spacing: -1px;
    max-width: 820px;
}

.hero h1 .line-1 { display: block; color: #ffffff; }
.hero h1 .line-2 { display: block; color: var(--hero-accent); }
.hero h1 .line-3 {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.95);
}

/* Full-width hero — neutralize any parent container padding so the image bleeds edge-to-edge. */
.hero.alignfull,
.wp-block-group .hero.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Taller hero on the front page only — the homepage variant may be reused elsewhere
   (e.g. landing pages), so scope the override to body.home. */
.home .hero.hero--homepage {
    --hero-min-height: 100vh;
    min-height: 100vh;
    align-items: center;
}

.home .hero.hero--homepage .hero-content {
    padding: 100px 0 220px;
}

.home .hero.hero--homepage h1 {
    font-size: clamp(44px, 7.5vw, 96px);
    max-width: 720px;
}

.home .hero.hero--homepage h1 .line-3 {
    word-spacing: 100vw;
}

/* ─── TECHNIQUE SLIDER (Outil pages) ─── */
.techniques {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 0 80px;
    position: relative;
    --technique-slider-accent: var(--blue);
}

.techniques-inner { width: 100%; }

.techniques .section-title .accent {
    color: var(--technique-slider-accent);
    text-decoration: underline wavy;
    text-decoration-color: var(--technique-slider-accent);
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.technique-slider-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.technique-slider {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    outline: none;
    padding: 4px 2px;
}
.technique-slider::-webkit-scrollbar { display: none; }
.technique-slider:focus-visible {
    box-shadow: 0 0 0 3px rgba(77, 142, 255, 0.25);
    border-radius: 20px;
}

.technique-card {
    flex: 0 0 calc((100% - 40px) / 3);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(31, 29, 36, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.technique-card:hover {
    border-color: var(--technique-slider-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(31, 29, 36, 0.08);
}

.slider-arrow {
    flex-shrink: 0;
    align-self: center;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    box-shadow: 0 6px 18px rgba(31, 29, 36, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.slider-arrow:hover {
    background: var(--technique-slider-accent);
    border-color: var(--technique-slider-accent);
    color: #fff;
    transform: scale(1.04);
}
.slider-arrow:focus-visible {
    outline: 3px solid rgba(77, 142, 255, 0.35);
    outline-offset: 2px;
}
.slider-arrow[disabled] {
    opacity: 0.35;
    cursor: default;
    transform: none;
    box-shadow: none;
}
.slider-arrow[disabled]:hover {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}
.slider-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}
.slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(31, 29, 36, 0.18);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, width 0.25s ease;
}
.slider-dot:hover {
    background: rgba(31, 29, 36, 0.45);
    transform: scale(1.15);
}
.slider-dot.is-active {
    background: var(--technique-slider-accent);
    width: 28px;
    border-radius: 999px;
}
.slider-dot:focus-visible {
    outline: 2px solid rgba(77, 142, 255, 0.45);
    outline-offset: 3px;
}

.technique-card .card-body {
    padding: 24px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.technique-card .card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.technique-card .card-title {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.3;
    margin: 0;
}

.technique-fav {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: none; /* shown when parent .techniques.show-favorites is present */
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.techniques.show-favorites .technique-fav {
    display: flex;
}
.technique-fav:hover {
    background: var(--pink-light);
    border-color: rgba(255, 95, 163, 0.30);
    transform: scale(1.05);
}
.technique-fav svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease, fill 0.2s ease;
}
.technique-fav:hover svg,
.technique-fav.is-active svg,
.technique-fav.is-fav svg {
    stroke: var(--pink);
    fill: var(--pink);
}

.technique-card .card-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin: 0 0 8px;
}

.technique-card .card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.technique-card .card-list li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.technique-card .card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--technique-slider-accent);
}

.technique-card .card-pattern {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    letter-spacing: 0.2px;
    margin: auto 0 0;
}

@media (max-width: 900px) {
    .technique-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
    .technique-card { flex-basis: 78vw; }
    .slider-arrow { display: none; }
}

/* ─── FAVORIS EMPTY STATE ─── */
.favoris-empty-state {
    width: min(80%, 720px);
    margin: 64px auto;
    padding: 56px 32px;
    text-align: center;
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: 20px;
}
.favoris-empty-state h2 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(24px, 3.4vw, 32px);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.favoris-empty-state p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
}
.favoris-empty-state a {
    color: var(--purple);
    text-decoration: underline wavy;
    text-decoration-color: var(--purple);
    text-underline-offset: 4px;
}

.favoris-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 48px 0;
}

/* ─── FAVORIS TOGGLE BUTTON ─── */
.favoris-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(255, 95, 163, 0.08);
    border: 1.5px solid rgba(255, 95, 163, 0.3);
    color: var(--pink);
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.favoris-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    transition: fill 0.2s ease;
}

.favoris-toggle:hover {
    background: rgba(255, 95, 163, 0.16);
    border-color: var(--pink);
}

.favoris-toggle:active {
    transform: scale(0.97);
}

.favoris-toggle.is-active {
    background: var(--pink);
    border-color: var(--pink);
    color: #ffffff;
}

.favoris-toggle.is-active svg {
    fill: currentColor;
}

.favoris-toggle.is-active:hover {
    background: #ff4496;
}

/* Single-outil toolbar layout: breadcrumb left, favoris-toggle right. */
.single-outil-toolbar {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 8px;
}
.single-outil-toolbar .breadcrumb { padding-top: 0; width: 100%; max-width: none; margin: 0; }

/* ─── FAVORIS GRID (on the Mes favoris page) ─── */
.favoris-list-wrap {
    width: 80%;
    max-width: 1200px;
    margin: 48px auto 64px;
}

.favoris-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.favoris-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.favoris-card:hover {
    border-color: var(--pink);
    transform: translateY(-2px);
}

.favoris-card-img {
    display: block;
    height: 180px;
    overflow: hidden;
    background: var(--bg-alt);
}

.favoris-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.favoris-card-img--placeholder {
    background:
        linear-gradient(135deg, var(--pink-light), var(--purple-light));
}

.favoris-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.favoris-card-kind {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.04);
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.favoris-card--technique .favoris-card-kind {
    background: var(--blue-light);
    color: var(--blue);
}

.favoris-card-img--technique {
    background: linear-gradient(135deg, var(--blue-light), var(--purple-light));
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
}
.favoris-card-img--technique svg {
    width: 48px;
    height: 48px;
    color: var(--pink);
    opacity: 0.35;
}

.favoris-card-title {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.25;
    margin: 0 0 8px;
}
.favoris-card-title a {
    color: var(--text);
    text-decoration: none;
}
.favoris-card-title a:hover {
    color: var(--pink);
}

.favoris-card-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
}

.favoris-card-remove {
    align-self: flex-start;
    margin-top: auto;
}

/* The fallback "Chargement…" empty state is hidden once JS paints the list. */
.favoris-list-wrap [data-favoris-list],
.favoris-list-wrap.favoris-loaded .favoris-list-fallback {
    /* placeholder hook for future JS class toggles */
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}
.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text); font-weight: 700; }

/* ─── HERO VARIANT: SIMPLE ─── */
.hero--simple {
    min-height: 0;
    padding: 96px 0 120px;
    position: relative;
    display: block;
    overflow: visible;
}
.hero--simple::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 100% 0%, rgba(185, 77, 255, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(255, 95, 163, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.hero--simple .hero-inner {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero--simple h1 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(44px, 7.5vw, 96px);
    line-height: 0.95;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 32px;
}
.hero--simple h1 .accent {
    color: var(--hero-accent, var(--green));
}
.hero--simple .hero-intro {
    max-width: 720px;
    position: relative;
    padding-left: 24px;
}
.hero--simple .hero-intro::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--pink) 0%, var(--purple) 100%);
    opacity: 0.7;
}
.hero--simple .hero-intro p.lede {
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Coloured-dash list (Liens utiles hero) */
.hero--simple .hero-intro .link-types,
.hero--simple .hero-intro ul.link-types {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hero--simple .hero-intro .link-types li {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text);
    font-weight: 600;
    padding-left: 32px;
    position: relative;
    list-style: none;
    margin: 0;
}
.hero--simple .hero-intro .link-types li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--pink);
}
.hero--simple .hero-intro .link-types li:nth-child(2)::before { background: var(--green); }
.hero--simple .hero-intro .link-types li:nth-child(3)::before { background: var(--blue); }
.hero--simple .hero-intro .link-types li:nth-child(4)::before { background: var(--purple); }

.hero--simple .hero-intro .link-types a {
    color: var(--text);
    text-decoration: underline wavy;
    text-decoration-color: var(--pink);
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.hero--simple .hero-intro .link-types li:nth-child(1) a:hover { color: var(--pink); }
.hero--simple .hero-intro .link-types li:nth-child(2) a { text-decoration-color: var(--green); }
.hero--simple .hero-intro .link-types li:nth-child(2) a:hover { color: var(--green); }
.hero--simple .hero-intro .link-types li:nth-child(3) a { text-decoration-color: var(--blue); }
.hero--simple .hero-intro .link-types li:nth-child(3) a:hover { color: var(--blue); }
.hero--simple .hero-intro .link-types li:nth-child(4) a { text-decoration-color: var(--purple); }
.hero--simple .hero-intro .link-types li:nth-child(4) a:hover { color: var(--purple); }

/* Italic note under the link list */
.hero--simple .hero-intro .hero-note {
    font-size: 15px;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.6;
    margin: 0;
}

/* ─── HERO VARIANT: SPLIT ─── */
.hero--split {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 0;
    padding: 36px 0 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    overflow: visible;
}
.hero--split .hero-text { min-width: 0; }
.hero--split h1 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(56px, 9vw, 120px);
    color: var(--text);
    line-height: 0.95;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    max-width: none;
}
.hero--split h1 .accent {
    color: var(--hero-accent, var(--blue));
    white-space: nowrap;
}
.hero--split .lede {
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 540px;
}
.hero--split .hero-illu {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(77, 142, 255, 0.35), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(185, 77, 255, 0.30), transparent 60%),
        linear-gradient(135deg, var(--blue-light), var(--purple-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 36px rgba(77, 142, 255, 0.18);
    overflow: hidden;
    animation: hero-illu-float 6s ease-in-out infinite;
}

@keyframes hero-illu-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.hero--split .hero-illu img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}
.hero--split .hero-illu svg {
    width: 60%;
    height: 60%;
    stroke: var(--hero-accent, var(--blue));
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media (max-width: 768px) {
    .hero--split {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px 0 48px;
    }
    .hero--split .hero-illu {
        max-width: 180px;
        margin: 0 auto;
    }
}

/* ─── MODE ZEN INTRO ─── */
.mode-zen {
    position: relative;
    z-index: 3;
    width: 80%;
    max-width: 1200px;
    margin: -90px auto 64px;
    padding: 56px clamp(28px, 4vw, 64px);
    background: #ece1f7;
    border-radius: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 48px;
    align-items: start;
}

.zen-tag {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 4vw, 52px);
    color: var(--mode-zen-tag-color, var(--neon-purple));
    text-transform: uppercase;
    letter-spacing: -0.8px;
    line-height: 1.05;
    margin-bottom: 0;
}

.zen-intro {
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.7;
    color: var(--text);
    max-width: 620px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .mode-zen {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 36px 24px;
        margin: -50px auto 40px;
        border-radius: 20px;
    }
}

/* ─── CONCEPT SECTION ─── */
.concept {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 72px;
    position: relative;
}

.concept-inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.concept-inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--pink) 0%, var(--purple) 100%);
    opacity: 0.7;
}

.concept h2 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(24px, 3.4vw, 34px);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 28px;
}

.concept h2 .accent { color: var(--green); }

@media (max-width: 768px) {
    .concept-inner { padding-left: 20px; }
}

.concept p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.concept strong { color: var(--text); font-weight: 700; }

.concept .highlight {
    background: var(--purple-light);
    padding: 22px 26px;
    border-radius: 14px;
    margin: 28px 0;
}

.concept .highlight p {
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.concept .highlight strong { color: var(--purple); }

.concept ul { list-style: none; padding: 0; margin: 20px 0 0; }

.concept ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.concept ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 9px;
    height: 9px;
    background: var(--pink);
    border-radius: 50%;
}

.concept ul li:nth-child(2)::before { background: var(--green); }
.concept ul li:nth-child(3)::before { background: var(--blue); }

/* ─── FEATURED VIDEO + BLANCHE ─── */
.featured {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 0 80px;
}

.featured-block {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.featured-video { padding: 28px; display: flex; align-items: center; }

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(255, 95, 163, 0.08), rgba(185, 77, 255, 0.08));
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 0;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, rgba(255, 95, 163, 0.16), rgba(185, 77, 255, 0.16));
}

.featured-info {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-label {
    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--featured-label-color, var(--pink));
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.featured-title {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(20px, 2.4vw, 26px);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.featured-desc { font-size: 18px; line-height: 1.65; color: var(--text-secondary); font-weight: 400; }

.play-btn {
    width: 64px;
    height: 64px;
    background: var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 95, 163, 0.35);
    animation: pulse 2.5s ease-in-out infinite;
}

.play-btn::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(255, 95, 163, 0.35); }
    50% { box-shadow: 0 8px 40px rgba(255, 95, 163, 0.55); }
}

.video-label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }

/* ─── TOPIC CARDS (GRID) ─── */
.topics { background: var(--bg-alt); padding: 80px 0 88px; position: relative; }

/* Sujet single pages: drop the section background, force the title on one line,
   align the inner container to the exact same content edges as the footer
   (mirrors .footer-inner so left/right edges line up at every breakpoint),
   AND force full-bleed regardless of whether the block has align:full saved. */
.single-sujet .topics {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.single-sujet .topics::before { display: none; }
.single-sujet .topics {
    /* Mirror the footer's gutter at every breakpoint: footer-inner uses
       width:80%/max 1200px/centered, which produces a 10vw gutter until the
       cap kicks in at 1500px viewport. The @media rule below handles ≤1024px
       where the footer drops to 15px. */
    padding-left: max(10vw, calc((100vw - 1200px) / 2)) !important;
    padding-right: max(10vw, calc((100vw - 1200px) / 2)) !important;
}
@media (max-width: 1024px) {
    .single-sujet .topics {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}
.single-sujet .topics > .topics-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.single-sujet .topics .section-title { white-space: nowrap; margin-left: 0; padding-left: 0; }
.single-sujet .topics .section-title .accent { white-space: nowrap; }
@media (max-width: 1024px) {
    .single-sujet .topics .section-title,
    .single-sujet .topics .section-title .accent { white-space: normal; }
}
.single-sujet .topics .section-sub { margin-left: 0; padding-left: 0; }
.single-sujet .topics .topic-grid {
    margin-left: 0;
    padding-left: 0;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
    .single-sujet .topics .topic-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .single-sujet .topics > .topics-inner { width: 90%; }
}

.topics::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 55% at 15% 20%, rgba(185, 77, 255, 0.16), transparent 60%),
        radial-gradient(ellipse 50% 45% at 90% 85%, rgba(255, 95, 163, 0.10), transparent 60%);
    pointer-events: none;
}

.topics > * { position: relative; }

.topics-inner { width: 80%; max-width: 1200px; margin: 0 auto; }

.section-title {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(24px, 3.8vw, 36px);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.section-title .accent {
    color: var(--section-accent, var(--purple));
    text-decoration: underline wavy;
    text-decoration-color: var(--section-accent, var(--purple));
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

/* Per-block accent overrides — let the topic-grid + resource-carousel
   feed their CSS variables into the shared .section-title rule. */
.topics                    { --section-accent: var(--topic-grid-accent, var(--purple)); }
.tools                     { --section-accent: var(--resource-carousel-accent, var(--purple)); }
.concept .accent           { color: var(--concept-accent, var(--green)); }

.section-sub {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 400;
    line-height: 1.6;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(var(--topic-grid-columns, 4), 1fr);
    gap: 20px;
}

.topic-card {
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

/* Per-card hover color (settable via block attribute) overrides the rotating default. */
.topic-card[style*="--topic-card-hover"]:hover {
    border-color: var(--topic-card-hover);
}

.topic-card:not([style*="--topic-card-hover"]):hover                 { border-color: var(--pink); }
.topic-card:not([style*="--topic-card-hover"]):nth-child(2):hover    { border-color: var(--green); }
.topic-card:not([style*="--topic-card-hover"]):nth-child(3):hover    { border-color: var(--blue); }
.topic-card:not([style*="--topic-card-hover"]):nth-child(4):hover    { border-color: var(--purple); }

.topic-img { height: 200px; position: relative; overflow: hidden; background: var(--bg-alt); }

.topic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topic-card:hover .topic-img img { transform: scale(1.06); }

.topic-card-body { padding: 18px 22px; }

.topic-card-body h3 {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.2px;
    color: var(--text);
}

/* ─── TOOLS / RESOURCE CAROUSEL ─── */
.tools {
    padding: 80px 0 96px;
    position: relative;
    background: linear-gradient(180deg, var(--bg) 0%, #f0e9f8 60%, var(--bg) 100%);
}

.tools::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 85% 15%, rgba(255, 95, 163, 0.10), transparent 60%),
        radial-gradient(ellipse 45% 40% at 10% 90%, rgba(45, 213, 140, 0.10), transparent 60%);
    pointer-events: none;
}

.tools-inner { width: 80%; max-width: 1200px; margin: 0 auto; position: relative; }

.tools-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.tools-header-left { flex: 1; min-width: 0; }

.carousel-controls { display: flex; gap: 10px; flex-shrink: 0; }

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.carousel-btn:hover:not([disabled]) { background: var(--purple); border-color: var(--purple); color: #fff; }
.carousel-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.carousel-btn svg { width: 18px; height: 18px; stroke-width: 2.25; }

.resource-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 12px;
    --fade-size: 64px;
    --fade-left: 0px;
    --fade-right: var(--fade-size);
    margin-left: calc(-1 * var(--fade-size));
    margin-right: calc(-1 * var(--fade-size));
    padding-left: var(--fade-size);
    padding-right: var(--fade-size);
    scroll-padding-left: var(--fade-size);
    scroll-padding-right: var(--fade-size);
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 var(--fade-left),
        #000 calc(100% - var(--fade-right)),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 var(--fade-left),
        #000 calc(100% - var(--fade-right)),
        transparent 100%
    );
}

.resource-carousel:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 12px; }
.resource-carousel::-webkit-scrollbar { display: none; }

.resource-track { display: flex; gap: 20px; width: max-content; }

.resource-card {
    flex: 0 0 clamp(260px, calc((min(80vw, 1200px) - 60px) / 3.3), 340px);
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    scroll-snap-align: start;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    position: relative; /* anchor for the stretched title link */
}

/* Stretched-link pattern: the title <a> covers the entire card. */
.card-title-link {
    color: inherit;
    text-decoration: none;
}
.card-title-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

/* Anything that should remain independently clickable inside the card
   needs to sit above the stretched link via z-index. */
.resource-card .card-format,
.resource-card .card-format a,
.resource-card .card-arrow {
    position: relative;
    z-index: 2;
}

.card-breathe:hover  { border-color: var(--blue); }
.card-move:hover     { border-color: var(--green); }
.card-talk:hover     { border-color: var(--pink); }
.card-sleep:hover    { border-color: var(--purple); }
.card-create:hover   { border-color: var(--pink); }
.card-digital:hover  { border-color: var(--green); }
.card-meditate:hover { border-color: var(--blue); }
.card-time:hover     { border-color: var(--purple); }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.75;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-breathe   .card-icon { background: var(--blue-light); }
.card-move      .card-icon { background: var(--green-light); }
.card-talk      .card-icon { background: var(--pink-light); }
.card-sleep     .card-icon { background: var(--purple-light); }
.card-create    .card-icon { background: var(--pink-light); }
.card-digital   .card-icon { background: var(--green-light); }
.card-meditate  .card-icon { background: var(--blue-light); }
.card-time      .card-icon { background: var(--purple-light); }

.card-breathe   .card-icon svg { stroke: var(--blue); }
.card-move      .card-icon svg { stroke: var(--green); }
.card-talk      .card-icon svg { stroke: var(--pink); }
.card-sleep     .card-icon svg { stroke: var(--purple); }
.card-create    .card-icon svg { stroke: var(--pink); }
.card-digital   .card-icon svg { stroke: var(--green); }
.card-meditate  .card-icon svg { stroke: var(--blue); }
.card-time      .card-icon svg { stroke: var(--purple); }

.card-tag {
    font-family: "Nunito", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 50px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.04);
}

.card-title {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    line-height: 1.25;
    color: var(--text);
}

.card-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    font-weight: 400;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.card-format { display: flex; gap: 6px; }

.format-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Linkable badges feel tappable: subtle cue + hover state. */
.format-badge--link {
    cursor: pointer;
}
.format-badge--link:hover,
.format-badge--link:focus-visible {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text);
}

.card-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.card-breathe:hover  .card-arrow { background: var(--blue);   color: #fff; transform: translateX(2px); }
.card-move:hover     .card-arrow { background: var(--green);  color: #fff; transform: translateX(2px); }
.card-talk:hover     .card-arrow { background: var(--pink);   color: #fff; transform: translateX(2px); }
.card-sleep:hover    .card-arrow { background: var(--purple); color: #fff; transform: translateX(2px); }
.card-create:hover   .card-arrow { background: var(--pink);   color: #fff; transform: translateX(2px); }
.card-digital:hover  .card-arrow { background: var(--green);  color: #fff; transform: translateX(2px); }
.card-meditate:hover .card-arrow { background: var(--blue);   color: #fff; transform: translateX(2px); }
.card-time:hover     .card-arrow { background: var(--purple); color: #fff; transform: translateX(2px); }

/* ─── FOOTER ─── */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.65);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 10% 0%, rgba(185, 77, 255, 0.12), transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(255, 95, 163, 0.10), transparent 60%);
    pointer-events: none;
}

.footer-inner,
.footer-bottom { position: relative; }

.footer-inner {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 0 32px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand img {
    display: block;
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

/* The CSF (partner) logo sits inside a white card — keep its original colors. */
.footer-brand .footer-partner-card img {
    filter: none;
    opacity: 1;
    height: 32px;
}

.footer-brand p {
    font-size: 17px;
    line-height: 1.65;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-partner {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-partner-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-partner-card {
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    display: inline-flex;
}

.footer-partner-card img { display: block; height: 32px; width: auto; }

.footer-col h4 {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }

/* core/navigation block in the footer column — match the design's 12px rhythm. */
.footer-col .wp-block-navigation,
.footer-col .wp-block-navigation > ul,
.footer-col .wp-block-navigation__container {
    gap: 12px;
    row-gap: 12px;
}
.footer-col .wp-block-navigation-item {
    margin: 0;
}
.footer-col .wp-block-navigation-item__content {
    padding: 0;
    line-height: 1.2;
}

.footer-col ul li a,
.footer-col ul li {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover { color: var(--pink); }

.phone-list { display: flex; flex-direction: column; gap: 14px; }
.phone-list li { margin-bottom: 0; }

.phone-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.phone-link:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }

.phone-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.25s ease, color 0.25s ease;
}

.phone-icon svg { width: 18px; height: 18px; }

/* Legacy positional variants (kept for any non-block usage). */
.phone-list li:nth-child(1) .phone-icon { background: rgba(255, 95, 163, 0.18); color: var(--pink); }
.phone-list li:nth-child(1) .phone-link:hover { border-color: rgba(255, 95, 163, 0.5); }
.phone-list li:nth-child(1) .phone-link:hover .phone-icon { background: var(--pink); color: #fff; }

.phone-list li:nth-child(2) .phone-icon { background: rgba(45, 213, 140, 0.18); color: var(--green); }
.phone-list li:nth-child(2) .phone-link:hover { border-color: rgba(45, 213, 140, 0.5); }
.phone-list li:nth-child(2) .phone-link:hover .phone-icon { background: var(--green); color: #fff; }

/* Block-driven variants — used by resosante/phone-card. */
.phone-card-variant-pink   .phone-icon { background: rgba(255, 95, 163, 0.18); color: var(--pink); }
.phone-card-variant-pink   .phone-link:hover { border-color: rgba(255, 95, 163, 0.5); }
.phone-card-variant-pink   .phone-link:hover .phone-icon { background: var(--pink); color: #fff; }

.phone-card-variant-green  .phone-icon { background: rgba(45, 213, 140, 0.18); color: var(--green); }
.phone-card-variant-green  .phone-link:hover { border-color: rgba(45, 213, 140, 0.5); }
.phone-card-variant-green  .phone-link:hover .phone-icon { background: var(--green); color: #fff; }

.phone-card-variant-blue   .phone-icon { background: rgba(77, 142, 255, 0.18); color: var(--blue); }
.phone-card-variant-blue   .phone-link:hover { border-color: rgba(77, 142, 255, 0.5); }
.phone-card-variant-blue   .phone-link:hover .phone-icon { background: var(--blue); color: #fff; }

.phone-card-variant-purple .phone-icon { background: rgba(185, 77, 255, 0.18); color: var(--purple); }
.phone-card-variant-purple .phone-link:hover { border-color: rgba(185, 77, 255, 0.5); }
.phone-card-variant-purple .phone-link:hover .phone-icon { background: var(--purple); color: #fff; }

.phone-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.phone-name { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.3px; }
.phone-number { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -0.2px; }

.footer-bottom {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p { font-size: 14px; color: rgba(255, 255, 255, 0.5); }

/* ─── VIDEO LIGHTBOX ─── */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 64px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(20, 14, 32, 0.92);
    background-image:
        radial-gradient(ellipse 60% 55% at 14% 18%, rgba(255, 95, 163, 0.32), transparent 62%),
        radial-gradient(ellipse 55% 50% at 86% 22%, rgba(185, 77, 255, 0.36), transparent 62%),
        radial-gradient(ellipse 50% 45% at 92% 86%, rgba(77, 142, 255, 0.24), transparent 62%),
        radial-gradient(ellipse 45% 40% at 8% 90%, rgba(45, 213, 140, 0.18), transparent 62%);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.video-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.05;
    mix-blend-mode: overlay;
}

.video-modal.is-open { opacity: 1; pointer-events: auto; }

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.video-modal.is-open .video-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
    transition-delay: 0.06s;
}

.video-modal-content::before {
    content: "";
    position: absolute;
    inset: 16px -16px -16px 16px;
    background: var(--neon-purple);
    border-radius: 24px;
    z-index: 0;
    box-shadow: 0 24px 60px rgba(213, 128, 255, 0.35);
}

.video-modal-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow:
        0 28px 70px -18px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(213, 128, 255, 0.18);
}

.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -76px;
    right: 0;
    z-index: 4;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    border: 2.5px solid var(--neon-purple);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 0 rgba(213, 128, 255, 0);
}

.video-modal-close:hover {
    background: var(--neon-purple);
    transform: rotate(90deg);
    box-shadow: 0 12px 36px rgba(213, 128, 255, 0.55);
}

.video-modal-close svg { width: 20px; height: 20px; stroke-width: 2.75; }

@media (max-width: 768px) {
    .video-modal { padding: 18px; }
    .video-modal-content { max-width: 100%; }
    .video-modal-content::before { inset: 8px -8px -8px 8px; border-radius: 18px; }
    .video-modal-frame { border-radius: 18px; border-width: 1.5px; }
    .video-modal-close { top: -60px; right: 0; width: 44px; height: 44px; }
    .video-modal-close svg { width: 16px; }
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger > .fade-up:nth-child(1) { transition-delay: 0.05s; }
.stagger > .fade-up:nth-child(2) { transition-delay: 0.10s; }
.stagger > .fade-up:nth-child(3) { transition-delay: 0.15s; }
.stagger > .fade-up:nth-child(4) { transition-delay: 0.20s; }

/* Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--purple);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
    border-radius: 0 0 10px 0;
    font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ─── Gutenberg page content ─── */
.entry-content {
    width: 100%;
}
.entry-content > * {
    width: min(80%, 820px);
    margin-left: auto;
    margin-right: auto;
}
.entry-content > .alignwide {
    width: min(80%, 1200px);
    max-width: 1200px;
}
.entry-content > .alignfull {
    width: 100%;
    max-width: none;
}
.entry-content > h1,
.entry-content > h2,
.entry-content > h3 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 48px auto 20px;
}
.entry-content > h1 { font-size: clamp(32px, 5vw, 52px); }
.entry-content > h2 { font-size: clamp(26px, 4vw, 36px); }
.entry-content > h3 { font-size: clamp(20px, 3vw, 26px); text-transform: none; }
.entry-content > p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.entry-content > p:first-child { margin-top: 64px; }
.entry-content > *:last-child { margin-bottom: 64px; }
.entry-content > .alignfull:first-child { margin-top: 0; }
.entry-content a { color: var(--purple); }

/* Default blog/page content fallback */
.content-wrap {
    width: 80%;
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 0;
}
.content-wrap h1, .content-wrap h2 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 24px;
}
.content-wrap h1 { font-size: clamp(28px, 4vw, 40px); }
.content-wrap h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 32px; }
.content-wrap p { font-size: 18px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 18px; }
.content-wrap a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.content-wrap img { border-radius: 16px; margin: 24px 0; }
.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}
.post-card:hover { border-color: var(--purple); }
.post-card h2 { margin-top: 0; font-family: "Nunito", sans-serif; font-weight: 800; font-size: 22px; }
.post-card h2 a { color: var(--text); text-decoration: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .header-inner,
    .hero-content,
    .hero--simple .hero-inner,
    .hero--split,
    .hero--sujet .hero-content,
    .techniques,
    .single-outil-toolbar,
    .favoris-list-wrap,
    .favoris-hero-inner,
    .favoris-empty-section,
    .favoris-saved-section,
    .breadcrumb,
    .mode-zen,
    .concept,
    .topics-inner,
    .single-sujet .topics > .topics-inner,
    .tools-inner,
    .tools-icon-inner,
    .theme-intro,
    .theme-stats-inner,
    .featured,
    .featured-tools,
    .footer-inner,
    .footer-bottom,
    .content-wrap,
    .cta-inner {
        width: auto;
        max-width: none;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    /* Sujet/single post content: every direct block gets a 15px gutter,
       except heroes / alignfull / sections that supply their own inner gutter.
       We constrain max-width instead of forcing margins — WP's layout already applies
       `margin: auto !important`, so capping width does the centering for us without
       overflowing the right edge (which `margin: 15px` on a width:100% child would). */
    .wp-block-post-content > *:not(.hero):not(.hero--sujet):not(.alignfull):not(.cta):not(.topics):not(.tools):not(.tools-icon):not(.featured) {
        max-width: min(820px, calc(100% - 30px)) !important;
    }

    /* Images sit inside a <figure> that's a direct child of post-content — covered above,
       but the inner <img> can still overflow if it has an intrinsic width larger than the
       container. Constrain it. */
    .wp-block-post-content > figure.wp-block-image img,
    .single-sujet figure.wp-block-image img {
        max-width: 100%;
        height: auto;
    }

    .featured-block { grid-template-columns: 1fr; }

    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 32px;
        text-align: left;
    }

    /* Mobile menu: overlay sits BELOW the sticky header so logos stay visible.
       Items are centered; active item gets a purple pill. */
    .site-header .wp-block-navigation__responsive-container.is-menu-open {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: calc(100vh - 73px);
        z-index: 90;
        background: rgba(255, 255, 255, 0.97) !important;
        overflow: hidden;
        padding: 0;
    }

    .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        height: 100%;
        padding-top: 56px;
        overflow: hidden;
    }

    /* Move the navigation block's close (×) button up over the header,
       roughly where the hamburger sat, so it stays tappable. */
    .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
        position: fixed;
        top: 14px;
        right: 15px;
        z-index: 200;
    }

    .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
    .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 28px;
        overflow: hidden;
    }

    .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
        display: inline-block;
        width: auto;
        padding: 12px 32px;
        font-size: 22px;
        font-weight: 600;
        border-radius: 999px;
        text-align: center;
        color: var(--text-secondary);
        background: transparent;
    }

    .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
    .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
        color: var(--purple);
        background: var(--purple-light);
    }

    .hero-content { padding: 60px 0 140px; }

    .topic-grid { grid-template-columns: 1fr; }

    .favoris-grid { grid-template-columns: 1fr; }

    .saved-grid { grid-template-columns: 1fr; }

    .theme-stats-inner { grid-template-columns: 1fr; }

    .featured-tools { grid-template-columns: 1fr; }

    .hero--split { grid-template-columns: 1fr; }

    .mode-zen { grid-template-columns: 1fr; }

    .tools-header { flex-direction: column; align-items: stretch; gap: 0; }

    .carousel-controls {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 12px;
    }

    .carousel-btn { width: 40px; height: 40px; }
    .carousel-btn svg { width: 16px; height: 16px; }

    .resource-carousel {
        margin-right: -5vw;
        padding-right: 5vw;
        --fade-size: 48px;
        scroll-padding-right: 48px;
    }

    .resource-card { flex-basis: 72vw; min-height: 260px; }

    .carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: rgba(0, 0, 0, 0.18);
        cursor: pointer;
        transition: background 0.25s ease, width 0.25s ease;
    }

    .carousel-dot.is-active { width: 22px; border-radius: 50px; background: var(--purple); }
}

@media (min-width: 1025px) {
    .carousel-dots { display: none; }
}

/* ─── MES FAVORIS PAGE ─── */
.page-mes-favoris { display: block; }

/* Hero (centered, with floating heart avatar) */
.favoris-hero {
    padding: 80px 0 32px;
    text-align: center;
    position: relative;
}

.favoris-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 100% 0%, rgba(255, 95, 163, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(185, 77, 255, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.favoris-hero-inner {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.favoris-hero-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 95, 163, 0.40), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(185, 77, 255, 0.32), transparent 60%),
        linear-gradient(135deg, var(--pink-light), var(--purple-light));
    box-shadow: 0 12px 36px rgba(255, 95, 163, 0.20);
    animation: favoris-float 6s ease-in-out infinite;
}

@keyframes favoris-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.favoris-hero-avatar svg {
    width: 38px;
    height: 38px;
    fill: var(--pink);
    stroke: var(--pink);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.favoris-hero h1 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(44px, 7vw, 88px);
    line-height: 0.95;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 24px;
}

.favoris-hero h1 .accent { color: var(--pink); }

.favoris-hero-sub {
    font-size: 19px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* List container — the JS paints inside this wrapper. */
.page-mes-favoris .favoris-list-wrap {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Empty state card */
.favoris-empty-section {
    width: 80%;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 0 56px;
}

.favoris-empty {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 56px 32px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.favoris-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pink-light);
    color: var(--pink);
}

.favoris-empty-icon svg {
    width: 24px;
    height: 24px;
}

.favoris-empty h2 {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-bottom: 8px;
}

.favoris-empty p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 380px;
    margin: 0 auto;
}

.favoris-empty p a { color: var(--pink); font-weight: 700; text-decoration: none; }
.favoris-empty p a:hover { text-decoration: underline; }

/* Saved items section */
.favoris-saved-section {
    width: 80%;
    max-width: 880px;
    margin: 0 auto;
    padding: 24px 0 96px;
}

.favoris-saved-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.favoris-saved-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Nunito", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.favoris-saved-eyebrow::before,
.favoris-saved-eyebrow::after {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background: var(--border);
}

.favoris-saved-title {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(20px, 2.6vw, 26px);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0;
}

.favoris-saved-title .accent {
    color: var(--purple);
    text-decoration: underline wavy;
    text-decoration-color: var(--purple);
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.saved-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.saved-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.saved-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.saved-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saved-icon svg {
    width: 22px;
    height: 22px;
}

.saved-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.saved-title {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.2px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saved-meta {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.saved-fav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pink-light);
    border: 1px solid rgba(255, 95, 163, 0.20);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.saved-fav:hover {
    background: var(--pink);
    border-color: var(--pink);
    transform: scale(1.05);
}

.saved-fav svg {
    width: 18px;
    height: 18px;
    fill: var(--pink);
    stroke: var(--pink);
    stroke-width: 1.5;
    transition: fill 0.25s ease, stroke 0.25s ease;
}

.saved-fav:hover svg { fill: #fff; stroke: #fff; }

/* Color cycle for saved-icon (pink → green → blue → purple) */
.saved-item:nth-child(4n + 1) .saved-icon       { background: var(--pink-light); color: var(--pink); }
.saved-item:nth-child(4n + 1):hover             { border-color: var(--pink); }
.saved-item:nth-child(4n + 2) .saved-icon       { background: var(--green-light); color: var(--green); }
.saved-item:nth-child(4n + 2):hover             { border-color: var(--green); }
.saved-item:nth-child(4n + 3) .saved-icon       { background: var(--blue-light); color: var(--blue); }
.saved-item:nth-child(4n + 3):hover             { border-color: var(--blue); }
.saved-item:nth-child(4n + 4) .saved-icon       { background: var(--purple-light); color: var(--purple); }
.saved-item:nth-child(4n + 4):hover             { border-color: var(--purple); }

@media (max-width: 768px) {
    .favoris-hero { padding: 56px 0 24px; }
    .favoris-empty { padding: 40px 24px; }
    .saved-grid { grid-template-columns: 1fr; gap: 12px; }
    .favoris-saved-section { padding: 24px 0 64px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .resource-card { flex-basis: calc((min(80vw, 1200px) - 20px) / 2.2); }
}

/* ─── LIENS UTILES PAGE ─── */
/* Break out of the theme's 820px constrained content area so the hero spans
   the full page width — its inner 80%/max-1200 container then aligns with
   .footer-inner. Forced with !important because WP's generated layout rules
   apply width/max-width to the same wrapper at equal specificity. */
.entry-content .page-liens-utiles,
.wp-block-post-content .page-liens-utiles {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.page-liens-utiles .hero {
    --hero-accent: var(--green);
}

.page-liens-utiles .hero h1 {
    white-space: nowrap;
}

.page-liens-utiles .hero .hero-intro {
    max-width: 720px;
    padding-left: 0;
}

.page-liens-utiles .hero-intro p.lede {
    margin-bottom: 20px;
}

/* Remove decorative gradients and align intro to the same left edge as h1/footer. */
.page-liens-utiles .hero--simple::before,
.page-liens-utiles .hero--simple .hero-intro::before {
    display: none;
}

.link-types {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-types li {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text);
    font-weight: 600;
    padding-left: 32px;
    position: relative;
}

.link-types li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
}

.link-types li:nth-child(4n + 1)::before { background: var(--pink); }
.link-types li:nth-child(4n + 2)::before { background: var(--green); }
.link-types li:nth-child(4n + 3)::before { background: var(--blue); }
.link-types li:nth-child(4n + 4)::before { background: var(--purple); }

.link-types li a {
    color: var(--text);
    text-decoration: underline wavy;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.link-types li:nth-child(4n + 1) a { text-decoration-color: var(--pink); }
.link-types li:nth-child(4n + 1) a:hover { color: var(--pink); }
.link-types li:nth-child(4n + 2) a { text-decoration-color: var(--green); }
.link-types li:nth-child(4n + 2) a:hover { color: var(--green); }
.link-types li:nth-child(4n + 3) a { text-decoration-color: var(--blue); }
.link-types li:nth-child(4n + 3) a:hover { color: var(--blue); }
.link-types li:nth-child(4n + 4) a { text-decoration-color: var(--purple); }
.link-types li:nth-child(4n + 4) a:hover { color: var(--purple); }

.hero-note {
    font-size: 15px;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.6;
    margin: 0;
}

/* ─── PAGE-ACCENT OVERRIDES (Outil singles only) ─────────────────────────
   On Outil pages, the body gets an `outil-color-{slug}` class via
   inc/post-types.php → body_class filter. The .outil-color-* rule near the
   top sets `--page-accent`. Below: force every accent-bearing element to
   use --page-accent, beating any inline `--*-accent` set by block attributes.

   The favorite heart deliberately stays pink (universal "save" affordance).
   --------------------------------------------------------------------- */

/* Hero (split variant) — dot + wind SVG stroke */
body[class*="outil-color-"] .hero--split h1 .accent {
    color: var(--page-accent);
}
body[class*="outil-color-"] .hero--split .hero-illu svg {
    stroke: var(--page-accent);
}

/* Concept block — the underlined accent word ("AIDE ?") */
body[class*="outil-color-"] .concept h2 .accent {
    color: var(--page-accent);
}

/* Technique slider — section title + bullets + interactive states */
body[class*="outil-color-"] .techniques .section-title .accent {
    color: var(--page-accent);
    text-decoration-color: var(--page-accent);
}
body[class*="outil-color-"] .techniques .card-list li::before {
    background: var(--page-accent);
}
body[class*="outil-color-"] .technique-card:hover {
    border-color: var(--page-accent);
}
body[class*="outil-color-"] .slider-arrow:hover:not([disabled]) {
    background: var(--page-accent);
    border-color: var(--page-accent);
    color: #fff;
}
body[class*="outil-color-"] .slider-dot.is-active {
    background: var(--page-accent);
}

/* ════════════════════════════════════════════════════════════════════════
   THEME LANDING PAGE
   ════════════════════════════════════════════════════════════════════════ */

/* ─── INTRO ─── */
.theme-intro {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 0 56px;
}
/* Match the design's .intro-inner: 820px max content, centered within
   the 1200px section. The `!important` overrides any WP layout-constrained
   max-width that may be injected by the block editor's group block. */
.theme-intro .theme-intro-inner,
.theme-intro > .theme-intro-inner {
    max-width: 820px !important;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
    width: 100%;
    box-sizing: border-box;
}
.theme-intro-inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--pink) 0%, var(--purple) 100%);
    opacity: 0.7;
}
.theme-intro-inner p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.theme-intro-inner p:last-child { margin-bottom: 0; }
.theme-intro-inner strong { color: var(--text); font-weight: 700; }
@media (max-width: 768px) {
    .theme-intro-inner { padding-left: 20px; }
}

/* ─── STATS ─── */
.theme-stats {
    background: var(--dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.theme-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 12% 50%, rgba(185, 77, 255, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 60% at 88% 50%, rgba(255, 95, 163, 0.14), transparent 60%);
    pointer-events: none;
}
.theme-stats-inner {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    text-align: center;
}
.stat-num {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(40px, 5.5vw, 64px);
    line-height: 1;
    letter-spacing: -1px;
    margin: 0;
}
.stat-num.pink   { color: var(--pink); }
.stat-num.green  { color: var(--green); }
.stat-num.blue   { color: var(--blue); }
.stat-num.purple { color: var(--neon-purple); }
.stat-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.65);
    margin-top: 10px;
}
@media (max-width: 768px) {
    .theme-stats-inner { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
}

/* ─── SECTION HEADER (title + controls in a row) ─── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 36px;
}
.section-header-left { flex: 1; min-width: 0; }
@media (max-width: 768px) {
    .section-header { flex-direction: column; align-items: stretch; gap: 0; }
    .section-header .carousel-controls {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 12px;
    }
}

/* ─── SHARED HORIZONTAL CAROUSEL ─── */
.h-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 12px;
    --fade-size: 64px;
    --fade-left: 0px;
    --fade-right: var(--fade-size);
    margin-left: calc(-1 * var(--fade-size));
    margin-right: calc(-1 * var(--fade-size));
    padding-left: var(--fade-size);
    padding-right: var(--fade-size);
    scroll-padding-left: var(--fade-size);
    scroll-padding-right: var(--fade-size);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent 100%);
}
.h-carousel::-webkit-scrollbar { display: none; }
.h-track { display: flex; gap: 20px; width: max-content; }

/* ─── TOPIC GRID in CAROUSEL mode ─── */
.topics.layout-carousel .topic-grid {
    display: flex;
    gap: 20px;
    grid-template-columns: none;
    width: max-content;
}
.topics.layout-carousel .topic-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* ─── TOOL ICON CAROUSEL ─── */
.tools-icon-section {
    background: var(--bg-alt);
    padding: 80px 0 96px;
    position: relative;
}
.tools-icon-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 55% at 15% 20%, rgba(185, 77, 255, 0.16), transparent 60%),
        radial-gradient(ellipse 50% 45% at 90% 85%, rgba(45, 213, 140, 0.12), transparent 60%);
    pointer-events: none;
}
.tools-icon-inner {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.tool-icon-card {
    position: relative;
    flex: 0 0 220px;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    scroll-snap-align: start;
    transition: border-color 0.3s ease, transform 0.3s ease;
    text-align: center;
}
.tool-icon-card:hover { transform: translateY(-3px); }
.tool-icon-card.color-pink:hover   { border-color: var(--pink); }
.tool-icon-card.color-green:hover  { border-color: var(--green); }
.tool-icon-card.color-blue:hover   { border-color: var(--blue); }
.tool-icon-card.color-purple:hover { border-color: var(--neon-purple, var(--purple)); }

.tool-icon-card .tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tool-icon-card .tool-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.75;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tool-icon-card.color-pink   .tool-icon { background: var(--pink-light); }
.tool-icon-card.color-green  .tool-icon { background: var(--green-light); }
.tool-icon-card.color-blue   .tool-icon { background: var(--blue-light); }
.tool-icon-card.color-purple .tool-icon { background: var(--purple-light); }
.tool-icon-card.color-pink   .tool-icon svg { stroke: var(--pink); }
.tool-icon-card.color-green  .tool-icon svg { stroke: var(--green); }
.tool-icon-card.color-blue   .tool-icon svg { stroke: var(--blue); }
.tool-icon-card.color-purple .tool-icon svg { stroke: var(--neon-purple, var(--purple)); }

.tool-icon-card .tool-name {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.3;
    margin: 0;
}

/* ─── FEATURED TOOLS ─── */
.featured-tools-section {
    padding: 56px 0 96px;
}
.featured-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}
.featured-tool {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: block;
}
.featured-tool:hover { transform: translateY(-3px); }
.featured-tool.color-pink:hover   { border-color: var(--pink); }
.featured-tool.color-green:hover  { border-color: var(--green); }
.featured-tool.color-blue:hover   { border-color: var(--blue); }
.featured-tool.color-purple:hover { border-color: var(--neon-purple, var(--purple)); }
.featured-tool-preview {
    height: 100px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-tool.color-pink   .featured-tool-preview { background: var(--pink-light); }
.featured-tool.color-green  .featured-tool-preview { background: var(--green-light); }
.featured-tool.color-blue   .featured-tool-preview { background: var(--blue-light); }
.featured-tool.color-purple .featured-tool-preview { background: var(--purple-light); }
.featured-tool-preview svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.75;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.featured-tool.color-pink   .featured-tool-preview svg { stroke: var(--pink); }
.featured-tool.color-green  .featured-tool-preview svg { stroke: var(--green); }
.featured-tool.color-blue   .featured-tool-preview svg { stroke: var(--blue); }
.featured-tool.color-purple .featured-tool-preview svg { stroke: var(--neon-purple, var(--purple)); }
.featured-tool h4 {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
    margin: 0 0 6px;
}
.featured-tool p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 768px) {
    .featured-tools { grid-template-columns: 1fr; }
}

/* ─── HERO · SUJET VARIANT ─── */
.hero--sujet,
.is-layout-constrained > .hero--sujet,
.is-layout-constrained > .wp-block-resosante-hero.hero--sujet {
    position: relative;
    min-height: 56vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}
.hero--sujet .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.hero--sujet .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 10, 25, 0.85) 0%, rgba(15, 10, 25, 0.55) 55%, rgba(15, 10, 25, 0.25) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.45) 100%);
}
.hero--sujet .hero-content {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0 100px;
}
.hero--sujet .hero-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
    letter-spacing: 0.4px;
}
.hero--sujet .hero-crumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}
.hero--sujet .hero-crumbs a:hover { color: #fff; }
.hero--sujet .hero-crumbs .sep { opacity: 0.5; }
.hero--sujet .hero-crumbs .current { color: #fff; }
.hero--sujet .hero-eyebrow {
    display: inline-block;
    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}
.hero--sujet .hero-sub {
    display: block;
    font-style: italic;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    line-height: 1.5;
    margin-bottom: 22px;
}
.hero--sujet h1 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(44px, 7.2vw, 92px);
    color: #fff;
    line-height: 1.0;
    text-transform: uppercase;
    letter-spacing: -1px;
    max-width: 820px;
    margin: 0;
}
.hero--sujet h1 .line-1 { display: block; color: #fff; }
.hero--sujet h1 .line-2 { display: block; color: var(--hero-accent, var(--neon-purple, #d580ff)); }

.hero--sujet.alignfull,
.wp-block-group .hero--sujet.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

@media (max-width: 768px) {
    .hero--sujet .hero-content { padding: 56px 0 72px; }
    .hero--sujet .hero-sub { font-size: 16px; }
}

/* ─── QUOTE CALLOUT ─── */
.quote {
    position: relative;
    padding: 26px 28px 26px 32px;
    background: var(--purple-light, #f3eaff);
    border-radius: var(--radius, 16px);
    overflow: hidden;
    margin: 0;
}
.quote::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 24px;
    bottom: 24px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--pink, #ff5fa3) 0%, var(--purple, #b94dff) 100%);
    opacity: 0.85;
}
.quote .quote-mark {
    position: absolute;
    top: 8px;
    right: 18px;
    font-family: "Dela Gothic One", sans-serif;
    font-size: 78px;
    color: var(--purple, #b94dff);
    opacity: 0.18;
    line-height: 1;
    pointer-events: none;
}
.quote p {
    font-style: italic;
    font-size: 18px;
    line-height: 1.65;
    color: var(--text, #1a1326);
    position: relative;
    z-index: 1;
    margin: 0;
}

/* ─── CTA SECTION ─── */
.cta {
    background: var(--dark, #0f0a19);
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: 24px;
}
.is-layout-constrained > .cta,
.is-layout-constrained > .wp-block-resosante-cta-section.cta {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 12% 50%, rgba(185, 77, 255, 0.20), transparent 60%),
        radial-gradient(ellipse 50% 60% at 88% 50%, rgba(255, 95, 163, 0.16), transparent 60%);
    pointer-events: none;
}
.cta-inner {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0 88px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.cta h2 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 4.6vw, 48px);
    color: #fff;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.8px;
    max-width: 760px;
    margin: 0;
}
.cta h2 .accent { color: var(--neon-purple, #d580ff); }
.cta p {
    max-width: 540px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    min-height: 48px;
    border-radius: 50px;
    background: #fff;
    color: var(--text, #1a1326);
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    margin-top: 8px;
}
.cta-btn:hover {
    transform: translateY(-3px);
    color: var(--purple, #b94dff);
    box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.55);
}
.cta-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}
.cta-btn:hover svg { transform: translateX(4px); }

/* Smooth deep-linking to #outils */
html { scroll-behavior: smooth; }

/* ─── HELP BOX ─── */
.help-box {
    position: relative;
    background: var(--card, #fff);
    border: 1px solid var(--border, #ece6f5);
    border-radius: 22px;
    padding: 32px;
    overflow: hidden;
    box-shadow: 0 18px 40px -28px rgba(31, 29, 36, 0.18);
}
.help-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 100% 0%, rgba(255, 95, 163, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(185, 77, 255, 0.08), transparent 60%);
    pointer-events: none;
}
.help-eyebrow {
    position: relative;
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--pink, #ff5fa3);
    background: var(--pink-light, #ffe6f0);
    padding: 6px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.help-box h3 {
    position: relative;
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: clamp(20px, 2.4vw, 24px);
    color: var(--text, #1a1326);
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}
.help-box > p {
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary, #6b6378);
    margin: 0 0 18px;
    max-width: 640px;
}
.help-bullets {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 10px;
}
.help-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text, #1a1326);
}
.help-bullets li::before {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.help-bullets li:nth-child(3n+1)::before { background: var(--pink, #ff5fa3); }
.help-bullets li:nth-child(3n+2)::before { background: var(--green, #2dd58c); }
.help-bullets li:nth-child(3n+3)::before { background: var(--blue, #4d8eff); }
.help-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.help-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    min-height: 44px;
    border-radius: 50px;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}
.help-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.25;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.help-btn.secondary {
    background: #fff;
    color: var(--text, #1a1326);
    border: 1px solid var(--border, #ece6f5);
}
.help-btn.secondary:hover {
    transform: translateY(-2px);
    border-color: var(--purple, #b94dff);
    color: var(--purple, #b94dff);
}
.help-btn.primary {
    background: var(--pink, #ff5fa3);
    color: #fff;
    border: 1px solid var(--pink, #ff5fa3);
    box-shadow: 0 10px 24px -10px rgba(255, 95, 163, 0.55);
}
.help-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -10px rgba(255, 95, 163, 0.65);
}
@media (max-width: 768px) {
    .help-box { padding: 24px; }
    .help-actions { flex-direction: column; align-items: stretch; }
}

/* ─── NUMBERED LIST ─── */
.num-list {
    display: grid;
    gap: 40px;
    counter-reset: num-list;
}
.num-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 22px;
    align-items: start;
    counter-increment: num-list;
}
.num-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #fff;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(31, 29, 36, 0.10);
}
.num-badge::before {
    content: counter(num-list);
}
.num-item:nth-child(3n+1) .num-badge { background: var(--pink, #ff5fa3); }
.num-item:nth-child(3n+2) .num-badge { background: var(--green, #2dd58c); }
.num-item:nth-child(3n+3) .num-badge { background: var(--blue, #4d8eff); }
.num-body { padding-top: 6px; }
.num-body h3 {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 17px;
    color: var(--text, #1a1326);
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}
.num-body p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary, #6b6378);
    margin: 0;
}
@media (max-width: 768px) {
    .num-item { grid-template-columns: 44px 1fr; gap: 16px; }
    .num-badge { width: 44px; height: 44px; font-size: 18px; }
}

/* ─── RESOURCE LINKS ─── */
.resources h2 {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 400;
    font-size: clamp(22px, 2.6vw, 28px);
    color: var(--text, #1a1326);
    text-transform: uppercase;
    letter-spacing: -0.4px;
    margin: 0 0 18px;
    line-height: 1.15;
}
.resource-list {
    display: grid;
    gap: 12px;
}
.resource {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--card, #fff);
    border: 1px solid var(--border, #ece6f5);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text, #1a1326);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 44px;
}
.resource:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -20px rgba(31, 29, 36, 0.30);
}
.resource-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.resource-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.25;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.resource-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.resource-type {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary, #6b6378);
}
.resource-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #1a1326);
    letter-spacing: -0.1px;
}
.resource-arrow {
    flex-shrink: 0;
    color: var(--text-secondary, #6b6378);
    transition: transform 0.3s ease, color 0.25s ease;
}
.resource-arrow svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.25;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.resource:nth-child(3n+1):hover { border-color: var(--pink, #ff5fa3); }
.resource:nth-child(3n+1) .resource-icon { background: var(--pink-light, #ffe6f0); }
.resource:nth-child(3n+1) .resource-icon svg { stroke: var(--pink, #ff5fa3); }
.resource:nth-child(3n+1):hover .resource-arrow { color: var(--pink, #ff5fa3); transform: translateX(4px); }

.resource:nth-child(3n+2):hover { border-color: var(--green, #2dd58c); }
.resource:nth-child(3n+2) .resource-icon { background: var(--green-light, #d6f7e6); }
.resource:nth-child(3n+2) .resource-icon svg { stroke: var(--green, #2dd58c); }
.resource:nth-child(3n+2):hover .resource-arrow { color: var(--green, #2dd58c); transform: translateX(4px); }

.resource:nth-child(3n+3):hover { border-color: var(--blue, #4d8eff); }
.resource:nth-child(3n+3) .resource-icon { background: var(--blue-light, #e0ebff); }
.resource:nth-child(3n+3) .resource-icon svg { stroke: var(--blue, #4d8eff); }
.resource:nth-child(3n+3):hover .resource-arrow { color: var(--blue, #4d8eff); transform: translateX(4px); }

/* ─── SUJET · INTRO / ARTICLE / FEATURE IMAGE ─── */
.single-sujet .wp-block-group.intro {
    position: relative;
    padding: 72px 0 40px 32px;
}
.single-sujet .wp-block-group.intro::before {
    content: "";
    position: absolute;
    left: 0;
    top: 86px;
    bottom: 48px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--pink, #ff5fa3) 0%, var(--purple, #b94dff) 100%);
    opacity: 0.75;
}
.single-sujet .wp-block-group.intro p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary, #6b6378);
    margin: 0 0 18px;
}
.single-sujet .wp-block-group.intro p:last-child { margin-bottom: 0; }
.single-sujet .wp-block-group.intro strong { color: var(--text, #1a1326); font-weight: 700; }

.single-sujet .wp-block-group.article {
    padding: 0 0 40px;
}
.single-sujet .wp-block-group.article-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.wp-block-image.feature-img,
.single-sujet figure.wp-block-image {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border, #ece6f5);
    box-shadow: 0 18px 40px -20px rgba(31, 29, 36, 0.20);
    margin: 0;
}
.wp-block-image.feature-img img,
.single-sujet figure.wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wp-block-image.feature-img figcaption,
.single-sujet figure.wp-block-image figcaption,
.single-sujet figure.wp-block-image .wp-element-caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(31, 29, 36, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 6px 12px;
    border-radius: 50px;
    margin: 0;
}
@media (max-width: 768px) {
    .single-sujet .wp-block-group.intro { padding-left: 22px; padding-top: 56px; }
    .wp-block-image.feature-img,
    .single-sujet figure.wp-block-image { height: 220px; }
}

/* ─── MOBILE GUTTER (must come last to win cascade over later desktop rules) ─── */
@media (max-width: 1024px) {
    .header-inner,
    .hero-content,
    .hero--simple .hero-inner,
    .hero--split,
    .hero--sujet .hero-content,
    .techniques,
    .single-outil-toolbar,
    .favoris-list-wrap,
    .favoris-hero-inner,
    .favoris-empty-section,
    .favoris-saved-section,
    .breadcrumb,
    .mode-zen,
    .concept,
    .topics-inner,
    .single-sujet .topics > .topics-inner,
    .tools-inner,
    .tools-icon-inner,
    .theme-intro,
    .theme-stats-inner,
    .featured,
    .featured-tools,
    .footer-inner,
    .footer-bottom,
    .content-wrap,
    .cta-inner {
        width: auto;
        max-width: none;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
}

/* ─── MOBILE: Dela Gothic One titles — prevent overflow, allow wrapping ─── */
@media (max-width: 1024px) {
    .hero h1,
    .hero--simple h1,
    .hero--split h1,
    .hero--sujet h1,
    .favoris-hero h1,
    .favoris-empty-state h2,
    .zen-tag,
    .concept h2,
    .featured-title,
    .section-title,
    .single-sujet .topics .section-title,
    .single-sujet .topics .section-title .accent,
    .entry-content > h2,
    .entry-content > h3,
    .content-wrap h1,
    .content-wrap h2,
    .favoris-saved-title,
    .stat-num,
    .cta h2,
    .resources h2 {
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: auto;
        white-space: normal;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1            { font-size: clamp(32px, 8.5vw, 48px); letter-spacing: -0.5px; }
    .hero--simple h1    { font-size: clamp(34px, 9vw, 52px); letter-spacing: -0.5px; }
    .hero--split h1     { font-size: clamp(36px, 10vw, 56px); letter-spacing: -0.5px; }
    .hero--sujet h1     { font-size: clamp(30px, 8vw, 44px); letter-spacing: -0.5px; }
    .favoris-hero h1    { font-size: clamp(32px, 9vw, 50px); letter-spacing: -0.5px; }
    .favoris-empty-state h2 { font-size: clamp(20px, 5.5vw, 26px); }
    .zen-tag            { font-size: clamp(24px, 6.5vw, 36px); letter-spacing: -0.3px; }
    .concept h2         { font-size: clamp(20px, 5.5vw, 26px); letter-spacing: -0.3px; }
    .featured-title     { font-size: clamp(18px, 5vw, 22px); }
    .section-title      { font-size: clamp(22px, 6vw, 28px); letter-spacing: -0.3px; }
    .favoris-saved-title{ font-size: clamp(18px, 5vw, 22px); }
    .stat-num           { font-size: clamp(32px, 9vw, 44px); }
    .cta h2             { font-size: clamp(22px, 6.5vw, 32px); letter-spacing: -0.4px; }
    .resources h2       { font-size: clamp(20px, 5.5vw, 24px); }
    .content-wrap h1    { font-size: clamp(28px, 8vw, 40px); }
    .content-wrap h2    { font-size: clamp(22px, 6vw, 28px); }
    .entry-content > h2 { font-size: clamp(22px, 6vw, 28px); }
    .entry-content > h3 { font-size: clamp(20px, 5.5vw, 24px); }
}

@media (max-width: 380px) {
    .hero h1            { font-size: 28px; }
    .hero--simple h1    { font-size: 30px; }
    .hero--split h1     { font-size: 32px; }
    .hero--sujet h1     { font-size: 26px; }
    .favoris-hero h1    { font-size: 28px; }
    .section-title      { font-size: 20px; }
    .concept h2         { font-size: 18px; }
    .cta h2             { font-size: 20px; }
    .stat-num           { font-size: 28px; }
}
