/* =========================================================================
   oiseau.ch — la boutique aux couleurs du site.
   Chargée après la feuille du module et après app.css : les jetons --shop-* du module
   sont rabattus sur ceux du site, et chaque composant shop-* reprend la forme de son
   équivalent public. Seules les classes du module sont visées, jamais son balisage.
   ========================================================================= */

/* ---------------------------------------------------------------- Jetons */

:root {
    --shop-yellow: var(--sage);
    --shop-yellow-dark: var(--sage-hover);
    --shop-yellow-soft: var(--sage-soft);
    --shop-ink: var(--ink);
    --shop-ink-strong: var(--ink);
    --shop-paper: var(--card);
    --shop-grey: var(--surface);
    --shop-grey-2: var(--paper);
    --shop-muted: var(--muted);
    --shop-border: var(--border);
    --product-page-max: 72rem;

    --bs-primary: var(--sage);
    --bs-body-bg: var(--surface);
    --bs-body-color: var(--ink);
    --bs-body-font-family: var(--sans);
    --bs-border-color: var(--border);
    --bs-link-color: var(--ink);
    --bs-link-hover-color: var(--terra);
    --bs-border-radius: var(--radius);
    --bs-border-radius-lg: var(--radius-lg);
    --focus-ring: color-mix(in oklch, var(--sage) 25%, transparent);
}

/* ---------------------------------------------------------- Typographie */

/* Le module met les titres en capitales condensées : ils reprennent l'échelle du site. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.shop-display {
    font-family: var(--sans);
    text-transform: none;
    letter-spacing: normal;
    color: var(--ink);
}

h1, .h1 {
    letter-spacing: -.02em;
}

h5, .h5 {
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.3;
}

h6, .h6 {
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.3;
}

.text-muted-2 {
    color: var(--muted) !important;
}

.bg-grey {
    background: var(--surface) !important;
}

.bg-paper {
    background: var(--card) !important;
}

.shop-eyebrow {
    font-family: var(--mono);
    font-size: .65625rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--terra);
}

.shop-underline::after {
    background: var(--terra);
}

.shop-price {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--terra);
}

.shop-price .shop-price-suffix {
    font-family: var(--mono);
    color: var(--muted);
}

a.shop-quiet:hover,
a.shop-quiet:focus-visible {
    color: var(--terra);
}

/* Le site n'habille les liens que dans sa prose ; les textes du module n'en portent pas
   la classe. Même habillage pour un lien posé dans un paragraphe, une liste ou une
   définition, hors commandes. */
.page :is(p, li, dd, td) a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.list-group-item):not(.shop-quiet) {
    color: var(--terra);
    text-decoration: underline;
    text-underline-offset: .15em;
}

/* -------------------------------------------------------------- Boutons */

.btn {
    font-family: var(--sans);
    text-transform: none;
    letter-spacing: 0;
    border-radius: var(--pill);
}

/* Les pastilles de la barre gardent la mesure du site. */
.btn:not(.btn-pill) {
    font-size: .8125rem;
    font-weight: 700;
    padding: .5625rem 1.125rem;
}

.btn-sm {
    font-size: .75rem;
    padding: .375rem .875rem;
}

.btn-lg {
    font-size: .875rem;
    padding: .75rem 1.5rem;
}

.btn:focus-visible {
    box-shadow: 0 0 0 .2rem var(--focus-ring);
}

.btn-primary,
.btn-dark {
    --bs-btn-color: var(--on-dark);
    --bs-btn-bg: var(--sage);
    --bs-btn-border-color: var(--sage);
    --bs-btn-hover-color: var(--on-dark);
    --bs-btn-hover-bg: var(--sage-hover);
    --bs-btn-hover-border-color: var(--sage-hover);
    --bs-btn-active-color: var(--on-dark);
    --bs-btn-active-bg: var(--sage-hover);
    --bs-btn-active-border-color: var(--sage-hover);
    --bs-btn-disabled-color: var(--on-dark);
    --bs-btn-disabled-bg: var(--sage);
    --bs-btn-disabled-border-color: var(--sage);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark,
.btn-light {
    --bs-btn-color: var(--ink);
    --bs-btn-bg: var(--card);
    --bs-btn-border-color: var(--border);
    --bs-btn-hover-color: var(--terra);
    --bs-btn-hover-bg: var(--surface);
    --bs-btn-hover-border-color: var(--terra);
    --bs-btn-active-color: var(--terra);
    --bs-btn-active-bg: var(--surface);
    --bs-btn-active-border-color: var(--terra);
    font-weight: 600;
}

.btn-link {
    color: var(--terra);
    font-weight: 600;
}

/* --------------------------------------------------------------- Champs */

/* Bootstrap peint les champs avec --bs-body-bg, ici la teinte de la page : ils y
   disparaîtraient. Les champs prennent le blanc des cartes. */
.form-control,
.form-select,
.form-check-input {
    background-color: var(--card);
    border-radius: var(--radius);
    border-color: var(--border-strong);
}

.form-check-input {
    border-radius: .25em;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 .2rem var(--focus-ring);
}

.form-check-input:checked {
    background-color: var(--sage);
    border-color: var(--sage);
}

/* --------------------------------------------------------------- Cartes */

.shop-surface {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.shop-surface-grey {
    background: var(--surface);
}

.shop-icon-circle {
    background: var(--sage-soft);
    color: var(--sage-soft-ink);
}

.shop-divider {
    background: var(--border);
}

.shop-thumb {
    border-radius: var(--radius);
}

/* L'inscription porte l'adresse postale et l'adhésion : la carte étroite du module ne suffit pas,
   et toutes les cartes d'authentification prennent sa mesure. Sélecteur renforcé : la feuille
   du module est chargée après celle-ci. */
.card.pu-auth-card {
    max-width: 720px;
}

/* ---------------------------------------------------------------- Bannière */

.shop-hero {
    background: var(--sage);
    color: var(--on-dark);
    border: 0;
    border-radius: var(--radius-lg);
}

.shop-hero h1,
.shop-hero .h1 {
    color: var(--on-dark);
}

.shop-hero h1::after {
    content: none;
}

.shop-hero .lead {
    color: var(--on-dark-muted);
}

.shop-hero .shop-eyebrow {
    color: var(--terra-light);
}

.shop-hero .btn-primary {
    --bs-btn-color: var(--ink);
    --bs-btn-bg: var(--terra-light);
    --bs-btn-border-color: var(--terra-light);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: var(--terra-light-hover);
    --bs-btn-hover-border-color: var(--terra-light-hover);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-bg: var(--terra-light-hover);
    --bs-btn-active-border-color: var(--terra-light-hover);
}

/* -------------------------------------------------------------- Produits */

.shop-product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color .15s ease, transform .15s ease;
}

.shop-product-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
    border-color: var(--terra);
}

.shop-product-media {
    background: repeating-linear-gradient(135deg, #e7e1d0 0 9px, #efe9db 9px 18px);
}

.shop-product-media .shop-placeholder {
    color: rgba(34, 40, 31, .35);
    font-size: 1.75rem;
}

.shop-product-title {
    font-family: var(--sans);
    text-transform: none;
    letter-spacing: normal;
    font-size: .95rem;
    font-weight: 800;
    color: var(--ink);
}

.shop-product-title:hover {
    color: var(--terra);
}

.shop-stock-low {
    color: var(--terra);
}

.shop-chip {
    border-radius: var(--pill);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--ink);
    font-size: .75rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    padding: .5rem .875rem;
}

.shop-chip:hover {
    border-color: var(--terra);
    color: var(--terra);
}

.shop-chip.active {
    background: var(--sage);
    border-color: var(--sage);
    color: var(--on-dark);
}

.shop-qty {
    border-radius: var(--pill);
    border-color: var(--border);
    background: var(--card);
}

.shop-qty button:hover {
    background: var(--sage-soft);
}

/* Fiche produit : au-delà de cette largeur de contenu, l'image carrée grandirait avec
   l'écran ; la page se centre, marges du site en sus. */
.page > .container-fluid:has([data-gallery]) {
    box-sizing: content-box;
    width: auto;
    max-width: var(--product-page-max);
    margin-inline: auto;
}

.shop-gallery-main {
    border-radius: var(--radius-lg);
    border-color: var(--border);
    background: var(--surface);
}

.shop-gallery-thumb {
    border-radius: 10px;
    background: var(--surface);
}

.shop-gallery-thumb.active {
    border-color: var(--sage);
}

/* --------------------------------------------------------------- Panier */

.cartbutton {
    position: relative;
}

.cartbutton--icon {
    padding-inline: .75rem;
}

.cartbutton__badge {
    position: absolute;
    top: -.375rem;
    right: -.375rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .3rem;
    border-radius: var(--pill);
    background: var(--terra);
    color: var(--on-dark);
    font-family: var(--mono);
    font-size: .625rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cartmenu {
    min-width: 300px;
}

.cartmenu__thumb {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 10px;
}

.cartmenu__name {
    max-width: 150px;
}

.shop-cart-badge {
    background: var(--terra);
    color: var(--on-dark);
}

/* --------------------------------------------- Suivi de commande et journal */

.shop-progress-step::before {
    background: var(--border);
}

.shop-progress-step.is-done::before,
.shop-progress-step.is-current::before {
    background: var(--sage);
}

.shop-progress-mark,
.shop-timeline-mark {
    background: var(--paper);
    color: var(--muted);
}

.shop-progress-step.is-done .shop-progress-mark,
.shop-progress-step.is-current .shop-progress-mark {
    background: var(--sage);
    color: var(--on-dark);
}

.shop-progress-step.is-current .shop-progress-mark {
    box-shadow: 0 0 0 .25rem var(--sage-soft);
}

.shop-progress-label {
    font-family: var(--mono);
}

.shop-progress-step.is-current .shop-progress-label {
    color: var(--ink);
}

.shop-timeline-event::before {
    border-left-color: var(--border);
}

/* ------------------------------------------------------ Adresses suggérées */

.shop-address-menu {
    border-radius: var(--radius);
    border-color: var(--border);
    box-shadow: 0 .75rem 2rem rgba(34, 40, 31, .1);
}

.shop-address-option:hover,
.shop-address-option.is-active {
    background: var(--sage-soft);
}

/* ------------------------------------------------ Composants Bootstrap */

.nav-pills .nav-link {
    border-radius: var(--pill);
    font-size: .8125rem;
    font-weight: 700;
    color: var(--ink);
}

.nav-pills .nav-link:hover {
    background: var(--sage-soft);
}

.nav-pills .nav-link.active {
    background: var(--sage);
    color: var(--on-dark);
}

.breadcrumb {
    font-family: var(--mono);
    font-size: .65625rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.breadcrumb-item.active {
    color: var(--muted);
}

.pagination {
    gap: .375rem;
}

.page-link {
    border-radius: var(--pill) !important;
    border-color: var(--border);
    background: var(--card);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .6875rem;
    min-width: 2rem;
    text-align: center;
}

.page-link:hover {
    color: var(--terra);
    background: var(--surface);
    border-color: var(--border);
}

.page-item.active .page-link {
    background: var(--sage);
    border-color: var(--sage);
    color: var(--on-dark);
}

.alert {
    border-radius: var(--radius);
}

.modal-content {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.progress {
    border-radius: var(--pill);
}

.progress-bar {
    background-color: var(--sage);
}

.list-group-item {
    border-color: var(--border);
}

.table > :not(caption) > * > * {
    border-bottom-color: var(--border-soft);
}

/* Passage au prestataire de paiement : page autonome, sans barre de navigation. */
.payment-redirect {
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
}

.payment-redirect__page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
}

.payment-redirect__brand {
    color: inherit;
    text-decoration: none;
}

.payment-redirect__brand .brand__mark {
    background: var(--sage);
}

.payment-redirect__card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: center;
}

.payment-redirect__spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 1.25rem;
    border: 4px solid var(--sage-soft);
    border-top-color: var(--sage);
    border-radius: 50%;
    animation: payment-redirect-spin .9s linear infinite;
}

@keyframes payment-redirect-spin {
    to { transform: rotate(360deg); }
}

.payment-redirect__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.payment-redirect__hint {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.payment-redirect__back {
    margin: 1.25rem 0 0;
    font-size: .85rem;
}

.payment-redirect__back a {
    color: var(--muted);
}

/* Coquille resserrée : la marque, une colonne, rien d'autre. */
.focus-page {
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    display: flex;
    flex-direction: column;
}

.focus-page__header {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 0;
}

.focus-page__header .brand {
    color: inherit;
    text-decoration: none;
}

.focus-page__header .brand__mark {
    background: var(--sage);
}

.focus-page__main {
    flex: 1 0 auto;
    padding: 2rem 1rem 3rem;
}

.focus-page__column {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.focus-page__footer {
    padding: 1rem;
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
}

/* ------------------------------------------------------------ Page Soutenir */

.support-header {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.support-header__title {
    letter-spacing: -.02em;
    margin-bottom: .75rem;
}

.support-header__intro {
    color: var(--muted);
    margin: 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.support-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem 1.5rem;
}

.support-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.support-card__price {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--terra);
    margin-bottom: 1.25rem;
}

.support-card__price-note {
    display: block;
    font-family: var(--sans);
    font-weight: 500;
    font-size: .75rem;
    color: var(--muted);
    margin-top: .25rem;
}

.support-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    font-size: .875rem;
    color: var(--ink-prose);
}

.support-card__features li {
    display: flex;
    gap: .5rem;
    align-items: baseline;
    margin-bottom: .5rem;
}

.support-card__features li i {
    color: var(--sage);
    font-size: .75rem;
}

.support-card__features li.is-excluded {
    color: var(--muted);
}

.support-card__features li.is-excluded i {
    color: var(--muted);
}

.support-card__note,
.support-card__text {
    font-size: .875rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.support-card__action {
    margin-top: auto;
}

.support-card__form {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: stretch;
}

.support-card__input {
    width: 5.5rem;
    flex: none;
    text-align: center;
}

/* Le choix de l'option occupe sa ligne, au-dessus du champ et du bouton. */
.support-card__select {
    flex: 1 1 100%;
}

.support-card__product-link {
    margin-top: .5rem;
}

/* Le montant libre prend la moitié de la carte, le bouton le reste. */
.support-card__amount {
    flex: 0 0 calc(50% - .25rem);
    flex-wrap: nowrap;
    width: auto;
}

/* Même recette que Bootstrap dans un groupe : le champ se rétrécit, l'addenda reste collé. */
.support-card__amount .support-card__input {
    flex: 1 1 0;
    width: 1%;
    min-width: 0;
    text-align: left;
    border-top-left-radius: var(--pill);
    border-bottom-left-radius: var(--pill);
}

.support-card__currency {
    font-family: var(--mono);
    font-size: .8125rem;
    color: var(--muted);
    background: var(--surface);
    border-color: var(--border-strong);
    border-top-right-radius: var(--pill);
    border-bottom-right-radius: var(--pill);
}

.support-card__button {
    flex: 1 1 auto;
    border-radius: var(--pill);
}

/* Un bouton seul, sans champ devant lui, prend toute la largeur de la carte. */
.support-card__action > .support-card__button {
    display: block;
    width: 100%;
}

/* Mobile : le champ passe au-dessus du bouton, tous deux sur toute la largeur de la carte. */
@media (max-width: 575.98px) {
    .support-card__input,
    .support-card__amount {
        flex: 1 1 100%;
        width: 100%;
    }

    .support-card__button {
        flex: 1 1 100%;
    }
}

.support-card--external {
    background: var(--surface);
}

/* Carte visée par un appel au don : dégagée de l'en-tête collant et mise en avant. */
.support-card {
    scroll-margin-top: 6rem;
}

.support-card:target {
    border-color: var(--terra-light);
    box-shadow: 0 0 0 1px var(--terra-light), 0 0 0 .5rem var(--terra-soft);
    animation: support-card-spotlight 1.2s ease-out 2;
}

@keyframes support-card-spotlight {
    from {
        box-shadow: 0 0 0 1px var(--terra-light), 0 0 0 0 var(--terra-light);
    }

    to {
        box-shadow: 0 0 0 1px var(--terra-light), 0 0 0 .5rem var(--terra-soft);
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-card:target {
        animation: none;
    }
}

/* La carte mesure elle-même sa largeur : sous 360 px, champ puis bouton l'un sous l'autre. */
.support-card {
    container-type: inline-size;
}

.support-card__amount .support-card__input::-webkit-outer-spin-button,
.support-card__amount .support-card__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.support-card__amount .support-card__input {
    -moz-appearance: textfield;
    appearance: textfield;
}

@container (max-width: 359px) {
    .support-card__input,
    .support-card__amount {
        flex: 1 1 100%;
        width: 100%;
    }

    .support-card__button {
        flex: 1 1 100%;
    }
}


/* ------------------------------------------------------------ Réservation */

.reservation__price {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--terra);
    margin-bottom: .25rem;
}

.reservation__period,
.reservation__note,
.reservation__closed {
    font-size: .875rem;
    color: var(--muted);
    margin-bottom: .75rem;
}

.reservation__option {
    margin-bottom: .75rem;
}

.reservation__durations {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: .5rem;
}

.reservation__duration {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
}

.reservation__field {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.reservation__label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: .25rem;
}

.reservation__field .form-control {
    text-align: center;
}

.reservation__times {
    padding-bottom: .5rem;
    color: var(--muted);
}

.reservation__remove {
    padding: .375rem .5rem;
    color: var(--muted);
}

.reservation__add {
    border-radius: var(--pill);
    margin-bottom: .75rem;
}

.reservation__total {
    font-weight: 700;
    margin-bottom: .75rem;
}

.reservation__total:empty {
    display: none;
}

.reservation__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.reservation__form + .reservation__actions {
    margin-top: .5rem;
}

.reservation__button {
    flex: 1 1 0;
    min-width: max-content;
    border-radius: var(--pill);
}

.reservation__submit {
    display: block;
    width: 100%;
    border-radius: var(--pill);
}


/* ---------------------------------------------------------- Espace membre */

.account-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.account-hero__title {
    font-size: 1.5rem;
    margin-top: .125rem;
}

.account-avatar {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--on-dark-border);
    color: var(--on-dark);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.account-avatar--photo {
    object-fit: cover;
}

.account-avatar--sm {
    width: 42px;
    height: 42px;
    font-size: .75rem;
    background: var(--sage-soft);
    color: var(--sage-soft-ink);
}

/* Carte d'aperçu : un intitulé mono, une valeur, une note. */
.widget {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    height: 100%;
}

.widget__kicker {
    font-family: var(--mono);
    font-size: .59375rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.widget__value {
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.widget__note {
    font-family: var(--mono);
    font-size: .625rem;
    color: var(--muted);
}

.widget__note--terra {
    color: var(--terra);
}

.panel--link.widget:hover .widget__value,
.panel--link.widget:focus-visible .widget__value {
    color: var(--terra);
}

/* Barre des rubriques : rubrique active en sauge plein, texte crème. */
.account-nav {
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: .125rem;
}

.account-nav__link {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .6875rem 1rem;
    border-radius: 12px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ink);
}

.account-nav__link i {
    width: 16px;
    flex: none;
    font-size: .8125rem;
    text-align: center;
}

.account-nav__link:hover,
.account-nav__link:focus-visible {
    background: var(--sage-soft);
    color: var(--ink);
}

.account-nav__link.is-active,
.account-nav__link.is-active:hover,
.account-nav__link.is-active:focus-visible {
    background: var(--sage);
    color: var(--on-dark);
}

.account-nav__badge {
    margin-left: auto;
}

.account-nav__link.is-active .account-nav__badge {
    background: var(--on-dark-border);
    color: var(--on-dark);
}

/* Panneau de la rubrique : titres à la mesure de la maquette, et les cartes des vues du
   module deviennent des sous-cartes. */
.account-panel h2 {
    font-size: 1.125rem;
}

.account-panel h3 {
    font-size: .875rem;
}

.account-panel .shop-surface {
    background: var(--surface);
}

.account-panel .shop-surface .shop-surface {
    background: var(--card);
}

.account-group + .account-group {
    margin-top: 1.125rem;
}

.account-group__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--mono);
    font-size: .65625rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5rem;
}

.account-group__title i {
    font-size: .75rem;
}

.rows--card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.rows__row--stack {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
}

.rows__body {
    flex: 1 1 auto;
    min-width: 0;
}

/* Personnes du foyer : avatar, nom et rôle, cotisation de l'année, gestes. */
.person-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    padding: .625rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.person-list > :last-child .person-row,
.person-list > .person-row:last-child {
    border-bottom: 0;
}

.person-row__name {
    font-size: .84375rem;
    font-weight: 700;
}

.person-row__role {
    font-family: var(--mono);
    font-size: .59375rem;
    color: var(--muted);
    margin-top: 2px;
}

/* Retrait d'une inscription : le déplié natif, sans marqueur, ouvre le formulaire. */
.withdraw summary {
    list-style: none;
}

.withdraw summary::-webkit-details-marker {
    display: none;
}

.withdraw__toggle {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    cursor: pointer;
    font-size: .6875rem;
    font-weight: 700;
    color: var(--terra);
}

.withdraw__form {
    margin-top: .5rem;
    padding: .75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* Dates d'un cours regroupées sous sa ligne : le déplié natif les liste, chacune avec son statut. */
.registration-dates summary {
    list-style: none;
}

.registration-dates summary::-webkit-details-marker {
    display: none;
}

.registration-dates__toggle {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    cursor: pointer;
    font-size: .6875rem;
    font-weight: 700;
    color: var(--sage-soft-ink);
}

.registration-dates__chevron {
    font-size: .5625rem;
    transition: transform .2s ease;
}

.registration-dates[open] .registration-dates__chevron {
    transform: rotate(180deg);
}

.registration-dates__list {
    list-style: none;
    margin: .5rem 0 0;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.registration-dates__item {
    padding: .5rem 1rem;
}

.registration-dates__item + .registration-dates__item {
    border-top: 1px solid var(--border-soft);
}

.registration-dates__when {
    font-family: var(--mono);
    font-size: .65625rem;
    color: var(--ink);
    min-width: 8.5rem;
}

.registration-dates__item .withdraw {
    margin-top: .25rem;
}

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

/* Formulaire de règlement : le champ du don et le bouton côte à côte, l'aide dessous. */
.action-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .5rem .75rem;
}

.action-form__hint {
    flex-basis: 100%;
}

.profile-field__value {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    margin-top: .25rem;
}

.frame--order {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(34, 40, 31, .35);
}

.frame__icon {
    font-size: 1.125rem;
}

@media (max-width: 767.98px) {
    .account-hero {
        padding: 1.25rem;
    }

    .account-hero__title {
        font-size: 1.25rem;
    }
}

/* Sur le bandeau sauge, le titre garde l'encre crème que la boutique remet en noir, et
   l'ancienneté se lit sans graisse. */
.account-hero__title {
    color: var(--on-dark);
}

.account-hero .chip--veil {
    font-weight: 400;
}

/* Une vue du module faite d'une seule carte se fond dans le panneau : pas de carte dans la carte. */
.account-panel > .shop-surface:only-child {
    background: transparent;
    border: 0;
    padding: 0 !important;
    margin: 0 !important;
}

/* Listes du module — sessions, passkeys — au style des lignes d'inscription. */
.account-panel .list-group {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.account-panel .list-group-item {
    background: var(--card);
    border-color: var(--border-soft);
    padding: .75rem 1.5rem;
    font-size: .84375rem;
}

/* Historique par année : une seule grille, colonnes à la mesure du contenu — année, nom,
   état, montant, règlement — pour que tout s'aligne quelle que soit la longueur du nom. */
.history {
    display: grid;
    grid-template-columns: 3.25rem max-content max-content max-content minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: .5rem;
    align-items: center;
    padding: .75rem 1.5rem;
}

.history__year {
    font-family: var(--mono);
    font-size: .8125rem;
    font-weight: 700;
    color: var(--terra);
}

.history__name {
    font-size: .84375rem;
    font-weight: 700;
    min-width: 0;
}

.history__amount {
    text-align: right;
    white-space: nowrap;
}

/* Première ligne d'une année suivante : un filet la sépare de la précédente. */
.history__cell--year-start:not(:nth-child(-n+5)) {
    border-top: 1px solid var(--border-soft);
    padding-top: .75rem;
}

@media (max-width: 575.98px) {
    .history {
        grid-template-columns: 3.25rem minmax(0, 1fr) max-content;
        padding-inline: 1rem;
    }

    .history__amount,
    .history__date {
        grid-column: 2 / span 2;
        text-align: left;
    }

    .history__cell--year-start:not(:nth-child(-n+5)) {
        border-top: 0;
        padding-top: 0;
    }

    .history__year.history__cell--year-start:not(:nth-child(-n+5)) {
        margin-top: .5rem;
    }
}
