/*
 * Styles du site public ROOT (landing, hub /features/, pages de detail).
 * / Styles for the ROOT public site (landing, /features/ hub, detail pages).
 *
 * LOCALISATION : seo/static/seo/seo.css
 *
 * ============================================================================
 * COULEUR : on consomme la MARQUE, on ne code aucune couleur en dur.
 * ============================================================================
 * L'identite du site est portee par commun/css/marque.css (bleu Loseyan). Ce
 * fichier n'invente aucune couleur : il lit les jetons de marque.
 *
 *   --tb-marque         LE GESTE  (bleu #4296cc). Filets, soulignes, aplats
 *                                 decoratifs, bordures. JAMAIS sous du texte.
 *   --tb-marque-encre   L'ENCRE   son jumeau assombri. Texte et liens bleus,
 *                                 fond des boutons pleins (contraste teste).
 *   --tb-marque-contraste         ce qui se pose SUR l'encre (blanc).
 *   var(--bs-link-color)          l'encre cablee par Bootstrap (bascule en sombre).
 *
 * Les surfaces (fond, bordures, texte secondaire) viennent des jetons Bootstrap
 * (--bs-body-bg, --bs-tertiary-bg, --bs-border-color...) : ils s'adaptent seuls
 * au theme clair/sombre.
 * / We consume the brand tokens; we hardcode no colour. --tb-marque = the gesture
 * (never under text), --tb-marque-encre = the ink (text/links/button fills).
 */

/* Equilibrer les titres (pas de mot orphelin sur la derniere ligne). */
/* / Balance headings (no orphan word on the last line). */
h1, h2, h3, .lead {
    text-wrap: balance;
}

/* Antialiased pour un rendu net sur tous les OS. */
/* / Antialiased for crisp rendering on all OSes. */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Cartes generiques (page /recherche/) : filet hairline, bordure bleue au survol. */
/* / Generic cards (/recherche/): hairline rule, blue border on hover. */
.seo-card {
    border: 1px solid var(--bs-border-color);
    transition: border-color 200ms var(--ease-out, ease), transform 200ms var(--ease-out, ease), box-shadow 200ms var(--ease-out, ease);
}

.seo-card:hover {
    border-color: var(--tb-marque);
    box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.30);
    transform: translateY(-2px);
}

.seo-card .card-img-top {
    outline: 1px solid var(--bs-border-color);
    outline-offset: -1px;
}

@media (prefers-reduced-motion: reduce) {
    .seo-card {
        transition: none;
    }
    .seo-card:hover {
        transform: none;
    }
}


/* ================================================================ */
/* HERO — mots-cles en display Staatliches soulignes de bleu.        */
/* Fini le degrade text-clip : le geste, c'est un filet bleu DESSOUS */
/* le mot, pas une couleur qui remplit le texte.                     */
/* / HERO — keywords in Staatliches display, underlined in brand blue.*/
/* No more text-clip gradient: the gesture is a blue rule UNDER the   */
/* word, not a colour filling the glyphs.                            */
/* ================================================================ */

.hero-section {
    background: var(--bs-tertiary-bg);
    /* Filet bleu de marque en bas du hero : structure editoriale nette. */
    /* / Brand-blue rule at the bottom of the hero: crisp editorial edge. */
    border-bottom: 3px solid var(--tb-marque);
    padding: 3.5rem 1rem 3rem;
    margin-bottom: 2.5rem;
}

/* Layout 2 colonnes : texte a gauche, logo a droite. */
/* / 2 columns: text left, logo right. */
.hero-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

/* Titre H1 — corps en Luciole ; les mots-cles passent en Staatliches. */
/* / H1 title — Luciole body; keywords switch to Staatliches. */
.hero-title {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    /* Coupe les mots trop longs plutot que de deborder (mobile). */
    /* / Break over-long words instead of overflowing (mobile). */
    overflow-wrap: anywhere;
}

/* Mot-cle : police display condensee + filet bleu dessine dessous. */
/* Le texte reste en couleur de corps (lisible) ; le bleu est le GESTE. */
/* / Keyword: condensed display face + a drawn blue rule underneath. The */
/* text stays body-coloured (readable); the blue is the GESTURE. */
.hero-kw {
    font-family: staatliches, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    /* Le filet bleu : un fond lineaire cale en bas, epais de ~0.14em. */
    /* / The blue rule: a linear background pinned to the bottom, ~0.14em thick. */
    background-image: linear-gradient(var(--tb-marque), var(--tb-marque));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0.14em;
    padding-bottom: 0.06em;
}

/* Boutons CTA. La principale = plein bleu de marque (encre + contraste teste). */
/* / CTA buttons. Primary = solid brand blue (ink + tested contrast). */
.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-btn-primary {
    font-weight: 700;
    padding: 0.65rem 1.8rem;
    border-radius: 8px;
    background: var(--tb-marque-encre);
    border: 1px solid var(--tb-marque-encre);
    color: var(--tb-marque-contraste);
    white-space: nowrap;
    transition: background 200ms var(--ease-out, ease), transform 150ms var(--ease-out, ease);
}

.hero-btn-primary:hover {
    /* Assombrit l'encre au survol (meme geste que .btn-primary de marque.css). */
    /* / Darken the ink on hover (same move as marque.css .btn-primary). */
    background: color-mix(in srgb, var(--tb-marque-encre) 86%, black);
    border-color: color-mix(in srgb, var(--tb-marque-encre) 86%, black);
    color: var(--tb-marque-contraste);
    transform: translateY(-1px);
}

.hero-btn-primary:focus-visible {
    outline: 3px solid var(--tb-marque-encre);
    outline-offset: 3px;
}

.hero-btn-secondary {
    font-weight: 600;
    padding: 0.65rem 1.8rem;
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
    background: transparent;
    color: var(--bs-body-color);
    transition: border-color 200ms var(--ease-out, ease), color 200ms var(--ease-out, ease);
}

.hero-btn-secondary:hover {
    /* Le contour prend l'encre bleue (texte + bordure) : lisible, sur-charte. */
    /* / The outline takes the blue ink (text + border): readable, on-brand. */
    border-color: var(--tb-marque-encre);
    color: var(--bs-link-color);
}

.hero-btn-secondary:focus-visible {
    outline: 3px solid var(--tb-marque-encre);
    outline-offset: 3px;
}

/* Logo TiBillet a droite — masque sur mobile. */
/* / TiBillet logo on the right — hidden on mobile. */
.hero-logo {
    flex-shrink: 0;
}

.hero-logo-img {
    width: 320px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 767.98px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }
    .hero-logo {
        display: none;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-section {
        padding: 2.5rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-btn-primary {
        transition: none;
    }
    .hero-btn-primary:hover {
        transform: none;
    }
}


/* ================================================================ */
/* PHILOSOPHIE — texte editorial, filet bleu de section.             */
/* / PHILOSOPHY — editorial text, blue section rule.                 */
/* ================================================================ */

.philo-section {
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 1rem 0;
}

.philo-title {
    font-family: staatliches, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1.5rem;
    /* Filet bleu court sous le titre : signature de section, pas un trait plein. */
    /* / Short blue rule under the heading: a section signature, not a full line. */
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--tb-marque);
    display: inline-block;
}

.philo-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.philo-col p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--bs-secondary-color);
}

.philo-col strong {
    color: var(--bs-body-color);
}

@media (max-width: 767.98px) {
    .philo-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* ================================================================ */
/* FONCTIONNALITES — grille de cartes editoriales, icone bleue plate.*/
/* Fini les pastilles a degrade : l'icone est un carre a fond bleu   */
/* tres doux, l'icone elle-meme en encre bleue.                      */
/* / FEATURES — editorial card grid, flat blue icon. No gradient      */
/* pills: a softly blue-tinted square, the glyph in blue ink.        */
/* ================================================================ */

.features-section {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 1rem 0;
}

.features-heading {
    text-align: center;
    font-family: staatliches, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 0.5rem;
}

.features-subheading {
    color: var(--bs-secondary-color);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* Carte = lien vers la page de detail. Filet hairline, pas d'ombre flottante. */
/* / Card = link to the detail page. Hairline rule, no floating shadow. */
.feature-card {
    padding: 1.5rem 1.4rem;
}

.feature-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-body-bg);
    transition: border-color 200ms var(--ease-out, ease), transform 200ms var(--ease-out, ease), box-shadow 200ms var(--ease-out, ease);
}

.feature-card--link:hover {
    /* Au survol : la bordure prend le bleu de marque + un leger relief. */
    /* / On hover: the border takes brand blue + a slight lift. */
    border-color: var(--tb-marque);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.30);
}

.feature-card--link:focus-visible {
    outline: 3px solid var(--tb-marque-encre);
    outline-offset: 2px;
}

/* Icone : carre a coins doux, fond bleu tres leger, glyphe en encre bleue. */
/* / Icon: soft-cornered square, very light blue fill, blue-ink glyph. */
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--tb-marque) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--bs-link-color);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--bs-secondary-color);
    margin-bottom: 0;
}

/* Affordance « En savoir plus → » — encre bleue, fleche qui avance au survol. */
/* / "Learn more →" affordance — blue ink, arrow nudges on hover. */
.feature-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bs-link-color);
}

.feature-more i {
    transition: transform 200ms var(--ease-out, ease);
}

.feature-card--link:hover .feature-more i {
    transform: translateX(3px);
}

/* Responsive : 2 colonnes tablette, 1 colonne mobile. */
/* / Responsive: 2 cols tablet, 1 col mobile. */
@media (max-width: 991.98px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-card--link,
    .feature-more i {
        transition: none;
    }
    .feature-card--link:hover {
        transform: none;
    }
    .feature-card--link:hover .feature-more i {
        transform: none;
    }
}


/* ================================================================ */
/* CONTRIBUER — panneau d'appel a participation (dans Fonctionnalites)*/
/* Dé-verdi : encadre bleu de marque, plus de degrade vert/bleu.     */
/* / CONTRIBUTE — participation panel. De-greened: brand-blue frame.  */
/* ================================================================ */

.contribute-panel {
    margin-top: 3rem;
    border-radius: 16px;
    /* Fond bleu tres doux + anneau bleu : se detache de la grille. */
    /* / Very soft blue fill + blue ring: stands out from the grid. */
    background: color-mix(in srgb, var(--tb-marque) 7%, var(--bs-body-bg));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tb-marque) 45%, transparent);
    padding: 2.75rem 1.5rem;
}

.contribute-body {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* Icone fusee : carre bleu plein (encre), glyphe en contraste. */
/* / Rocket icon: solid blue (ink) square, contrast glyph. */
.contribute-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--tb-marque-encre);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.6rem;
    color: var(--tb-marque-contraste);
}

.contribute-title {
    font-family: staatliches, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    margin-bottom: 0.85rem;
}

.contribute-lead {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bs-secondary-color);
    margin-bottom: 1.5rem;
}

/* Pastilles des chantiers ouverts — contour bleu, wrap centre. */
/* / Open-work chips — blue outline, centered wrap. */
.contribute-chantiers {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.contribute-chantier {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--bs-body-bg);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tb-marque) 40%, transparent);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

.contribute-chantier i {
    color: var(--bs-link-color);
    font-size: 0.95rem;
}

.contribute-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.contribute-btn {
    font-weight: 700;
    padding: 0.7rem 2rem;
    border-radius: 8px;
    background: var(--tb-marque-encre);
    border: 1px solid var(--tb-marque-encre);
    color: var(--tb-marque-contraste);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background 200ms var(--ease-out, ease), transform 150ms var(--ease-out, ease);
}

.contribute-btn:hover {
    background: color-mix(in srgb, var(--tb-marque-encre) 86%, black);
    border-color: color-mix(in srgb, var(--tb-marque-encre) 86%, black);
    color: var(--tb-marque-contraste);
    transform: translateY(-1px);
}

.contribute-btn:focus-visible {
    outline: 3px solid var(--tb-marque-encre);
    outline-offset: 3px;
}

.contribute-cta-hint {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    display: inline-flex;
    align-items: center;
}

@media (prefers-reduced-motion: reduce) {
    .contribute-btn {
        transition: none;
    }
    .contribute-btn:hover {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .contribute-panel {
        padding: 2rem 1rem;
    }
}


/* ================================================================ */
/* FAQ — questions frequentes en <details>/<summary> natifs.         */
/* Accessible sans JS. Sert aussi le JSON-LD FAQPage (rich results). */
/* / FAQ — native <details>/<summary>. Accessible without JS. Also    */
/* backs the FAQPage JSON-LD (rich results).                         */
/* ================================================================ */

.faq-section {
    max-width: 820px;
    margin: 0 auto 4rem;
    padding: 1rem 0;
}

.faq-heading {
    text-align: center;
    font-family: staatliches, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 2rem;
}

/* Chaque question = un filet hairline en haut ; ensemble = liste editoriale. */
/* / Each question = a hairline top rule; together = an editorial list. */
.faq-item {
    border-top: 1px solid var(--bs-border-color);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--bs-border-color);
}

.faq-summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Retire le marqueur natif (triangle) sur tous les navigateurs. */
/* / Remove the native marker (triangle) across browsers. */
.faq-summary::-webkit-details-marker {
    display: none;
}

/* Signe « + » en encre bleue, pivote en « x » quand la question est ouverte. */
/* / Blue-ink "+" sign, rotates into "x" when the question is open. */
.faq-summary::after {
    content: "+";
    font-family: luciole, sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--bs-link-color);
    flex-shrink: 0;
    transition: transform 200ms var(--ease-out, ease);
}

.faq-item[open] .faq-summary::after {
    transform: rotate(45deg);
}

.faq-summary:focus-visible {
    outline: 3px solid var(--tb-marque-encre);
    outline-offset: 3px;
    border-radius: 4px;
}

.faq-answer {
    padding: 0 0 1.2rem;
    max-width: 68ch;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--bs-secondary-color);
}

@media (prefers-reduced-motion: reduce) {
    .faq-summary::after {
        transition: none;
    }
}


/* ================================================================ */
/* Bandeau deferoulant « Nos lieux vivants » — marquee CSS infini.   */
/* / Scrolling marquee "Nos lieux vivants" — infinite CSS marquee.   */
/* ================================================================ */

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.marquee-section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.marquee-section h2 {
    font-family: staatliches, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.marquee-track {
    display: flex;
    overflow: hidden;
    gap: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.marquee-content {
    display: flex;
    gap: 1rem;
    padding-right: 1rem;
    flex-shrink: 0;
    animation: marquee-scroll var(--marquee-duration, 30s) linear infinite;
}

.marquee-track:hover .marquee-content {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
    }
    .marquee-track {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: var(--bs-tertiary-bg);
    text-decoration: none;
    color: var(--bs-body-color);
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 200ms var(--ease-out, ease), box-shadow 200ms var(--ease-out, ease);
}

.marquee-item:hover {
    background: var(--bs-secondary-bg);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tb-marque) 45%, transparent);
    color: var(--bs-body-color);
    text-decoration: none;
}

.marquee-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    outline: 1px solid var(--bs-border-color);
    outline-offset: -1px;
    background: #fff;
}

/* Initiale (fallback sans logo) — DÉ-ARC-EN-CIELISÉ : deux tons de bleu de */
/* marque en alternance (les deux portent du blanc, contraste verifie).    */
/* / Initial (no-logo fallback) — DE-RAINBOWED: two alternating brand-blue */
/* tones (both carry white text, contrast checked).                        */
.marquee-initiale {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
    background: var(--tb-marque-encre);        /* #2d76a6 — 4.94:1 sur blanc */
}

.marquee-item:nth-child(even) .marquee-initiale {
    background: rgb(36, 94, 133);              /* survol #245e85 — 6.97:1 */
}

.marquee-name {
    font-size: 0.9rem;
    font-weight: 500;
}


/* ================================================================ */
/* Bandeau « Prochains evenements » — marquee avec vignettes.        */
/* / "Upcoming events" marquee — with thumbnails.                    */
/* ================================================================ */

.marquee-content--events {
    gap: 1.25rem;
    padding-right: 1.25rem;
    animation-duration: 45s;
}

.event-marquee-card {
    display: flex;
    flex-direction: column;
    width: 260px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    transition: border-color 200ms var(--ease-out, ease), transform 200ms var(--ease-out, ease), box-shadow 200ms var(--ease-out, ease);
}

.event-marquee-card:hover {
    border-color: var(--tb-marque);
    box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.30);
    transform: translateY(-3px);
    color: var(--bs-body-color);
    text-decoration: none;
}

.event-marquee-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bs-tertiary-bg);
    border-radius: 12px 12px 0 0;
}

.event-marquee-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    outline: 1px solid var(--bs-border-color);
    outline-offset: -1px;
    transition: transform 400ms var(--ease-out, ease);
}

.event-marquee-card:hover .event-marquee-img {
    transform: scale(1.04);
}

/* Placeholder sans image — deux tons de bleu en alternance. */
/* / No-image placeholder — two alternating brand-blue tones. */
.event-marquee-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: var(--tb-marque-encre);
}

.marquee-content--events .event-marquee-card:nth-child(even) .event-marquee-img-placeholder {
    background: rgb(36, 94, 133);
}

.event-marquee-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem 0.75rem;
}

.event-marquee-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-marquee-date,
.event-marquee-lieu {
    font-size: 0.76rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-marquee-date i,
.event-marquee-lieu i {
    font-size: 0.7rem;
    margin-right: 0.2rem;
}

@media (prefers-reduced-motion: reduce) {
    .event-marquee-card,
    .event-marquee-img {
        transition: none;
    }
    .event-marquee-card:hover {
        transform: none;
    }
    .event-marquee-card:hover .event-marquee-img {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .event-marquee-card {
        width: 220px;
    }
    .event-marquee-name {
        font-size: 0.84rem;
    }
}


/* ================================================================ */
/* ILS CONTRIBUENT — grille de logos cliquables + noms.              */
/* / THEY CONTRIBUTE — grid of clickable logos + names.              */
/* ================================================================ */

.contributeurs-section {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 2.5rem 1.5rem;
    background: var(--bs-secondary-bg);
    border-radius: 1rem;
}

.contributeurs-heading {
    text-align: center;
    font-family: staatliches, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.contributeurs-subheading {
    color: var(--bs-secondary-color);
    margin-bottom: 2.5rem;
}

.contributeurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.75rem 1rem;
    align-items: start;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contributeur-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    text-decoration: none;
    color: var(--bs-body-color);
}

.contributeur-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 96px;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    transition: border-color 200ms var(--ease-out, ease), transform 200ms var(--ease-out, ease), box-shadow 200ms var(--ease-out, ease);
}

/* Relief uniquement sur les logos cliquables (les <a>), pas les <span>. */
/* / Hover lift only on clickable logos (the <a>), not the <span>. */
a.contributeur-item:hover .contributeur-logo-box {
    border-color: var(--tb-marque);
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.30);
    transform: translateY(-2px);
}

.contributeur-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.contributeur-nom {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    color: var(--bs-body-color);
}

@media (prefers-reduced-motion: reduce) {
    .contributeur-logo-box {
        transition: none;
    }
    a.contributeur-item:hover .contributeur-logo-box {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .contributeurs-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.25rem 0.75rem;
    }
    .contributeur-logo-box {
        height: 80px;
        padding: 0.6rem;
    }
    .contributeur-logo {
        max-height: 48px;
    }
}


/* ================================================================ */
/* PAGE DE DETAIL D'UNE FONCTIONNALITE (.fd-*) — dé-verdi.           */
/* Article lisible : fil d'Ariane, en-tete, sections texte/capture,  */
/* appels a l'action, maillage interne. Meme feuille que la landing, */
/* donc le passage au bleu couvre aussi le hub et les pages detail.  */
/* / FEATURE DETAIL PAGE (.fd-*) — de-greened. Shared stylesheet, so  */
/* the switch to blue covers the hub and detail pages too.           */
/* ================================================================ */

.fd-page {
    max-width: 1000px;
}

.fd-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
    color: var(--bs-secondary-color);
}

.fd-breadcrumb a {
    color: var(--bs-link-color);
    text-decoration: none;
}

.fd-breadcrumb a:hover {
    text-decoration: underline;
}

.fd-breadcrumb a:focus-visible {
    outline: 3px solid var(--tb-marque-encre);
    outline-offset: 2px;
    border-radius: 3px;
}

.fd-breadcrumb-sep {
    margin: 0 0.4rem;
}

.fd-breadcrumb-current {
    color: var(--bs-body-color);
    font-weight: 600;
}

.fd-header {
    margin-bottom: 1.5rem;
}

/* En-tete : carre bleu plein (encre) + glyphe contraste. */
/* / Header: solid blue (ink) square + contrast glyph. */
.fd-icon {
    width: 66px;
    height: 66px;
    border-radius: 16px;
    background: var(--tb-marque-encre);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.9rem;
    color: var(--tb-marque-contraste);
}

.fd-title {
    font-family: staatliches, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    margin-bottom: 0.5rem;
    overflow-wrap: anywhere;
}

.fd-tagline {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bs-link-color);
    margin-bottom: 0;
}

.fd-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--bs-body-color);
    max-width: 740px;
    margin-bottom: 3rem;
}

.fd-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.fd-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.fd-section:nth-child(even) .fd-section-text {
    order: 2;
}

.fd-section:nth-child(even) .fd-figure {
    order: 1;
}

.fd-section-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.fd-section-text p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--bs-secondary-color);
    margin-bottom: 0;
}

.fd-figure {
    margin: 0;
}

/* Capture a venir : cadre pointille bleu etiquete, pas de fausse image. */
/* / Screenshot to come: labelled dashed blue frame, no fake image. */
.fd-figure-placeholder {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--tb-marque) 55%, transparent);
    background: color-mix(in srgb, var(--tb-marque) 6%, var(--bs-body-bg));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--bs-link-color);
}

.fd-figure-placeholder i {
    font-size: 2rem;
    opacity: 0.7;
}

.fd-figure-placeholder span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.fd-figcaption {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    text-align: center;
}

.fd-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.fd-btn-primary {
    font-weight: 700;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    background: var(--tb-marque-encre);
    border: 1px solid var(--tb-marque-encre);
    color: var(--tb-marque-contraste);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background 200ms var(--ease-out, ease), transform 150ms var(--ease-out, ease);
}

.fd-btn-primary:hover {
    background: color-mix(in srgb, var(--tb-marque-encre) 86%, black);
    border-color: color-mix(in srgb, var(--tb-marque-encre) 86%, black);
    color: var(--tb-marque-contraste);
    transform: translateY(-1px);
}

.fd-btn-primary:focus-visible {
    outline: 3px solid var(--tb-marque-encre);
    outline-offset: 2px;
}

.fd-btn-secondary {
    font-weight: 600;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
    background: transparent;
    color: var(--bs-body-color);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: border-color 200ms var(--ease-out, ease), color 200ms var(--ease-out, ease);
}

.fd-btn-secondary:hover {
    border-color: var(--tb-marque-encre);
    color: var(--bs-link-color);
}

.fd-btn-secondary:focus-visible {
    outline: 3px solid var(--tb-marque-encre);
    outline-offset: 2px;
}

/* Maillage interne : autres fonctionnalites. */
/* / Internal linking: other features. */
.fd-related {
    border-top: 1px solid var(--bs-border-color);
    padding-top: 2rem;
}

.fd-related-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.fd-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.fd-related-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--bs-body-color);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tb-marque) 40%, transparent);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 200ms var(--ease-out, ease), box-shadow 200ms var(--ease-out, ease);
}

.fd-related-item > i:first-child {
    color: var(--bs-link-color);
    font-size: 1.1rem;
}

.fd-related-item .ms-auto {
    color: var(--bs-link-color);
}

.fd-related-item:hover {
    background: color-mix(in srgb, var(--tb-marque) 6%, var(--bs-body-bg));
    box-shadow: inset 0 0 0 1px var(--tb-marque);
}

.fd-related-item:focus-visible {
    outline: 3px solid var(--tb-marque-encre);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .fd-section {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .fd-section:nth-child(even) .fd-section-text,
    .fd-section:nth-child(even) .fd-figure {
        order: initial;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fd-btn-primary,
    .fd-btn-secondary,
    .fd-related-item {
        transition: none;
    }
    .fd-btn-primary:hover {
        transform: none;
    }
}
