/* themes/bootswatch_cosmo/css/style.css — Cosmo flat/tile.
   Concept "metro" : blocs de couleur plats, tuiles carrées, géométrie nette,
   coins (quasi) non arrondis, boutons plats. Bâti sur les variables --bs-*. */

:root {
    --bsw-radius: 0px;            /* squared-off : géométrie carrée */
    --bsw-edge: rgba(var(--bs-primary-rgb), .14);
    --bsw-gap: clamp(.9rem, 2vw, 1.25rem);
}

/* ---- Section rhythm ---------------------------------------------------- */
.bsw-section { padding: clamp(3rem, 7vw, 5rem) 0; }
main > section { scroll-margin-top: 5rem; }

/* Bandes alternées pour un rythme "blocs plats" */
main > section:nth-of-type(even) {
    background: rgba(var(--bs-primary-rgb), .035);
}

/* =======================================================================
   HERO — full-bleed color band + squared 2x2 metro tile grid
   Headline (white, flat, left) sur une bande pleine largeur de couleur
   primaire ; à droite une grille 2x2 de tuiles plates (icône + libellé),
   coins carrés, bords nets. CTA blanc plat. Empile en mobile.
   ======================================================================= */
.bsw-hero {
    /* Full-bleed : la bande couvre toute la largeur de la fenêtre,
       même si un conteneur parent limite la largeur. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--bs-primary);
    color: #fff;
    padding: clamp(2.75rem, 7vw, 5.5rem) clamp(1rem, 5vw, 4rem);
    border-bottom: 6px solid rgba(0, 0, 0, .2);
}

.bsw-hero__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
}

.bsw-hero__eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: .35rem .8rem;
    margin-bottom: 1.25rem;
    color: #fff;
    background: rgba(0, 0, 0, .18);
    border-radius: var(--bsw-radius);
}

.bsw-hero__title {
    font-weight: 800;
    line-height: 1.04;
    margin: 0 0 1rem;
    font-size: clamp(2.3rem, 6.2vw, 4rem);
    letter-spacing: -.015em;
    color: #fff;
}

.bsw-hero__lead {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    line-height: 1.5;
    max-width: 44ch;
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, .92);
}

.bsw-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bsw-gap);
}

/* CTA blanc plat carré sur la bande de couleur */
.bsw-hero .bsw-btn-cta {
    background: #fff;
    border: 2px solid #fff;
    color: var(--bs-primary);
}
.bsw-hero .bsw-btn-cta:hover {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(255, 255, 255, .9);
    color: var(--bs-primary);
}
.bsw-hero .bsw-btn-ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .7);
    color: #fff;
}
.bsw-hero .bsw-btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: #fff;
    color: #fff;
}

/* Grille 2x2 de tuiles metro plates, coins carrés, bords nets */
.bsw-hero__tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bsw-gap);
}
.bsw-tile {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .16);
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: var(--bsw-radius);
    transition: background-color .15s ease, transform .15s ease;
}
.bsw-tile:hover {
    background: #fff;
    transform: translateY(-3px);
}
.bsw-tile__icon {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: #fff;
    line-height: 1;
    transition: color .15s ease;
}
.bsw-tile:hover .bsw-tile__icon { color: var(--bs-primary); }
.bsw-tile__label {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
    transition: color .15s ease;
}
.bsw-tile:hover .bsw-tile__label { color: var(--bs-primary); }

/* =======================================================================
   FLAT BUTTONS (global) — coins carrés, état hover net
   ======================================================================= */
.btn {
    border-radius: var(--bsw-radius);
    font-weight: 600;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* =======================================================================
   CARDS / TILES — carrées, bord net, hover plat
   ======================================================================= */
.card {
    border-radius: var(--bsw-radius);
    border: 1px solid var(--bsw-edge);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover {
    border-color: var(--bs-primary);
    box-shadow: 6px 6px 0 rgba(var(--bs-primary-rgb), .14);
    transform: translateY(-2px);
}
.card .card-title a { color: var(--bs-body-color); }
.card .card-title a:hover { color: var(--bs-primary); }

/* Accent plat en tête de tuile services */
.services .card { border-top: 4px solid var(--bs-primary); }

/* Titres de section : libellé carré, plat */
.section-title h2,
.bsw-section h2 {
    font-weight: 800;
    letter-spacing: -.01em;
}
.section-title { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

/* =======================================================================
   FOOTER
   ======================================================================= */
.bsw-footer a { text-decoration: none; }
.bsw-footer a:hover { color: var(--bs-primary) !important; }

/* =======================================================================
   RESPONSIVE
   ======================================================================= */
@media (max-width: 991.98px) {
    .bsw-hero__grid { grid-template-columns: 1fr; }
    .bsw-hero__tiles { max-width: 420px; }
}
@media (max-width: 575.98px) {
    .bsw-hero__actions .btn { width: 100%; }
    .bsw-hero__tiles { grid-template-columns: repeat(2, 1fr); }
    .bsw-tile { aspect-ratio: auto; padding: 1.1rem .75rem; }
}

/* Respecte les préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .bsw-tile, .card, .btn { transition: none; }
    .bsw-tile:hover, .card:hover { transform: none; }
}

/* =======================================================================
   PHASE 3 — sections bespoke : flat / metro / tuiles carrées
   Bâti sur --bs-primary, --bs-primary-rgb, --bs-body-bg, --bs-body-color.
   Hover = décalage net (hard offset-shadow), coins carrés (--bsw-radius).
   ======================================================================= */

/* ---- Pastille / drapeau plat carré ------------------------------------ */
.bsw-flag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .25rem .6rem;
    color: #fff;
    background: var(--bs-primary);
    border-radius: var(--bsw-radius);
}
/* Variante urgente : drapeau plat carré rouge */
.bsw-flag--urgent { background: var(--bs-danger); }

/* =======================================================================
   PROJECTS — tuiles carrées, image nette, hover décalé
   ======================================================================= */
.bsw-project { overflow: hidden; }
.bsw-project__img {
    height: 220px;
    object-fit: cover;
    border-radius: var(--bsw-radius);
    filter: saturate(.92);
    transition: filter .15s ease;
}
.bsw-project:hover .bsw-project__img { filter: saturate(1.05); }
.bsw-project__placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .08);
}
.bsw-project__meta {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bs-primary);
}

/* =======================================================================
   TEAM — fiches carrées, photo plate, réseaux en blocs
   ======================================================================= */
.bsw-member { overflow: hidden; }
.bsw-member__img {
    height: 240px;
    object-fit: cover;
    border-radius: var(--bsw-radius);
    filter: grayscale(.2);
    transition: filter .15s ease;
}
.bsw-member:hover .bsw-member__img { filter: grayscale(0); }
.bsw-member__placeholder {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .1);
}
.bsw-member__role {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bs-primary);
}
.bsw-member__social {
    display: flex;
    justify-content: center;
    gap: .4rem;
}
.bsw-member__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--bs-primary);
    border: 1px solid var(--bsw-edge);
    border-radius: var(--bsw-radius);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bsw-member__social a:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

/* =======================================================================
   TESTIMONIALS — citations en tuiles carrées, barre primaire à gauche
   ======================================================================= */
.bsw-quote {
    border-left: 4px solid var(--bs-primary);
}
.bsw-quote__mark {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: .5rem;
    color: var(--bs-primary);
}
.bsw-quote__text {
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--bs-body-color);
}
.bsw-quote__avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--bsw-radius);
    border: 2px solid rgba(var(--bs-primary-rgb), .3);
}

/* =======================================================================
   FAQ — accordéon plat carré, indicateur net
   ======================================================================= */
.bsw-faq__item {
    border: 1px solid var(--bsw-edge);
    border-radius: var(--bsw-radius) !important;
    margin-bottom: .75rem;
    overflow: hidden;
}
.bsw-faq .accordion-button {
    border-radius: var(--bsw-radius);
    font-weight: 600;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
}
.bsw-faq .accordion-button:not(.collapsed) {
    color: #fff;
    background: var(--bs-primary);
    box-shadow: none;
}
.bsw-faq .accordion-button:not(.collapsed)::after {
    /* chevron blanc quand ouvert */
    filter: brightness(0) invert(1);
}
.bsw-faq .accordion-button:focus {
    box-shadow: inset 0 0 0 2px rgba(var(--bs-primary-rgb), .4);
    border-color: var(--bs-primary);
}

/* =======================================================================
   RESPONSIVE — sections bespoke
   ======================================================================= */
@media (max-width: 575.98px) {
    .bsw-project__img,
    .bsw-project__placeholder { height: 180px; }
    .bsw-member__img,
    .bsw-member__placeholder { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    .bsw-project__img,
    .bsw-member__img,
    .bsw-member__social a { transition: none; }
}

/* =======================================================================
   PHASE 5 — sections home bespoke : flat / metro / tuiles carrées
   about · skills · stats · resume · services
   Bâti sur --bs-primary, --bs-primary-rgb, --bs-body-bg, --bs-body-color.
   ======================================================================= */

/* ---- ABOUT — image cadrée plate + faits en blocs carrés --------------- */
.bsw-about__frame {
    border: 1px solid var(--bsw-edge);
    border-radius: var(--bsw-radius);
    padding: .5rem;
    background: var(--bs-body-bg);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bsw-about__frame:hover {
    border-color: var(--bs-primary);
    box-shadow: 8px 8px 0 rgba(var(--bs-primary-rgb), .14);
}
.bsw-about__img {
    width: 100%;
    border-radius: var(--bsw-radius);
    display: block;
}
.bsw-about__title {
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: .75rem;
}
.bsw-about__facts {
    display: grid;
    gap: .5rem;
    margin-bottom: 0;
}
.bsw-about__facts li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .55rem .75rem;
    border-left: 4px solid var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .05);
    border-radius: var(--bsw-radius);
}
.bsw-about__facts li i {
    color: var(--bs-primary);
    line-height: 1.5;
}
.bsw-about__facts a { color: var(--bs-primary); }

/* ---- SKILLS — tuiles carrées, barre de progression plate -------------- */
.bsw-skill {
    border: 1px solid var(--bsw-edge);
    border-radius: var(--bsw-radius);
    padding: 1rem 1.1rem;
    background: var(--bs-body-bg);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.bsw-skill:hover {
    border-color: var(--bs-primary);
    box-shadow: 6px 6px 0 rgba(var(--bs-primary-rgb), .14);
    transform: translateY(-2px);
}
.bsw-skill__head {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.bsw-skill__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    font-size: 1.15rem;
    color: #fff;
    background: var(--bs-primary);
    border-radius: var(--bsw-radius);
}
.bsw-skill__name {
    font-weight: 700;
    flex: 1 1 auto;
}
.bsw-skill__pct {
    font-size: .8rem;
    font-weight: 700;
    color: var(--bs-primary);
}
.bsw-skill__bar {
    height: 8px;
    border-radius: var(--bsw-radius);
    background: rgba(var(--bs-primary-rgb), .12);
}
.bsw-skill__bar .progress-bar { border-radius: var(--bsw-radius); }

/* ---- STATS — grille de tuiles carrées, lignes nettes ------------------ */
.bsw-stats {
    border: 1px solid var(--bsw-edge);
    border-radius: var(--bsw-radius);
    overflow: hidden;
}
.bsw-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .25rem;
    padding: clamp(1.25rem, 4vw, 2.25rem) 1rem;
    border-right: 1px solid var(--bsw-edge);
    border-bottom: 1px solid var(--bsw-edge);
    transition: background-color .15s ease;
}
.bsw-stat:hover { background: rgba(var(--bs-primary-rgb), .05); }
.bsw-stat__icon {
    font-size: 2rem;
    color: var(--bs-primary);
    margin-bottom: .25rem;
}
.bsw-stat__value {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--bs-primary);
    letter-spacing: -.01em;
}
.bsw-stat__unit { font-size: .55em; font-weight: 700; }
.bsw-stat__label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

/* ---- RESUME — timeline plate, marqueurs carrés ------------------------ */
.bsw-resume__head {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: 1.25rem;
}
.bsw-resume__head i { color: var(--bs-primary); }
.bsw-resume__track {
    border-left: 4px solid var(--bs-primary);
    padding-left: 1.25rem;
}
.bsw-resume__item {
    position: relative;
    padding: .75rem .9rem;
    margin-bottom: 1rem;
    border: 1px solid var(--bsw-edge);
    border-radius: var(--bsw-radius);
    background: var(--bs-body-bg);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bsw-resume__item::before {
    content: "";
    position: absolute;
    top: 1.1rem;
    left: calc(-1.25rem - 4px - 5px);
    width: 10px;
    height: 10px;
    background: var(--bs-primary);
}
.bsw-resume__item:hover {
    border-color: var(--bs-primary);
    box-shadow: 5px 5px 0 rgba(var(--bs-primary-rgb), .14);
}
.bsw-resume__meta {
    font-size: .82rem;
    font-weight: 600;
    color: var(--bs-primary);
}

/* ---- SERVICES — tuiles carrées, accent plat en tête ------------------- */
.bsw-service { border-top: 4px solid var(--bs-primary); }
.bsw-service__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #fff;
    background: var(--bs-primary);
    border-radius: var(--bsw-radius);
}

/* ---- RESPONSIVE — sections Phase 5 ------------------------------------ */
@media (max-width: 767.98px) {
    /* 2 colonnes de stats : pas de bord droit sur la 2e colonne */
    .bsw-stats .col-6:nth-child(even) .bsw-stat { border-right: none; }
}
@media (min-width: 768px) {
    /* 4 colonnes : pas de bord droit sur la dernière */
    .bsw-stats .col-md-3:nth-child(4n) .bsw-stat { border-right: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bsw-about__frame,
    .bsw-skill,
    .bsw-stat,
    .bsw-resume__item { transition: none; }
    .bsw-skill:hover { transform: none; }
}

/* =======================================================================
   PHASE 5 — sections "listes" bespoke : flat / metro / tuiles carrées
   publications · events · resources · blog
   Bâti sur --bs-primary, --bs-primary-rgb, --bs-body-bg, --bs-body-color.
   Hover = décalage net (hard offset-shadow), coins carrés (--bsw-radius).
   ======================================================================= */

/* ---- PUBLICATIONS — citations en lignes plates, barre primaire à gauche - */
.bsw-pubs { display: grid; gap: .75rem; }
.bsw-pub {
    padding: .9rem 1.1rem;
    border: 1px solid var(--bsw-edge);
    border-left: 4px solid var(--bs-primary);
    border-radius: var(--bsw-radius);
    background: var(--bs-body-bg);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bsw-pub:hover {
    border-color: var(--bs-primary);
    box-shadow: 6px 6px 0 rgba(var(--bs-primary-rgb), .14);
}
.bsw-pub__title { font-weight: 700; }
.bsw-pub__title a { color: var(--bs-body-color); }
.bsw-pub__title a:hover { color: var(--bs-primary); }
.bsw-pub__meta { color: rgba(var(--bs-body-color-rgb, 33, 37, 41), .7); }
.bsw-pub__meta em { color: var(--bs-primary); font-style: italic; }
.bsw-pub__meta span { font-weight: 600; }

/* ---- EVENTS — tuiles carrées, date plate, image nette ----------------- */
.bsw-event { overflow: hidden; }
.bsw-event__img {
    height: 180px;
    object-fit: cover;
    border-radius: var(--bsw-radius);
    filter: saturate(.92);
    transition: filter .15s ease;
}
.bsw-event:hover .bsw-event__img { filter: saturate(1.05); }
.bsw-event__placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .08);
}
.bsw-event__date {
    display: inline-block;
    align-self: flex-start;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--bs-primary);
    padding: .25rem .6rem;
    border-radius: var(--bsw-radius);
}

/* ---- RESOURCES — tuiles carrées, icône plate en bloc ------------------ */
.bsw-resource { overflow: hidden; }
.bsw-resource__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    color: #fff;
    background: var(--bs-primary);
    border-radius: var(--bsw-radius);
    align-self: flex-start;
}
.bsw-resource__size {
    font-weight: 600;
    color: var(--bs-primary);
}

/* ---- BLOG — tuiles carrées, image nette, méta plate ------------------- */
.bsw-post { overflow: hidden; }
.bsw-post__img {
    height: 200px;
    object-fit: cover;
    border-radius: var(--bsw-radius);
    filter: saturate(.92);
    transition: filter .15s ease;
}
.bsw-post:hover .bsw-post__img { filter: saturate(1.05); }
.bsw-post__placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .08);
}
.bsw-post__date {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(var(--bs-body-color-rgb, 33, 37, 41), .65);
}
.bsw-post__meta {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bs-primary);
}

/* ---- RESPONSIVE — sections listes Phase 5 ---------------------------- */
@media (max-width: 575.98px) {
    .bsw-event__img,
    .bsw-event__placeholder,
    .bsw-post__img,
    .bsw-post__placeholder { height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
    .bsw-pub,
    .bsw-event__img,
    .bsw-post__img { transition: none; }
}

/* =======================================================================
   PHASE 6 — pages bespoke : blog (list/detail) + projects (list/detail)
   flat / metro / tuiles carrées. Bâti sur --bs-primary, --bs-primary-rgb,
   --bs-body-bg, --bs-body-color. Hover = décalage net (hard offset-shadow),
   coins carrés (--bsw-radius).
   ======================================================================= */

/* ---- Empty state (alert plate, barre primaire à gauche) --------------- */
.bsw-empty {
    text-align: center;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--bsw-edge);
    border-left: 4px solid var(--bs-primary);
    border-radius: var(--bsw-radius);
    background: rgba(var(--bs-primary-rgb), .05);
    color: var(--bs-body-color);
}
.bsw-empty i { color: var(--bs-primary); }

/* ---- Pagination plate carrée ----------------------------------------- */
.bsw-pagination .page-link {
    border-radius: var(--bsw-radius);
    border: 1px solid var(--bsw-edge);
    color: var(--bs-primary);
    font-weight: 600;
    margin: 0 .15rem;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bsw-pagination .page-link:hover {
    background: rgba(var(--bs-primary-rgb), .1);
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}
.bsw-pagination .page-item.active .page-link {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}
.bsw-pagination .page-link:focus {
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), .35);
}

/* ---- Breadcrumb plat (séparateur net) -------------------------------- */
.bsw-breadcrumb {
    --bs-breadcrumb-divider: "›";
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 0;
}
.bsw-breadcrumb .breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}
.bsw-breadcrumb .breadcrumb-item a:hover { text-decoration: underline; }
.bsw-breadcrumb .breadcrumb-item.active { color: rgba(var(--bs-body-color-rgb, 33, 37, 41), .7); }

/* ---- Article (blog detail) — titre plat, image nette, lead barré ------ */
.bsw-article__head {
    padding-bottom: 1rem;
    border-bottom: 3px solid rgba(var(--bs-primary-rgb), .25);
}
.bsw-article__title {
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.08;
}
.bsw-article__img {
    width: 100%;
    border-radius: var(--bsw-radius);
    border: 1px solid var(--bsw-edge);
    display: block;
}
.bsw-article__lead {
    border-left: 4px solid var(--bs-primary);
    padding: .5rem 0 .5rem 1rem;
    background: rgba(var(--bs-primary-rgb), .05);
    font-size: 1.1rem;
    line-height: 1.55;
}

/* ---- Titres de bloc (overview, gallery, related…) — soulignés plats --- */
.bsw-block__head {
    font-weight: 800;
    letter-spacing: -.01em;
}
.bsw-block__head i { color: var(--bs-primary); }

/* ---- Aside (cartes latérales) — tuile carrée plate ------------------- */
.bsw-aside {
    border-radius: var(--bsw-radius);
    border: 1px solid var(--bsw-edge);
    border-top: 4px solid var(--bs-primary);
    box-shadow: none;
}
.bsw-aside:hover {
    border-color: var(--bsw-edge);
    border-top-color: var(--bs-primary);
    box-shadow: 6px 6px 0 rgba(var(--bs-primary-rgb), .1);
    transform: none;
}
.bsw-aside__title {
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    font-size: .82rem;
    color: var(--bs-primary);
}

/* ---- Chips / badges plats carrés (tags, technologies) ---------------- */
.bsw-chip {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    padding: .25rem .6rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .1);
    border: 1px solid var(--bsw-edge);
    border-radius: var(--bsw-radius);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
a.bsw-chip:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}
.bsw-chip--muted {
    color: rgba(var(--bs-body-color-rgb, 33, 37, 41), .75);
    background: rgba(var(--bs-body-color-rgb, 33, 37, 41), .06);
}

/* ---- Metric (chiffres clés) — tuile carrée plate --------------------- */
.bsw-metric {
    border-radius: var(--bsw-radius);
    border: 1px solid var(--bsw-edge);
    box-shadow: none;
}
.bsw-metric:hover {
    border-color: var(--bs-primary);
    box-shadow: 6px 6px 0 rgba(var(--bs-primary-rgb), .14);
    transform: translateY(-2px);
}
.bsw-metric__icon { font-size: 1.8rem; color: var(--bs-primary); }
.bsw-metric__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bs-primary);
    line-height: 1.1;
}

/* ---- Timeline (overview) — track plat, marqueurs carrés -------------- */
.bsw-timeline {
    list-style: none;
    margin: 0;
    padding-left: 1.25rem;
    border-left: 4px solid var(--bs-primary);
}
.bsw-timeline__item {
    padding: .65rem .9rem;
    margin-bottom: .75rem;
    border: 1px solid var(--bsw-edge);
    border-radius: var(--bsw-radius);
    background: var(--bs-body-bg);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bsw-timeline__item:hover {
    border-color: var(--bs-primary);
    box-shadow: 5px 5px 0 rgba(var(--bs-primary-rgb), .12);
}

/* ---- Figure (gallery) — cadre plat carré ----------------------------- */
.bsw-figure { margin-bottom: 0; }
.bsw-figure__img {
    width: 100%;
    border-radius: var(--bsw-radius);
    border: 1px solid var(--bsw-edge);
    filter: saturate(.92);
    transition: filter .15s ease;
}
.bsw-figure:hover .bsw-figure__img { filter: saturate(1.05); }
.bsw-figure .figure-caption {
    margin-top: .4rem;
    font-size: .8rem;
    color: rgba(var(--bs-body-color-rgb, 33, 37, 41), .65);
}

/* ---- RESPONSIVE — pages Phase 6 -------------------------------------- */
@media (max-width: 575.98px) {
    .bsw-article__img { max-height: 260px; object-fit: cover; }
}

@media (prefers-reduced-motion: reduce) {
    .bsw-pagination .page-link,
    .bsw-chip,
    .bsw-metric,
    .bsw-timeline__item,
    .bsw-figure__img { transition: none; }
    .bsw-metric:hover { transform: none; }
}

/* =======================================================================
   PHASE 7 — pages bespoke restantes : services · team · events · jobs ·
   publications · resources · faq. flat / metro / tuiles carrées.
   Bâti sur --bs-primary, --bs-primary-rgb, --bs-body-bg, --bs-body-color.
   ======================================================================= */

/* ---- CHECKLIST (service « what's included ») — lignes plates carrées --- */
.bsw-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}
.bsw-checklist__item {
    padding: .6rem .85rem;
    border: 1px solid var(--bsw-edge);
    border-left: 4px solid var(--bs-primary);
    border-radius: var(--bsw-radius);
    background: rgba(var(--bs-primary-rgb), .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bsw-checklist__item:hover {
    border-color: var(--bs-primary);
    box-shadow: 5px 5px 0 rgba(var(--bs-primary-rgb), .12);
}
.bsw-checklist__item i { color: var(--bs-primary); line-height: 1.5; }

/* ---- FORMS (service contact / job apply) — champs plats carrés -------- */
.bsw-form .form-control {
    border-radius: var(--bsw-radius);
    border: 1px solid var(--bsw-edge);
}
.bsw-form .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), .25);
}

@media (prefers-reduced-motion: reduce) {
    .bsw-checklist__item { transition: none; }
}

/* AUDIT AA nuit : muté trop sombre -> lisible. */
[data-bs-theme="dark"] { --bs-secondary-color: #a8b3bd; --bs-secondary-color-rgb: 168,179,189; }
