/* ==========================================================================
   SELANCE — pages.css : mises en page propres aux pages (accueil, rubriques, article, témoignage…)
   ========================================================================== */

/* ---------------------------------------------------------------- Accueil : hero */
.hero { position: relative; overflow: hidden; background: #F4EAE3; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; filter: saturate(.85) brightness(1.04); }
/* Voile blanc + dégradés haut / bas / gauche / droite */
.hero__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 22%),
        linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 26%),
        linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .92) 28%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 16%),
        rgba(255, 255, 255, .28);
}
.hero__inner { position: relative; display: flex; align-items: center; min-height: clamp(500px, 62vw, 680px); padding-block: 4rem 6rem; }
.hero__content { max-width: 41rem; }
.hero__eyebrow { font-family: var(--font-title); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--selance-teal); margin-bottom: 1.25rem; }
.hero__title { font-size: clamp(2.1rem, 1.2rem + 3.8vw, 3.75rem); line-height: 1.12; color: var(--teal-900); margin-bottom: 1.25rem; }
.hero__text { font-size: 1.1875rem; color: var(--ink); max-width: 30rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__words { position: absolute; right: var(--gutter); top: 18%; list-style: none; font-style: italic; font-size: 1.35rem; color: var(--teal-900); line-height: 1.5; text-align: left; }
.hero__words li:nth-child(2) { margin-left: 1.2rem; }
.hero__words li:nth-child(3) { margin-left: 2.4rem; }
.hero__words li:nth-child(4) { margin-left: 3.6rem; }
.hero__words li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .6rem; border-radius: 50%; background: var(--selance-coral); vertical-align: middle; }

/* Accès rapide */
.quick-access-wrap { position: relative; z-index: 2; margin-top: -3.5rem; }
.quick-access { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.quick-card { display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; padding: 1.5rem 1rem 1.35rem; text-align: center; text-decoration: none; color: var(--ink); transition: background .2s; }
.quick-access li + li .quick-card { border-left: 1px solid var(--line); }
.quick-card:hover { background: var(--teal-050); }
.quick-card__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: .35rem; color: var(--turquoise-700); transition: transform .25s var(--ease); }
.quick-card:hover .quick-card__icon { transform: translateY(-3px); }
.quick-card__icon .icon { width: 2.4rem; height: 2.4rem; stroke-width: 1.5; }
.quick-card__title { font-family: var(--font-title); font-weight: 600; font-size: .95rem; color: var(--selance-teal); line-height: 1.3; }
.quick-card__text { font-size: .8125rem; color: var(--ink-soft); line-height: 1.45; }

/* Chiffres clés */
.stats { padding-top: 2.5rem; }
.stats__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; }
.stat { display: flex; align-items: center; gap: 1rem; }
.stat__icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; color: var(--turquoise-700); }
.stat:nth-child(3) .stat__icon { color: var(--selance-coral); }
.stat__icon .icon { width: 2.5rem; height: 2.5rem; stroke-width: 1.4; }
.stat__body { display: grid; }
.stat__value { font-family: var(--font-title); font-weight: 600; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.1; color: var(--selance-teal); }
.stat__label { font-size: .875rem; color: var(--ink-soft); line-height: 1.4; }
.stats__note { display: flex; align-items: center; gap: .5rem; margin: 1.25rem 0 0; font-size: .8125rem; color: #7A5A00; }

/* À la une */
.spotlight { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; margin-top: 3.5rem; }
.feature-card { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 520px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; box-shadow: var(--shadow); }
.feature-card__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.feature-card { background: var(--teal-900); }
.feature-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 59, 78, .96) 0%, rgba(7, 59, 78, .85) 38%, rgba(7, 59, 78, 0) 72%); }
.feature-card__body { padding: clamp(1.5rem, 3vw, 2.5rem); max-width: 30rem; }
.feature-card__title { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.2; }
.feature-card__text { color: #E3F2F6; font-size: 1rem; }
.feature-card__by { color: #BFF3F7; font-size: var(--fs-small); margin-bottom: 1.25rem; }
.spotlight__articles { display: grid; gap: 1.5rem; }
.side-article { position: relative; display: grid; grid-template-columns: 1fr 42%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.side-article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.side-article__body { padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.side-article__tag { font-family: var(--font-title); font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--coral-strong); margin: 0 0 .25rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.side-article h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.side-article h3 a { color: inherit; text-decoration: none; }
.side-article h3 a::after { content: ""; position: absolute; inset: 0; }
.side-article p { font-size: var(--fs-small); color: var(--ink-soft); }
.side-article__media { display: block; min-height: 100%; }
.side-article__media img { width: 100%; height: 100%; object-fit: cover; }

/* Étapes */
.stages { padding-top: 4.5rem; }
.stages__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.stages__head .section-sub { max-width: 40rem; }
.stage-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; list-style: none; }
.stage-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.stage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stage-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal-100); }
.stage-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.stage-card:hover .stage-card__media img { transform: scale(1.05); }
.stage-card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.15rem 1.25rem; flex: 1; }
.stage-card__body strong { font-family: var(--font-title); font-size: 1rem; color: var(--selance-teal); }
.stage-card__body > span:not(.card__link) { font-size: .875rem; color: var(--ink-soft); line-height: 1.5; }
.stage-card .card__link { margin-top: auto; padding-top: .6rem; }

/* Communauté */
.community { margin-top: 4.5rem; padding-block: 4rem; background: linear-gradient(180deg, var(--teal-050), #E6F4F7); }
.community__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3rem; align-items: center; }
.community__intro .btn { margin-top: 1rem; }
.community__demo { font-size: .8125rem; color: #7A5A00; margin: -.25rem 0 0; }

/* Bandeau d'appel à l'action */
.cta-band { position: relative; overflow: hidden; color: #fff; margin-top: 4rem; isolation: isolate; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 59, 78, .86), rgba(7, 59, 78, .5) 60%, rgba(7, 59, 78, .2)); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); margin-bottom: .35rem; }
.cta-band p { margin: 0; font-size: 1.1875rem; color: #E3F2F6; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.site-header + main > .cta-band:last-child, main > .cta-band:last-child { margin-bottom: -4rem; }

/* ---------------------------------------------------------------- Pages internes : hero */
.page-hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; background: var(--teal-900); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 52, 74, .92) 0%, rgba(7, 59, 78, .72) 45%, rgba(7, 59, 78, .15) 100%); }
.page-hero__inner { padding-block: clamp(2.5rem, 6vw, 4.5rem); min-height: clamp(240px, 28vw, 340px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.page-hero__title { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); margin: 1rem 0 .5rem; }
.page-hero__sub { font-family: var(--font-title); font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); font-weight: 500; margin: 0 0 .75rem; max-width: 40rem; }
.page-hero__lead { max-width: 40rem; color: #D6EAF0; margin: 0; font-size: 1rem; }

/* ---------------------------------------------------------------- Pages internes : mise en page à deux colonnes */
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 3rem; align-items: start; padding-block: 1rem 2rem; }
.layout__aside { position: sticky; top: calc(var(--header-h) + 1.25rem); }
.layout__main > * + * { margin-top: 2.5rem; }
.layout__main > .notice { margin-top: 2rem; }
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1rem; box-shadow: var(--shadow-sm); }
.side-nav__title { font-family: var(--font-title); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin: 0 .5rem .75rem; }
.side-nav ul { list-style: none; display: grid; gap: .15rem; }
.side-nav a { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .45rem .75rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.side-nav a .icon { color: var(--turquoise-700); }
.side-nav a small { margin-left: auto; color: var(--ink-soft); font-weight: 600; }
.side-nav a:hover { background: var(--teal-050); color: var(--selance-teal); }
.side-nav a.is-active { background: var(--coral-soft); color: #A8243A; font-weight: 700; }
.side-nav a.is-active .icon { color: var(--coral-strong); }
.block > .section-title--sm, .block > .section-head { margin-top: 0; }
.block__more { margin-top: 1.5rem; }

.prose-block h2 { margin-bottom: 1rem; }
.video-card { position: relative; margin: 2.5rem 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: var(--teal-900); box-shadow: var(--shadow); }
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 52, 74, .85), rgba(6, 52, 74, 0) 60%); }
.video-card__play { position: absolute; z-index: 1; left: 50%; top: 45%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--selance-teal); box-shadow: var(--shadow-lg); }
.video-card__play .icon { width: 2rem; height: 2rem; margin-left: .2rem; }
.video-card figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.5rem; display: grid; color: #fff; }
.video-card figcaption strong { font-family: var(--font-title); font-size: 1.25rem; }
.video-card figcaption span { font-size: .875rem; color: #D6EAF0; }

.lead-article { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.lead-article__media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.lead-article__body { padding: 1.75rem; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.lead-article__body h3 { font-size: 1.4rem; margin: .25rem 0; }
.lead-article__body h3 a { color: inherit; text-decoration: none; }
.lead-article__body h3 a:hover { text-decoration: underline; }
.lead-article__body p { margin: 0; color: var(--ink-soft); }
.lead-article__body p:first-child { color: inherit; }
.newsletter-block { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding: 1.5rem; background: var(--teal-050); border: 1px solid #CFE5EC; border-radius: var(--radius); }
.newsletter-block__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--turquoise-700); }
.newsletter-block > div { flex: 1; min-width: 220px; }
.newsletter-block h2 { font-size: 1.15rem; margin-bottom: .2rem; }
.newsletter-block p { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); }
.newsletter-block .newsletter { flex: 1 1 320px; }

/* ---------------------------------------------------------------- Article */
.article > * + * { margin-top: 1.5rem; }
.article__meta { display: grid; gap: .6rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.meta-inline { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; font-size: var(--fs-small); color: var(--ink-soft); }
.sources { padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--fs-small); }
.sources h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.sources p { margin-bottom: .4rem; }

/* ---------------------------------------------------------------- Témoignage individuel */
.temo { padding-block: 1rem 2rem; }
.temo__head { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; margin-bottom: 2rem; }
.temo__portrait { margin: 0; width: 220px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow); background: var(--teal-100); }
.temo__portrait img { width: 100%; height: 100%; object-fit: cover; }
.temo h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); margin: .75rem 0; }
.temo__by { color: var(--turquoise-700); font-weight: 600; margin-bottom: .75rem; }
.temo__excerpt { font-size: 1.2rem; font-style: italic; color: var(--ink); margin: 0; }

/* ---------------------------------------------------------------- Divers */
.search-page { padding-bottom: 2rem; }
.search-page .search-form { margin-block: 1rem 1.5rem; max-width: 46rem; }
.search-page__count { margin-top: 1.5rem; color: var(--ink-soft); }
.static-page { padding-bottom: 2rem; }
.static-page__updated { margin-top: 2.5rem; font-size: var(--fs-small); }
.error-page { padding-block: 3rem 4rem; max-width: 44rem; }
.error-page .chip { background: var(--teal-100); color: var(--teal-800); border-color: transparent; }
.error-page .search-form { margin-block: 1.5rem; }
