/* ==========================================================================
   Pages interieures : actualites, projets, domaines, contact, don.
   S'appuie sur les variables de site.css.
   ========================================================================== */

.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5.5rem); }

/* ---------- Outils de liste : recherche et filtres ---------- */
.list-tools { display: grid; gap: 1.1rem; margin-bottom: 2rem; }
.list-tools--intro { grid-template-columns: 1fr minmax(280px, 460px); align-items: center; gap: 2rem; }
.list-intro { margin: 0; font-size: 1.12rem; color: var(--ink); max-width: 38rem; }
@media (max-width: 991.98px) { .list-tools--intro { grid-template-columns: 1fr; gap: 1.2rem; } }

.finder {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .4rem .4rem 1.1rem;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.finder:focus-within { border-color: var(--brand); box-shadow: 0 0 0 .25rem rgba(11, 108, 240, .12); }
.finder__icon { color: var(--muted); font-size: 1.05rem; }
.finder__input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: .55rem .2rem; font-size: 1rem; color: var(--ink); }
.finder__input::placeholder { color: #98a4b8; }
.finder__input::-webkit-search-cancel-button { display: none; }
.finder__clear { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.finder__clear:hover { background: var(--surface); color: var(--ink); }
.finder__submit { border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; padding: .65rem 1.4rem; font-family: var(--font-head); transition: background .2s ease; }
.finder__submit:hover { background: var(--brand-dark); }
@media (max-width: 575.98px) { .finder__submit { padding: .65rem 1rem; } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; font-size: .93rem; background: #fff; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip__count { font-size: .78rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: var(--surface); color: var(--muted); }
.chip.is-active .chip__count { background: rgba(255, 255, 255, .16); color: #fff; }

.result-line { margin: -.6rem 0 1.6rem; color: var(--muted); }
.result-line strong { color: var(--ink); }
mark { background: rgba(25, 180, 255, .22); color: inherit; padding: 0 .1em; border-radius: 3px; }

.empty-block { text-align: center; padding: 3.5rem 1rem; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty-block > .bi { font-size: 2.2rem; color: var(--brand-light); }
.empty-block h2 { font-size: 1.3rem; margin: .8rem 0 .4rem; }
.empty-block p { color: var(--muted); }

/* ---------- Actualites : article a la une ---------- */
.lead-story { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: 3.5rem; }
.lead-story__media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.lead-story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lead-story:hover .lead-story__media img { transform: scale(1.03); }
.lead-story__title { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.16; margin: .6rem 0 1rem; }
.lead-story__title a { color: var(--ink); }
.lead-story__title a:hover { color: var(--brand); }
.lead-story__text { font-size: 1.06rem; margin-bottom: 1.6rem; max-width: 36rem; }
@media (max-width: 991.98px) { .lead-story { grid-template-columns: 1fr; } }

.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }
.story-meta__tag { display: inline-block; padding: .2rem .75rem; border-radius: 999px; background: rgba(11, 108, 240, .09); color: var(--brand); font-size: .82rem; font-weight: 700; }

/* ---------- Actualites : carnet date ---------- */
.logbook { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.logbook__item { display: grid; grid-template-columns: 104px 1fr 200px; gap: clamp(1rem, 3vw, 2.2rem); align-items: start; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.logbook__date { display: flex; flex-direction: column; line-height: 1; padding-top: .2rem; }
.logbook__day { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--brand); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.logbook__month { margin-top: .4rem; font-weight: 600; color: var(--muted); font-size: .9rem; }
.logbook__title { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3; margin: .55rem 0 .5rem; }
.logbook__title a { color: var(--ink); }
.logbook__title a:hover { color: var(--brand); }
.logbook__text { margin: 0; max-width: 42rem; }
.logbook__media { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.logbook__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) {
    .logbook__item { grid-template-columns: 64px 1fr; }
    .logbook__day { font-size: 2.2rem; }
    .logbook__media { grid-column: 2; grid-row: 1; display: none; }
}

/* ---------- En-tete des pages de detail ---------- */
.detail-head { background: var(--surface); padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.4rem, 5vw, 3.6rem); border-bottom: 1px solid var(--line); }
.trail { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.6rem; padding: 0; font-size: .92rem; color: var(--muted); }
.trail li + li::before { content: "/"; margin-right: .4rem; color: #b5c1d3; }
.trail a { color: var(--muted); font-weight: 600; }
.trail a:hover { color: var(--brand); }
.detail-head__body { max-width: 860px; }
.detail-head__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.8rem; margin-bottom: 1.2rem; }
.detail-head__tag { display: inline-block; padding: .25rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--brand); font-weight: 700; font-size: .85rem; margin-bottom: 1rem; }
a.detail-head__tag:hover { border-color: var(--brand); }
.detail-head__title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.12; letter-spacing: -.01em; margin: 0; max-width: 26ch; }
.detail-head__lead { margin: 1.2rem 0 0; font-size: 1.15rem; line-height: 1.65; color: var(--text); max-width: 46rem; }
.detail-head__meta { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; color: var(--text); font-weight: 600; font-size: .95rem; }
.detail-head__meta li { display: inline-flex; align-items: center; gap: .45rem; }
.detail-head__meta .bi { color: var(--brand); }

/* ---------- Article ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1035; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-light)); transform: scaleX(0); transform-origin: left; }

.story { padding-bottom: clamp(3rem, 6vw, 5rem); }
.story__cover { margin: clamp(-2rem, -3vw, -1.4rem) auto 0; position: relative; }
.story__cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.story__layout { display: grid; grid-template-columns: 64px minmax(0, 720px); gap: clamp(1.5rem, 4vw, 3.5rem); justify-content: center; margin-top: clamp(2.2rem, 5vw, 3.5rem); }
.story__share { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.story__share-label { font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .2rem; }
.story__share a, .story__share button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 1.05rem; transition: all .2s ease; }
.story__share a:hover, .story__share button:hover { border-color: var(--brand); color: var(--brand); }
.story__share button.is-done { border-color: var(--brand); background: var(--brand); color: #fff; }
.story__lead { font-size: 1.22rem; line-height: 1.7; color: var(--ink); font-weight: 600; margin-bottom: 1.8rem; }
.rich-content--story { font-size: 1.08rem; line-height: 1.85; color: #33415a; }
.rich-content--story h2 { font-size: 1.55rem; margin-top: 2.4rem; }
.rich-content--story h3 { font-size: 1.25rem; }
.story__end { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: 1.5rem; }
.story__org { display: flex; align-items: center; gap: 1rem; }
.story__org img { width: 52px; height: 52px; object-fit: contain; }
.story__org strong { display: block; color: var(--ink); font-family: var(--font-head); }
.story__org span { color: var(--muted); font-size: .93rem; }
.story__end-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 767.98px) {
    .story__layout { grid-template-columns: 1fr; }
    .story__share { position: static; flex-direction: row; order: 2; justify-content: flex-start; }
    .story__share-label { margin: 0 .3rem 0 0; }
}

.story-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 880px; margin: 3rem auto 0; }
.story-nav__link { display: flex; flex-direction: column; gap: .4rem; padding: 1.3rem 1.5rem; border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .2s ease; }
.story-nav__link:hover { border-color: var(--brand); color: var(--ink); }
.story-nav__link--next { text-align: right; align-items: flex-end; }
.story-nav__dir { font-size: .86rem; font-weight: 700; color: var(--brand); display: inline-flex; gap: .4rem; align-items: center; }
.story-nav__title { font-family: var(--font-head); font-weight: 700; line-height: 1.35; }
@media (max-width: 575.98px) { .story-nav { grid-template-columns: 1fr; } .story-nav__link--next { text-align: left; align-items: flex-start; } }

/* ---------- Projets : registre ---------- */
.register { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.register__row { display: grid; grid-template-columns: 132px 1fr auto; gap: clamp(1rem, 3vw, 2rem); align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.register--compact .register__row { grid-template-columns: 1fr auto; }
.register__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.register__media img { width: 100%; height: 100%; object-fit: cover; }
.register__title { font-size: 1.12rem; line-height: 1.4; font-weight: 700; margin: 0 0 .6rem; max-width: 60rem; }
.register__title a { color: var(--ink); }
.register__title a:hover { color: var(--brand); }
.register__facts { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; margin: 0; font-size: .92rem; }
.register__facts div { display: flex; gap: .4rem; }
.register__facts dt { color: var(--muted); font-weight: 600; }
.register__facts dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 767.98px) {
    .register__row { grid-template-columns: 88px 1fr; }
    .register--compact .register__row { grid-template-columns: 1fr; }
    .register__row .state { grid-column: 2; justify-self: start; }
    .register--compact .register__row .state { grid-column: 1; }
}

.state { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state--en_cours { background: rgba(25, 180, 255, .14); color: #0a6aa8; }
.state--termine { background: #eef2f7; color: #5b677c; }

.fact-strip { background: #fff; border-bottom: 1px solid var(--line); }
.fact-strip__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; }
.fact-strip__item { padding: 1.3rem 1.4rem 1.3rem 0; }
.fact-strip__item + .fact-strip__item { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.fact-strip dt { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.fact-strip dd { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.4; }
@media (max-width: 767.98px) { .fact-strip__item + .fact-strip__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }

/* ---------- Domaines : bandes alternees ---------- */
.axes { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.axis { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 5vw, 4.5rem); align-items: center; }
.axis--flip .axis__media { order: 2; }
.axis__media { display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.axis__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.axis:hover .axis__media img { transform: scale(1.03); }
.axis__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(11, 108, 240, .1); color: var(--brand); font-size: 1.6rem; margin-bottom: 1.2rem; }
.axis__title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; margin-bottom: 1rem; }
.axis__title a { color: var(--ink); }
.axis__title a:hover { color: var(--brand); }
.axis__text { font-size: 1.08rem; max-width: 34rem; margin-bottom: 1.6rem; }
@media (max-width: 767.98px) { .axis { grid-template-columns: 1fr; } .axis--flip .axis__media { order: 0; } }

.domain-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; }
.domain-index__item { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-family: var(--font-head); }
.domain-index__item .bi { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(11, 108, 240, .1); color: var(--brand); font-size: 1.15rem; }
.domain-index__item:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Contact ---------- */
.channels { position: relative; z-index: 4; margin-top: clamp(-3.5rem, -5vw, -2rem); }
.channels__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.channel { padding: 1.8rem 1.8rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.channel + .channel { border-left: 1px solid var(--line); }
.channel__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.25rem; margin-bottom: .7rem; }
.channel__title { font-size: 1.05rem; color: var(--muted); font-weight: 700; margin: 0 0 .2rem; }
.channel__value { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink); word-break: break-word; }
a.channel__value:hover { color: var(--brand); }
.channel__value--text { font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.5; margin: 0; }
.channel__note { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); }
.channel__link { margin-top: .6rem; font-weight: 700; font-size: .93rem; display: inline-flex; gap: .4rem; align-items: center; }
@media (max-width: 767.98px) { .channel + .channel { border-left: 0; border-top: 1px solid var(--line); } }

.contact-hints { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-hints li { display: flex; gap: .9rem; }
.contact-hints .bi { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(11, 108, 240, .09); color: var(--brand); }
.contact-hints strong { display: block; color: var(--ink); }
.contact-hints span { font-size: .93rem; color: var(--muted); }
.form-optional { font-weight: 500; color: var(--muted); font-size: .82rem; margin-left: .2rem; }
.req { color: #d63a4a; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
.form-submit .form-legal { margin: 0; text-align: left; max-width: 26rem; display: flex; gap: .5rem; }
.map-block { position: relative; }
.map-block__card { position: absolute; left: max(1rem, calc((100vw - 1296px) / 2 + .75rem)); bottom: 1.5rem; max-width: 320px; padding: 1.1rem 1.3rem; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); line-height: 1.5; }
.map-block__card strong { display: block; color: var(--ink); font-family: var(--font-head); }
.map-block__card span { font-size: .92rem; }

/* ---------- Don ---------- */
.donate-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.donate-aside { position: static; }
@media (min-height: 1000px) { .donate-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
@media (max-width: 991.98px) { .donate-layout { grid-template-columns: 1fr; } .donate-aside { position: static; } }
.donate-sub { font-size: 1.3rem; margin: 2.6rem 0 1.2rem; }
.fund-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .7rem; }
.fund-list a { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; }
.fund-list a:hover { border-color: var(--brand); color: var(--brand); }
.fund-list__icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: rgba(11, 108, 240, .1); color: var(--brand); }
.steps-line { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0; }
.steps-line li { counter-increment: step; position: relative; padding: 0 0 1.6rem 3.4rem; }
.steps-line li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 800; font-variant-numeric: lining-nums; }
.steps-line li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 2.2rem; bottom: .2rem; width: 2px; background: var(--line); }
.steps-line strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.05rem; }
.steps-line span { color: var(--text); }
.bank-card__number { font-variant-numeric: tabular-nums lining-nums; letter-spacing: .02em; }
.btn-outline-light .bi-clipboard-check { color: var(--brand-light); }

/* ---------- A propos ---------- */
.about-hero { background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); padding: clamp(1.6rem, 3vw, 2.4rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.about-hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-hero__label { font-family: var(--font-head); font-weight: 700; color: var(--brand); margin-bottom: 1rem; }
.about-hero__title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.02em; color: var(--navy); margin: 0 0 1.3rem; max-width: 12ch; }
.about-hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--text); max-width: 34rem; margin-bottom: 2rem; }
.about-hero__media { position: relative; }
.about-hero__media.has-inset { padding-bottom: 3.5rem; }
.about-hero__main { position: relative; margin: 0; }
.about-hero__main > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); background: var(--surface); }
.about-hero__motto { position: absolute; left: 1.2rem; top: 1.2rem; display: flex; align-items: center; gap: .7rem; max-width: calc(100% - 2.4rem); padding: .55rem 1.1rem .55rem .55rem; border-radius: 999px; background: rgba(7, 42, 94, .88); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.25; backdrop-filter: blur(6px); }
.about-hero__motto img { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; }
.about-hero__inset { position: absolute; left: -2.2rem; bottom: 0; width: 42%; margin: 0; padding: 7px; background: #fff; border-radius: 22px; box-shadow: 0 24px 50px -22px rgba(9, 35, 84, .45); }
.about-hero__inset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; }
@media (max-width: 991.98px) {
    .about-hero__grid { grid-template-columns: 1fr; }
    .about-hero__inset { left: auto; right: 1rem; width: 40%; }
}
@media (max-width: 575.98px) {
    .about-hero__main > img { aspect-ratio: 4 / 3.4; border-radius: 20px; }
    .about-hero__media.has-inset { padding-bottom: 2.5rem; }
    .about-hero__motto { left: .7rem; top: .7rem; font-size: .88rem; }
    .about-hero__motto img { width: 32px; height: 32px; }
}

.field-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 1rem; }
.field-gallery__item { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--surface); grid-column: span 2; }
.field-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.field-gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.1rem .9rem; background: linear-gradient(180deg, transparent, rgba(5, 28, 64, .85)); color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.field-gallery__item:first-child { grid-column: span 4; grid-row: span 2; }
.field-gallery--1 .field-gallery__item { grid-column: 1 / -1; grid-row: span 2; }
.field-gallery--2 .field-gallery__item { grid-column: span 3; grid-row: span 2; }
.field-gallery--4 .field-gallery__item:nth-child(4) { grid-column: span 6; }
.field-gallery--5 .field-gallery__item:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 767.98px) {
    .field-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
    .field-gallery .field-gallery__item { grid-column: span 1; grid-row: span 1; }
    .field-gallery .field-gallery__item:first-child { grid-column: 1 / -1; grid-row: span 2; }
}

.about-open { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 991.98px) { .about-open { grid-template-columns: 1fr; } }

.id-card { border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.id-card__head { display: flex; align-items: center; gap: .9rem; padding: 1.3rem 1.5rem; background: var(--navy); color: #fff; }
.id-card__head img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.id-card__head strong { display: block; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.1; }
.id-card__head span { font-size: .88rem; color: rgba(255, 255, 255, .72); }
.id-card__list { margin: 0; padding: .4rem 1.5rem; }
.id-card__list > div { display: grid; grid-template-columns: 128px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.id-card__list > div:last-child { border-bottom: 0; }
.id-card__list dt { font-size: .88rem; font-weight: 600; color: var(--muted); }
.id-card__list dd { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.5; font-size: .95rem; }
.id-card__contact { display: grid; gap: .5rem; padding: 1rem 1.5rem 1.3rem; background: var(--surface); }
.id-card__contact a { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; word-break: break-word; }
@media (max-width: 420px) { .id-card__list > div { grid-template-columns: 1fr; gap: .2rem; } }

.vision-band { background: var(--navy); color: rgba(255, 255, 255, .86); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.vision-band__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.vision-band__words { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.vision-band--image .vision-band__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.vision-band--image .vision-band__words { grid-template-columns: 1fr; gap: 2.2rem; }
.vision-band__media { margin: 0; }
.vision-band__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 26px; }
.vision-band__vision { margin: 0; }
.vision-band__vision figcaption { font-family: var(--font-head); font-weight: 700; color: var(--brand-light); font-size: 1.05rem; margin-bottom: 1rem; }
.vision-band__vision blockquote { margin: 0; font-family: var(--font-head); font-weight: 800; color: #fff; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.16; letter-spacing: -.01em; max-width: 22ch; }
.vision-band__mission { padding-left: clamp(0rem, 3vw, 2.5rem); border-left: 3px solid rgba(25, 180, 255, .55); }
.vision-band__mission h2 { color: #fff; font-size: 1.35rem; margin-bottom: .9rem; }
.vision-band__mission .rich-content { color: rgba(255, 255, 255, .82); }
.vision-band__mission .rich-content strong { color: #fff; }
@media (max-width: 991.98px) {
    .vision-band__grid, .vision-band__words, .vision-band--image .vision-band__grid { grid-template-columns: 1fr; }
    .vision-band__media img { aspect-ratio: 16 / 10; }
    .vision-band__mission { padding-left: 1.2rem; }
}

.aims { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.aims__head p { margin: 0; }
.aims__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.aims__list li { display: flex; gap: .8rem; align-items: flex-start; padding: 1.15rem 1rem 1.15rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.08rem; line-height: 1.35; }
.aims__list .bi { color: var(--brand); margin-top: .15rem; }
@media (max-width: 991.98px) { .aims { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .aims__list { grid-template-columns: 1fr; } }

.partner-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.partner-grid li > a, .partner-grid li > div { height: 92px; display: grid; place-items: center; padding: 1rem; border-radius: var(--radius-sm); background: #fff; border: 1.5px solid var(--line); text-align: center; }
.partner-grid li > a:hover { border-color: var(--brand); }
.partner-grid span { font-family: var(--font-head); font-weight: 800; color: var(--navy); line-height: 1.2; }
.partner-grid img { max-height: 56px; max-width: 100%; object-fit: contain; }

.join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.8rem; padding: clamp(2rem, 5vw, 3.2rem); border-radius: 26px; background: linear-gradient(120deg, var(--navy) 0%, var(--brand) 100%); color: #fff; }
.join__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.join__text { margin: 0; max-width: 38rem; color: rgba(255, 255, 255, .86); }
.join__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.join--image { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(4rem, 10vw, 7rem); }
.join__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.join--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 28, 64, .92) 0%, rgba(7, 42, 94, .7) 55%, rgba(11, 108, 240, .45) 100%); }

/* ---------- Detail d'un domaine ---------- */
.domain-hero { position: relative; background: var(--navy); color: rgba(255, 255, 255, .86); padding: clamp(2rem, 4vw, 3rem) 0 0; overflow: hidden; }
.domain-hero::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(25, 180, 255, .22), transparent 65%); pointer-events: none; }
.trail--light { margin-bottom: 1.8rem; }
.trail--light a, .trail--light { color: rgba(255, 255, 255, .7); }
.trail--light a:hover { color: #fff; }
.trail--light li + li::before { color: rgba(255, 255, 255, .35); }
.domain-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.domain-hero__text { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.domain-hero__label { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; color: var(--brand-light); margin-bottom: 1rem; }
.domain-hero__label .bi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.25rem; }
.domain-hero__title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.06; letter-spacing: -.015em; margin: 0 0 1.2rem; max-width: 14ch; }
.domain-hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.65; max-width: 34rem; margin-bottom: 2rem; color: rgba(255, 255, 255, .86); }
.domain-hero__media { margin: 0; align-self: stretch; display: flex; align-items: flex-end; }
.domain-hero__media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .6); background: #fff; }
@media (max-width: 991.98px) {
    .domain-hero__grid { grid-template-columns: 1fr; }
    .domain-hero__text { padding-bottom: 0; }
    .domain-hero__media img { aspect-ratio: 16 / 10; }
}

.domain-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.domain-body__text { max-width: 44rem; }
@media (max-width: 991.98px) { .domain-body__grid { grid-template-columns: 1fr; } }

.act-card { border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); padding: 1.6rem; }
.act-card__title { font-size: 1.2rem; margin-bottom: 1rem; }
.act-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.act-card__list a { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; border: 1.5px solid var(--line); color: var(--text); transition: border-color .2s ease, background .2s ease; }
.act-card__list a:hover { border-color: var(--brand); background: #f6faff; color: var(--text); }
.act-card__list .bi { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(11, 108, 240, .1); color: var(--brand); font-size: 1.1rem; }
.act-card__list strong { display: block; color: var(--ink); font-family: var(--font-head); }
.act-card__list span { font-size: .92rem; line-height: 1.45; }

.domain-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.domain-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .domain-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .domain-cards--3 { grid-template-columns: 1fr; } }
.domain-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.domain-card:hover { border-color: var(--brand); color: var(--brand); }
.domain-card__media { display: block; aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.domain-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.domain-card:hover .domain-card__media img { transform: scale(1.05); }
.domain-card__body { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; }
.domain-card__body .bi { color: var(--brand); font-size: 1.15rem; }
.domain-card__title { font-family: var(--font-head); font-weight: 700; line-height: 1.3; }

/* ---------- Detail d'un projet ---------- */
.project-hero { position: relative; background: var(--surface); padding: clamp(1.6rem, 3vw, 2.4rem) 0 clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.project-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.project-hero__status { margin-bottom: 1.1rem; }
.project-hero__status .state { font-size: .9rem; padding: .4rem 1rem; background: #fff; box-shadow: var(--shadow-sm); }
.project-hero__title { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; letter-spacing: -.015em; color: var(--navy); margin: 0; max-width: 24ch; }
.project-hero__title--long { font-size: clamp(1.7rem, 3.2vw, 2.45rem); line-height: 1.16; max-width: 30ch; }
.project-hero__lead { margin: 1.4rem 0 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.65; max-width: 40rem; }

.project-file { border-radius: 24px; background: #fff; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.project-file__media { margin: 0; }
.project-file__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--surface); }
.project-file__facts { margin: 0; padding: .4rem 1.5rem .6rem; }
.project-file__facts > div { display: grid; grid-template-columns: 38px 1fr; column-gap: .9rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.project-file__facts > div:last-child { border-bottom: 0; }
.project-file__facts .bi { grid-row: span 2; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(11, 108, 240, .1); color: var(--brand); font-size: 1.05rem; }
.project-file__facts dt { font-size: .84rem; font-weight: 600; color: var(--muted); }
.project-file__facts dd { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.45; }
@media (max-width: 991.98px) {
    .project-hero__grid { grid-template-columns: 1fr; }
    .project-file { max-width: 560px; }
}

.project-body__text { max-width: 46rem; }
.project-pending { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.6rem; border-radius: 20px; border: 1.5px dashed #c9d6ea; background: #fbfdff; }
.project-pending > .bi { width: 52px; height: 52px; flex-shrink: 0; border-radius: 15px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.4rem; }
.project-pending__title { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.15rem; line-height: 1.35; margin-bottom: .5rem; }
.project-pending p:not(.project-pending__title) { margin-bottom: 1.1rem; }
@media (max-width: 575.98px) { .project-pending { flex-direction: column; } }
