/**
 * @package     IfsTherapeutes
 * @subpackage  com_ifs_therapeutes
 * @author      i-FormaSite
 * @copyright   (C) 2025 i-FormaSite
 * @license     GNU General Public License version 2 or later
 */

/* ==========================================================================
   ifs-Thérapeutes : styles du site (2.1.0)
   Autonome : ne dépend ni de Bootstrap ni de la police d'icônes du gabarit.
   Toutes les couleurs, rayons et ombres passent par les variables ci-dessous,
   réglables dans les options de l'outil ou par ifs-Styles (palette du site).
   ========================================================================== */

.ifs-thera {
    --ifsthera-primary: #2f6b5f;
    --ifsthera-primary-dark: #22504a;
    --ifsthera-badge: var(--ifsthera-primary);
    --ifsthera-ink: #1f2a27;
    --ifsthera-text: #34403c;
    --ifsthera-muted: #5f6b67;
    /* Traits et fonds pâles teintés par la couleur principale (2.15.1) : ils suivent les couleurs du site */
    --ifsthera-line: color-mix(in srgb, var(--ifsthera-primary) 14%, #e6e8e7);
    --ifsthera-surface: #ffffff;
    --ifsthera-pale: color-mix(in srgb, var(--ifsthera-primary) 6%, #ffffff);
    --ifsthera-on-primary: #ffffff;
    --ifsthera-radius: 14px;
    --ifsthera-radius-sm: 8px;
    --ifsthera-shadow: 0 1px 2px rgba(20, 30, 28, .06), 0 6px 18px rgba(20, 30, 28, .06);
    --ifsthera-shadow-hover: 0 2px 4px rgba(20, 30, 28, .08), 0 12px 28px rgba(20, 30, 28, .1);
    --ifsthera-gap: clamp(1rem, 2.5vw, 1.5rem);

    color: var(--ifsthera-text);
    padding-block: .5rem 1.5rem;
}

.ifs-thera *,
.ifs-thera *::before,
.ifs-thera *::after {
    box-sizing: border-box;
}

.ifs-thera ul,
.ifs-thera ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ifs-thera img {
    max-width: 100%;
    height: auto;
}

.ifs-thera a {
    color: var(--ifsthera-primary);
    text-decoration: none;
}

.ifs-thera a:hover {
    color: var(--ifsthera-primary-dark);
}

.ifs-thera a:focus-visible,
.ifs-thera button:focus-visible,
.ifs-thera .ifsthera-champ:focus-visible {
    outline: 2px solid var(--ifsthera-primary);
    outline-offset: 2px;
}

.ifsthera-icone {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    vertical-align: -.2em;
}

/* Texte réservé aux lecteurs d'écran */
.ifsthera-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.ifs-thera .ifsthera-titre {
    margin: 0 0 1.25rem;
    color: var(--ifsthera-ink);
    line-height: 1.15;
    text-wrap: balance;
}

/* ==========================================================================
   Boutons et champs
   ========================================================================== */

.ifs-thera .ifsthera-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.75rem;
    padding: .6rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ifs-thera .ifsthera-btn--plein {
    background: var(--ifsthera-primary);
    color: var(--ifsthera-on-primary);
}

.ifs-thera .ifsthera-btn--plein:hover {
    background: var(--ifsthera-primary-dark);
    color: var(--ifsthera-on-primary);
}

.ifs-thera .ifsthera-btn--discret {
    background: transparent;
    border-color: var(--ifsthera-line);
    color: var(--ifsthera-text);
}

.ifs-thera .ifsthera-btn--discret:hover {
    border-color: var(--ifsthera-primary);
    color: var(--ifsthera-primary);
}

.ifs-thera .ifsthera-champ {
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: .55rem .85rem;
    border: 1px solid var(--ifsthera-line);
    border-radius: var(--ifsthera-radius-sm);
    background-color: var(--ifsthera-surface);
    color: var(--ifsthera-ink);
    font: inherit;
    line-height: 1.3;
    box-shadow: none;
}

.ifs-thera select.ifsthera-champ {
    appearance: none;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .7rem center;
    background-size: 1rem;
}

.ifs-thera .ifsthera-champ:focus {
    border-color: var(--ifsthera-primary);
}

/* ==========================================================================
   Filtres
   ========================================================================== */

.ifs-thera .ifsthera-filters {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background: var(--ifsthera-pale);
    border-radius: var(--ifsthera-radius);
}

.ifsthera-filters__recherche {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.ifs-thera .ifsthera-filters__recherche .ifsthera-champ {
    flex: 1 1 16rem;
    width: auto;
}

.ifsthera-filters__listes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: .75rem 1rem;
}

.ifs-thera .ifsthera-filters__liste label {
    display: block;
    margin: 0 0 .3rem;
    color: var(--ifsthera-muted);
    font-size: .85rem;
    font-weight: 600;
}

.ifs-thera .ifsthera-compte,
.ifs-thera .ifsthera-vide {
    margin: 0 0 1rem;
    color: var(--ifsthera-muted);
}

.ifs-thera .ifsthera-vide {
    padding: 1.25rem;
    border: 1px dashed var(--ifsthera-line);
    border-radius: var(--ifsthera-radius);
    text-align: center;
}

/* ==========================================================================
   Grille des fiches (cartes compactes depuis 2.2.1)
   ========================================================================== */

/* Grille régulière : toutes les fiches ont la même largeur et la même hauteur.
   Nombre de colonnes = option « Colonnes » (data-cols), réduit selon la place réellement
   disponible (requêtes de conteneur).

   Publicités (images fournies par l'annonceur, mesures : Administrator\Helper\PubliciteHelper) :
   - qui partage sa rangée avec des fiches : prend la hauteur des fiches (recadrage au centre possible) ;
   - qui occupe TOUTE la largeur de la grille : garde exactement les proportions de son image (--ratio) ;
   - sur une seule colonne (mobile) : image mobile, proportions mobiles (--ratio-mobile, la hauteur grandit
     avec la surface payée) et les grands formats remontent en tête de liste (--ordre-mobile). */
.ifs-thera.ifsthera-liste {
    container: ifsthera-annuaire / inline-size;
}

.ifs-thera .ifsthera-results {
    --n: 4;
    --ifsthera-ligne: 10.75rem;
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    grid-auto-rows: auto;
    grid-auto-flow: row dense;
    gap: var(--ifsthera-gap);
}

.ifs-thera .ifsthera-results[data-cols="1"] { --n: 1; }
.ifs-thera .ifsthera-results[data-cols="2"] { --n: 2; }
.ifs-thera .ifsthera-results[data-cols="3"] { --n: 3; }
.ifs-thera .ifsthera-results[data-cols="4"] { --n: 4; }
.ifs-thera .ifsthera-results[data-cols="5"] { --n: 5; }
.ifs-thera .ifsthera-results[data-cols="6"] { --n: 6; }

.ifs-thera .ifsthera-results__item {
    display: flex;
    min-width: 0;
    height: var(--ifsthera-ligne);
    order: var(--ordre, 0);
}

/* Publicités sur plusieurs cases (2 côte à côte, 2 l'une sur l'autre, 3, 2 × 2, 4) */
.ifs-thera .ifsthera-pub--l2 { grid-column: span 2; }
.ifs-thera .ifsthera-pub--l3 { grid-column: span 3; }
.ifs-thera .ifsthera-pub--l4 { grid-column: span 4; }

.ifs-thera .ifsthera-pub--h2 {
    grid-row: span 2;
    height: calc(var(--ifsthera-ligne) * 2 + var(--ifsthera-gap));
}

.ifs-thera .ifsthera-results__item--large {
    grid-column: 1 / -1;
}

/* Image mobile : seulement sur une colonne */
.ifs-thera .ifsthera-ad-card__media .ifsthera-ad-card__img--mobile {
    display: none;
}

/* Publicité sur toute la largeur de la grille : proportions exactes de l'image, aucun recadrage */
.ifs-thera .ifsthera-results__item--large,
.ifs-thera .ifsthera-results[data-cols="2"] .ifsthera-pub--l2,
.ifs-thera .ifsthera-results[data-cols="3"] .ifsthera-pub--l3,
.ifs-thera .ifsthera-results[data-cols="4"] .ifsthera-pub--l4 {
    height: auto;
    aspect-ratio: var(--ratio);
}

/* Une seule colonne (option) : affichage mobile */
.ifs-thera .ifsthera-results[data-cols="1"] .ifsthera-pub {
    grid-column: 1 / -1;
    grid-row: auto;
    height: auto;
    aspect-ratio: var(--ratio-mobile);
    order: var(--ordre-mobile, var(--ordre));
}

.ifs-thera .ifsthera-results[data-cols="1"] .a-image-mobile .ifsthera-ad-card__img--grand { display: none; }
.ifs-thera .ifsthera-results[data-cols="1"] .ifsthera-ad-card__media.a-image-mobile .ifsthera-ad-card__img--mobile { display: block; }

/* Moins de place : moins de colonnes ; les publicités larges se réduisent et passent en pleine largeur */
@container ifsthera-annuaire (max-width: 72rem) {
    .ifs-thera .ifsthera-results[data-cols="5"],
    .ifs-thera .ifsthera-results[data-cols="6"] { --n: 4; }

    .ifs-thera .ifsthera-results:is([data-cols="5"], [data-cols="6"]) .ifsthera-pub--l4 {
        height: auto;
        aspect-ratio: var(--ratio);
    }
}

@container ifsthera-annuaire (max-width: 60rem) {
    .ifs-thera .ifsthera-results:is([data-cols="4"], [data-cols="5"], [data-cols="6"]) { --n: 3; }

    .ifs-thera .ifsthera-pub--l4 { grid-column: span 3; }

    .ifs-thera .ifsthera-results:is([data-cols="4"], [data-cols="5"], [data-cols="6"]) :is(.ifsthera-pub--l3, .ifsthera-pub--l4) {
        height: auto;
        aspect-ratio: var(--ratio);
    }
}

@container ifsthera-annuaire (max-width: 44rem) {
    .ifs-thera .ifsthera-results:not([data-cols="1"]) { --n: 2; }

    .ifs-thera .ifsthera-results:not([data-cols="1"]) :is(.ifsthera-pub--l2, .ifsthera-pub--l3, .ifsthera-pub--l4) {
        grid-column: span 2;
        height: auto;
        aspect-ratio: var(--ratio);
    }
}

/* Téléphone : une colonne, affichage mobile des publicités */
@container ifsthera-annuaire (max-width: 28rem) {
    .ifs-thera .ifsthera-results[data-cols] { --n: 1; }

    .ifs-thera .ifsthera-results[data-cols] .ifsthera-pub {
        grid-column: 1 / -1;
        grid-row: auto;
        height: auto;
        aspect-ratio: var(--ratio-mobile);
        order: var(--ordre-mobile, var(--ordre));
    }

    .ifs-thera .ifsthera-ad-card__media.a-image-mobile .ifsthera-ad-card__img--grand { display: none; }
    .ifs-thera .ifsthera-ad-card__media.a-image-mobile .ifsthera-ad-card__img--mobile { display: block; }

    .ifs-thera .ifsthera-ad-card--horizontal { flex-direction: column; }
    .ifs-thera .ifsthera-ad-card--horizontal .ifsthera-ad-card__media { flex-basis: 42%; }
}

.ifs-thera .ifsthera-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 1rem 1.1rem .9rem;
    background: var(--ifsthera-surface);
    border: 1px solid var(--ifsthera-line);
    border-radius: var(--ifsthera-radius);
    box-shadow: var(--ifsthera-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ifs-thera .ifsthera-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--ifsthera-primary) 35%, var(--ifsthera-line));
    box-shadow: var(--ifsthera-shadow-hover);
}

.ifsthera-card__tete {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.ifs-thera .ifsthera-card__avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 4rem;
    height: 4rem;
    overflow: hidden;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--ifsthera-primary) 16%, transparent), transparent 65%),
        var(--ifsthera-pale);
    color: var(--ifsthera-primary);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.ifs-thera .ifsthera-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.ifsthera-card__identite {
    min-width: 0;
}

.ifs-thera .ifsthera-card__nom {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.25;
    color: var(--ifsthera-ink);
    overflow-wrap: anywhere;
}

.ifs-thera .ifsthera-card__nom a {
    color: inherit;
}

/* Toute la carte est cliquable (lien étendu sur le nom) */
.ifs-thera .ifsthera-card__nom a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.ifs-thera .ifsthera-card__cabinet {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: .15rem 0 0;
    color: var(--ifsthera-muted);
    font-size: .88rem;
    line-height: 1.35;
}

.ifs-thera .ifsthera-card__infos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .75rem;
    margin: 0;
    color: var(--ifsthera-text);
    font-size: .88rem;
    line-height: 1.4;
}

.ifs-thera .ifsthera-card__lieu {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
}

.ifs-thera .ifsthera-card__lieu .ifsthera-icone {
    color: var(--ifsthera-primary);
}

/* Adresse complète : l'icône s'aligne sur la première ligne (rue) */
.ifs-thera .ifsthera-card__lieu--adresse {
    align-items: flex-start;
}

.ifs-thera .ifsthera-card__lieu--adresse .ifsthera-icone {
    margin-top: .1rem;
}

/* Nom masqué par les options : le nom du cabinet prend la place du titre */
.ifs-thera .ifsthera-card__cabinet--titre {
    margin-top: 0;
    color: var(--ifsthera-ink);
    font-size: 1.05rem;
    font-weight: 600;
    white-space: normal;
}

/* Contacts (options de la carte) : une ligne en bas de carte, au-dessus du lien étendu pour rester cliquables */
.ifs-thera .ifsthera-card__contacts {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .95rem;
    margin: auto 0 0;
    padding: .5rem 0 0;
    border-top: 1px solid var(--ifsthera-line);
    list-style: none;
    font-size: .88rem;
    line-height: 1.35;
}

.ifs-thera .ifsthera-card__contacts li {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    margin: 0;
}

.ifs-thera .ifsthera-card__contacts .ifsthera-icone {
    flex: none;
    width: 1.05rem;
    height: 1.05rem;
    color: var(--ifsthera-primary);
}

.ifs-thera .ifsthera-card__contacts a {
    display: block;
    overflow: hidden;
    min-width: 0;
    padding-bottom: 1px;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    color: var(--ifsthera-text);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background-size .2s ease, color .2s ease;
}

/* Pas de soulignement au repos : trait fin animé au survol ou au clavier */
.ifs-thera .ifsthera-card__contacts a:hover,
.ifs-thera .ifsthera-card__contacts a:focus-visible {
    background-size: 100% 1px;
    color: var(--ifsthera-primary-dark, var(--ifsthera-primary));
}

@media (prefers-reduced-motion: reduce) {
    .ifs-thera .ifsthera-card__contacts a {
        transition: none;
    }
}

.ifs-thera .ifsthera-card__contacts li > span {
    overflow: hidden;
    min-width: 0;
}

/* Pastille « événements à venir » : à cheval sur le coin supérieur droit de la carte */
.ifs-thera .ifsthera-events-pastille {
    position: absolute;
    top: -.55rem;
    right: -.55rem;
    z-index: 3;
    display: grid;
    place-items: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 .4rem;
    border: 2px solid var(--ifsthera-surface);
    border-radius: 999px;
    background: var(--ifsthera-badge, var(--ifsthera-primary));
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    transition: transform .15s ease, box-shadow .15s ease;
}

.ifs-thera .ifsthera-events-pastille:hover {
    transform: scale(1.08);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}

@media (prefers-reduced-motion: reduce) {
    .ifs-thera .ifsthera-events-pastille,
    .ifs-thera .ifsthera-events-popup {
        transition: none;
    }

    .ifs-thera .ifsthera-events-pastille:hover {
        transform: none;
    }
}

/* Fenêtre des prochains événements : au survol de la pastille seulement, ou au focus clavier du nom */
.ifs-thera .ifsthera-events-popup {
    position: absolute;
    top: 1.5rem;
    right: -.4rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    width: min(17rem, 85vw);
    padding: .7rem .8rem;
    border: 1px solid var(--ifsthera-line);
    border-radius: var(--ifsthera-radius-sm);
    background: var(--ifsthera-surface);
    box-shadow: 0 8px 24px rgba(20, 30, 28, .16);
    color: var(--ifsthera-text);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    pointer-events: none;
}

.ifs-thera .ifsthera-card:has(.ifsthera-events-pastille:hover) .ifsthera-events-popup,
.ifs-thera .ifsthera-card:has(.ifsthera-card__nom a:focus-visible) .ifsthera-events-popup {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.ifsthera-events-popup__titre {
    color: var(--ifsthera-ink);
    font-weight: 700;
}

.ifsthera-events-popup__ligne {
    display: flex;
    gap: .5rem;
    padding-left: .5rem;
    border-left: 3px solid var(--ifsthera-type, var(--ifsthera-primary));
}

.ifsthera-events-popup__date {
    flex: none;
    min-width: 3.4rem;
    color: var(--ifsthera-muted);
    font-weight: 600;
}

.ifsthera-events-popup__nom {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.ifsthera-events-popup__plus {
    color: var(--ifsthera-muted);
    font-style: italic;
}

/* La carte laisse dépasser la pastille et la fenêtre ; elle passe au premier plan au survol */
.ifs-thera .ifsthera-results__item:has(.ifsthera-events-pastille) .ifsthera-card {
    overflow: visible;
}

.ifs-thera .ifsthera-results__item:has(.ifsthera-events-pastille:hover),
.ifs-thera .ifsthera-results__item:has(.ifsthera-card__nom a:focus-visible) {
    z-index: 5;
}

.ifs-thera .ifsthera-results__item {
    position: relative;
}

/* Le nom ne passe pas sous la pastille (qui déborde à moitié de la carte) */
.ifs-thera .ifsthera-card:has(.ifsthera-events-pastille) .ifsthera-card__identite {
    padding-right: .9rem;
}

.ifsthera-contact-region {
    display: block;
    color: var(--ifsthera-muted);
    font-size: .88em;
}

/* Spécialités : une seule ligne dans la carte, fondu si elles débordent */
.ifs-thera .ifsthera-card .ifsthera-categories {
    flex-wrap: nowrap;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
}

.ifs-thera .ifsthera-card .ifsthera-badge {
    flex: none;
    white-space: nowrap;
}

.ifs-thera .ifsthera-card__lieu > span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Catégories */
.ifs-thera .ifsthera-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.ifs-thera .ifsthera-badge {
    display: inline-block;
    margin: 0;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ifsthera-badge) 12%, var(--ifsthera-surface));
    color: color-mix(in srgb, var(--ifsthera-badge) 78%, #000);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Publicités */
.ifs-thera .ifsthera-ad-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    border: 1px dashed color-mix(in srgb, var(--ifsthera-primary) 35%, var(--ifsthera-line));
    border-radius: var(--ifsthera-radius);
    background: var(--ifsthera-pale);
    color: var(--ifsthera-text);
}

.ifs-thera a.ifsthera-ad-card:hover {
    border-style: solid;
    color: var(--ifsthera-text);
}

.ifs-thera .ifsthera-ad-card {
    height: 100%;
}

/* Visuel de la publicité : remplit la place qui lui revient, recadré sans déformation */
.ifs-thera .ifsthera-ad-card__media {
    display: block;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.ifs-thera .ifsthera-ad-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.ifs-thera a.ifsthera-ad-card:hover .ifsthera-ad-card__media img {
    transform: scale(1.03);
}

/* Image + texte : image au-dessus (1 case, cases empilées) */
.ifs-thera .ifsthera-ad-card--mixte {
    justify-content: flex-start;
    border-style: solid;
    background: var(--ifsthera-surface);
}

.ifs-thera .ifsthera-ad-card--mixte .ifsthera-ad-card__media {
    flex: 0 0 42%;
}

.ifs-thera .ifsthera-pub--h2 .ifsthera-ad-card--mixte .ifsthera-ad-card__media {
    flex-basis: 50%;
}

.ifs-thera .ifsthera-ad-card--mixte .ifsthera-ad-card__texte {
    flex: 1;
    min-height: 0;
    gap: .3rem;
    padding: .65rem .9rem 1.4rem;
    overflow: hidden;
}

/* Une seule case : l'essentiel (nom, accroche courte) */
.ifs-thera .ifsthera-pub--l1.ifsthera-pub--h1 .ifsthera-ad-card--mixte .ifsthera-ad-card__entreprise {
    display: none;
}

.ifs-thera .ifsthera-pub--l1.ifsthera-pub--h1 .ifsthera-ad-card--mixte .ifsthera-ad-card__titre {
    font-size: .98rem;
}

.ifs-thera .ifsthera-pub--l1.ifsthera-pub--h1 .ifsthera-ad-card--mixte .ifsthera-ad-card__desc {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.ifs-thera .ifsthera-pub--l1.ifsthera-pub--h1 .ifsthera-ad-card--mixte .ifsthera-ad-card__suite {
    display: none;
}

/* Formats larges : image à gauche, texte à droite */
.ifs-thera .ifsthera-ad-card--horizontal {
    flex-direction: row;
}

.ifs-thera .ifsthera-ad-card--horizontal .ifsthera-ad-card__media {
    flex: 0 0 40%;
}

.ifs-thera .ifsthera-pub--l3 .ifsthera-ad-card--horizontal .ifsthera-ad-card__media,
.ifs-thera .ifsthera-pub--l4 .ifsthera-ad-card--horizontal .ifsthera-ad-card__media,
.ifs-thera .ifsthera-ad-card--banner.ifsthera-ad-card--horizontal .ifsthera-ad-card__media {
    flex-basis: 34%;
}

.ifs-thera .ifsthera-ad-card--horizontal .ifsthera-ad-card__texte {
    justify-content: center;
    padding: 1rem 1.25rem 1.5rem;
}

/* Mention « Publicité » discrète dans le coin, quel que soit l'affichage */
.ifs-thera .ifsthera-ad-card--mixte .ifsthera-ad-label {
    position: absolute;
    right: .5rem;
    bottom: .35rem;
    padding: 0;
}

.ifs-thera .ifsthera-pub--h2 .ifsthera-ad-card__desc,
.ifs-thera .ifsthera-pub--l2 .ifsthera-ad-card__desc,
.ifs-thera .ifsthera-pub--l3 .ifsthera-ad-card__desc,
.ifs-thera .ifsthera-pub--l4 .ifsthera-ad-card__desc {
    -webkit-line-clamp: 6;
    line-clamp: 6;
}

.ifsthera-ad-card__texte {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 1rem 1.1rem .6rem;
}

.ifsthera-ad-card__entreprise {
    color: var(--ifsthera-muted);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ifsthera-ad-card__titre {
    color: var(--ifsthera-ink);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.ifsthera-ad-card__desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: .88rem;
    line-height: 1.45;
}

.ifsthera-ad-card__suite {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--ifsthera-primary);
    font-weight: 600;
}

.ifsthera-ad-label {
    display: block;
    padding: .2rem .75rem .5rem;
    color: var(--ifsthera-muted);
    font-size: .7rem;
    letter-spacing: .08em;
    text-align: right;
    text-transform: uppercase;
}

.ifsthera-ad-card--banner .ifsthera-ad-card__texte {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 1rem;
}

/* Pagination (liens standard de Joomla, sans Bootstrap) */
.ifs-thera .ifsthera-pagination {
    margin-top: 2rem;
}

.ifs-thera .ifsthera-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem;
}

.ifs-thera .ifsthera-pagination a,
.ifs-thera .ifsthera-pagination span.page-link {
    display: inline-grid;
    place-items: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0 .75rem;
    border: 1px solid var(--ifsthera-line);
    border-radius: 999px;
    background: var(--ifsthera-surface);
}

.ifs-thera .ifsthera-pagination .active span.page-link,
.ifs-thera .ifsthera-pagination [aria-current] {
    background: var(--ifsthera-primary);
    border-color: var(--ifsthera-primary);
    color: var(--ifsthera-on-primary);
}

.ifs-thera .ifsthera-pagination .disabled span.page-link {
    opacity: .45;
}

/* ==========================================================================
   Fiche détaillée
   ========================================================================== */

.ifs-thera .ifsthera-retour {
    margin: 0 0 1.25rem;
}

.ifs-thera .ifsthera-back-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
}

.ifs-thera .ifsthera-back-link .ifsthera-icone {
    transition: transform .2s ease;
}

.ifs-thera .ifsthera-back-link:hover .ifsthera-icone {
    transform: translateX(-3px);
}

.ifs-thera .ifsthera-header {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.ifs-thera .ifsthera-avatar {
    display: block;
    width: clamp(96px, 16vw, 150px);
    height: clamp(96px, 16vw, 150px);
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
    box-shadow: 0 0 0 4px var(--ifsthera-surface), 0 0 0 6px color-mix(in srgb, var(--ifsthera-primary) 35%, transparent);
}

.ifs-thera .ifsthera-avatar--initiales {
    display: grid;
    place-items: center;
    background: var(--ifsthera-pale);
    color: var(--ifsthera-primary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
}

.ifsthera-header__info {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 0;
}

.ifs-thera .ifsthera-header .ifsthera-titre {
    margin: 0;
}

.ifs-thera .ifsthera-header__cabinet {
    margin: 0;
    color: var(--ifsthera-muted);
    font-size: 1.1rem;
}

.ifsthera-detail__grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.ifsthera-detail__principal {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.ifs-thera .ifsthera-section-title {
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--ifsthera-line);
    color: var(--ifsthera-ink);
    font-size: 1.3rem;
    line-height: 1.3;
}

.ifs-thera .ifsthera-texte {
    line-height: 1.7;
}

.ifs-thera .ifsthera-texte > * {
    margin: 0 0 1em;
}

.ifs-thera .ifsthera-texte > :last-child {
    margin-bottom: 0;
}

/* Encadré des coordonnées */
.ifsthera-detail__contact {
    position: sticky;
    top: 1.5rem;
}

.ifs-thera .ifsthera-contact-box {
    padding: 1.25rem 1.35rem 1.4rem;
    background: var(--ifsthera-pale);
    border-radius: var(--ifsthera-radius);
}

.ifs-thera .ifsthera-contact-box .ifsthera-section-title {
    font-size: 1.1rem;
}

.ifs-thera .ifsthera-contact-grid {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.ifs-thera .ifsthera-contact-row {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    line-height: 1.45;
}

.ifs-thera .ifsthera-contact-row > .ifsthera-icone {
    margin-top: .1em;
    color: var(--ifsthera-primary);
}

.ifsthera-contact-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ifs-thera .ifsthera-itineraire {
    display: inline-block;
    margin-top: .3rem;
    font-size: .9rem;
    font-weight: 600;
}

.ifs-thera .ifsthera-messaging {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--ifsthera-line);
}

.ifs-thera .ifsthera-contact-subtitle {
    margin: 0 0 .7rem;
    color: var(--ifsthera-muted);
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ifsthera-messaging-grid {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ifs-thera .ifsthera-msg-btn {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 2.75rem;
    padding: .55rem 1rem;
    border-radius: var(--ifsthera-radius-sm);
    color: #fff;
    font-weight: 600;
    transition: filter .2s ease;
}

.ifs-thera .ifsthera-msg-btn:hover {
    color: #fff;
    filter: brightness(1.08);
}

.ifsthera-msg-icon {
    width: 1.3rem;
    height: 1.3rem;
    flex: none;
}

/* Couleurs des messageries (contraste AA avec le texte blanc) */
.ifs-thera .ifsthera-whatsapp { background: #128c4b; }
.ifs-thera .ifsthera-signal { background: #3a6ee8; }
.ifs-thera .ifsthera-telegram { background: #0b7bbd; }

/* Événements */
.ifs-thera .ifsthera-events-list {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.ifs-thera .ifsthera-event-card {
    display: flex;
    overflow: hidden;
    background: var(--ifsthera-surface);
    border: 1px solid var(--ifsthera-line);
    border-radius: var(--ifsthera-radius);
}

.ifs-thera .ifsthera-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 5.5rem;
    margin: 0;
    padding: 1rem .75rem;
    background: var(--ifsthera-primary);
    color: var(--ifsthera-on-primary);
    text-align: center;
    line-height: 1.1;
}

.ifsthera-event-day {
    font-size: 1.9rem;
    font-weight: 700;
}

.ifsthera-event-month {
    margin-top: .2rem;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ifsthera-event-year {
    margin-top: .2rem;
    font-size: .75rem;
    opacity: .85;
}

.ifsthera-event-day-range {
    font-size: .95rem;
    font-weight: 700;
}

.ifsthera-event-separator {
    margin: .15rem 0;
    opacity: .8;
}

.ifsthera-event-content {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
    padding: 1rem 1.25rem;
}

.ifs-thera .ifsthera-event-title {
    margin: 0;
    color: var(--ifsthera-ink);
    font-size: 1.08rem;
    line-height: 1.3;
}

.ifs-thera .ifsthera-event-desc {
    margin: 0;
    font-size: .95rem;
    line-height: 1.55;
}

.ifs-thera .ifsthera-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.25rem;
    margin: 0;
    color: var(--ifsthera-muted);
    font-size: .9rem;
}

.ifsthera-event-time,
.ifs-thera .ifsthera-event-location {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.ifs-thera .ifsthera-event-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    align-self: flex-start;
    font-weight: 600;
}

@media (max-width: 899.98px) {
    .ifsthera-detail__grille {
        grid-template-columns: minmax(0, 1fr);
    }

    .ifsthera-detail__contact {
        position: static;
        order: -1;
    }
}

@media (max-width: 559.98px) {
    .ifs-thera .ifsthera-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ifs-thera .ifsthera-event-card {
        flex-direction: column;
    }

    .ifs-thera .ifsthera-event-date {
        flex-direction: row;
        justify-content: flex-start;
        gap: .5rem;
        padding: .6rem 1rem;
    }

    .ifsthera-event-day {
        font-size: 1.35rem;
    }

    .ifsthera-event-month,
    .ifsthera-event-year {
        margin-top: 0;
    }
}

/* ==========================================================================
   Animations d'apparition (option du lien de menu)
   ========================================================================== */

.ifs-thera .ifsthera-animate-fade,
.ifs-thera .ifsthera-animate-slide,
.ifs-thera .ifsthera-animate-zoom {
    animation: .5s ease-out var(--ifsthera-delai, 0s) both;
}

.ifs-thera .ifsthera-animate-fade { animation-name: ifsthera-fondu; }
.ifs-thera .ifsthera-animate-slide { animation-name: ifsthera-glisse; }
.ifs-thera .ifsthera-animate-zoom { animation-name: ifsthera-zoom; }

@keyframes ifsthera-fondu {
    from { opacity: 0; }
}

@keyframes ifsthera-glisse {
    from { opacity: 0; transform: translateY(24px); }
}

@keyframes ifsthera-zoom {
    from { opacity: 0; transform: scale(.94); }
}

@media (prefers-reduced-motion: reduce) {
    .ifs-thera *,
    .ifs-thera *::before,
    .ifs-thera *::after {
        animation: none !important;
        transition: none !important;
    }

    .ifs-thera .ifsthera-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   Types d'événements (couleur portée par --ifsthera-type sur l'élément)
   ========================================================================== */

.ifs-thera .ifsthera-event-card .ifsthera-event-date {
    background: var(--ifsthera-type, var(--ifsthera-primary));
}

.ifs-thera .ifsthera-type-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    align-self: flex-start;
    padding: .15rem .6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ifsthera-type, var(--ifsthera-primary)) 12%, var(--ifsthera-surface));
    color: color-mix(in srgb, var(--ifsthera-type, var(--ifsthera-primary)) 82%, #000);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.5;
}

.ifs-thera .ifsthera-type-badge::before {
    content: "";
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--ifsthera-type, var(--ifsthera-primary));
}

/* ==========================================================================
   Agenda
   ========================================================================== */

.ifsthera-agenda__intro {
    margin-bottom: 1.5rem;
}

.ifs-thera .ifsthera-agenda__filtres {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin: 0 0 1.5rem;
    padding: clamp(1rem, 2.5vw, 1.25rem);
    background: var(--ifsthera-pale);
    border-radius: var(--ifsthera-radius);
}

.ifs-thera .ifsthera-types ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ifs-thera .ifsthera-type-filtre {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.5rem;
    padding: .4rem .9rem;
    border: 1px solid var(--ifsthera-line);
    border-radius: 999px;
    background: var(--ifsthera-surface);
    color: var(--ifsthera-text);
    font-size: .92rem;
    font-weight: 600;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.ifs-thera .ifsthera-type-filtre:hover {
    border-color: var(--ifsthera-type, var(--ifsthera-primary));
    color: var(--ifsthera-ink);
}

.ifs-thera .ifsthera-type-filtre.is-actif {
    border-color: var(--ifsthera-type, var(--ifsthera-primary));
    background: var(--ifsthera-type, var(--ifsthera-primary));
    color: #fff;
}

.ifsthera-type-filtre__point {
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: var(--ifsthera-type, var(--ifsthera-primary));
}

.is-actif .ifsthera-type-filtre__point {
    background: #fff;
}

.ifsthera-type-filtre__nombre {
    font-weight: 400;
    opacity: .8;
}

.ifs-thera .ifsthera-agenda__region {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: min(100%, 16rem);
    margin: 0;
}

.ifs-thera .ifsthera-agenda__region label {
    color: var(--ifsthera-muted);
    font-size: .85rem;
    font-weight: 600;
}

.ifs-thera .ifsthera-agenda__mois {
    margin: 2rem 0 .85rem;
    color: var(--ifsthera-ink);
    font-size: 1.35rem;
}

.ifs-thera .ifsthera-agenda__mois:first-of-type {
    margin-top: 0;
}

.ifs-thera .ifsthera-agenda__liste {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.ifs-thera .ifsthera-agenda__item {
    display: flex;
    overflow: hidden;
    background: var(--ifsthera-surface);
    border: 1px solid var(--ifsthera-line);
    border-left: 5px solid var(--ifsthera-type, var(--ifsthera-primary));
    border-radius: var(--ifsthera-radius);
}

.ifs-thera .ifsthera-agenda__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 5rem;
    margin: 0;
    padding: .9rem .6rem;
    background: color-mix(in srgb, var(--ifsthera-type, var(--ifsthera-primary)) 10%, var(--ifsthera-surface));
    color: color-mix(in srgb, var(--ifsthera-type, var(--ifsthera-primary)) 85%, #000);
    line-height: 1.1;
    text-align: center;
}

.ifsthera-agenda__jour-semaine,
.ifsthera-agenda__mois-court {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ifsthera-agenda__jour {
    font-size: 1.8rem;
    font-weight: 700;
}

.ifsthera-agenda__contenu {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 0;
    padding: .95rem 1.2rem;
}

.ifs-thera .ifsthera-agenda__titre {
    margin: 0;
    color: var(--ifsthera-ink);
    font-size: 1.12rem;
    line-height: 1.3;
}

.ifs-thera .ifsthera-agenda__qui {
    margin: 0;
    color: var(--ifsthera-muted);
    font-size: .92rem;
}

.ifs-thera .ifsthera-agenda__qui a {
    font-weight: 600;
}

@media (max-width: 559.98px) {
    .ifs-thera .ifsthera-agenda__item {
        flex-direction: column;
    }

    .ifs-thera .ifsthera-agenda__date {
        flex-direction: row;
        justify-content: flex-start;
        gap: .4rem;
        padding: .5rem 1.2rem;
    }

    .ifsthera-agenda__jour {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   « Ma fiche » (formulaire du thérapeute)
   ========================================================================== */

.ifs-thera .ifsthera-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ifs-thera .ifsthera-carte {
    min-width: 0;
    margin: 0;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--ifsthera-line);
    border-radius: var(--ifsthera-radius);
    background: var(--ifsthera-surface);
}

.ifs-thera .ifsthera-carte > legend {
    float: left;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    color: var(--ifsthera-ink);
    font-size: 1.15rem;
    font-weight: 700;
}

.ifs-thera .ifsthera-carte > legend + * {
    clear: left;
}

/* Grille des champs : 6 colonnes (téléphone, tablette), 12 sur grand écran ; chaque champ reçoit une
   largeur adaptée à son contenu (--sN petit, --mN moyen, --lN grand ; pleine largeur par défaut). */
.ifs-thera .ifsthera-form {
    container: ifsthera-form / inline-size;
}

.ifs-thera .ifsthera-grille-champs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .9rem 1rem;
}

.ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc {
    grid-column: span 6;
}

.ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc--s2 { grid-column: span 2; }
.ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc--s3 { grid-column: span 3; }
.ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc--s4 { grid-column: span 4; }

@container ifsthera-form (min-width: 32rem) {
    .ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc--m2 { grid-column: span 2; }
    .ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc--m3 { grid-column: span 3; }
    .ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc--m4 { grid-column: span 4; }
    .ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc--m6 { grid-column: span 6; }
}

@container ifsthera-form (min-width: 50rem) {
    .ifs-thera .ifsthera-grille-champs {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc--l2 { grid-column: span 2; }
    .ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc--l3 { grid-column: span 3; }
    .ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc--l4 { grid-column: span 4; }
    .ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc--l6 { grid-column: span 6; }
    .ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc--l8 { grid-column: span 8; }
    .ifs-thera .ifsthera-grille-champs > .ifsthera-champ-bloc--l12 { grid-column: span 12; }
}

/* Dates et heures : la valeur tient sur une ligne même dans une colonne étroite */
.ifs-thera .ifsthera-champ[type="datetime-local"] {
    min-width: 0;
    padding-inline: .6rem;
    font-variant-numeric: tabular-nums;
}

.ifs-thera .ifsthera-champ-bloc {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin: 0;
}


.ifs-thera .ifsthera-champ-bloc > label,
.ifs-thera .ifsthera-choix > legend {
    color: var(--ifsthera-text);
    font-size: .9rem;
    font-weight: 600;
}

.ifs-thera textarea.ifsthera-champ {
    min-height: 0;
    resize: vertical;
}

.ifs-thera .ifsthera-aide {
    margin: 0;
    color: var(--ifsthera-muted);
    font-size: .85rem;
}

.ifs-thera .ifsthera-note {
    margin: 0 0 1rem;
    padding: .85rem 1rem;
    border-left: 4px solid var(--ifsthera-primary);
    border-radius: var(--ifsthera-radius-sm);
    background: var(--ifsthera-pale);
}

.ifs-thera .ifsthera-choix {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    margin: 1rem 0 0;
    padding: 0;
    border: 0;
}

.ifs-thera .ifsthera-choix > legend {
    width: 100%;
    margin-bottom: .4rem;
    padding: 0;
}

.ifs-thera .ifsthera-case {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2rem;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.ifs-thera .ifsthera-case input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    accent-color: var(--ifsthera-primary);
}

/* --------------------------------------------------------------------------
   Spécialités en étiquettes (2.11.0, js/etiquettes.js) : les cases restent
   dans le formulaire mais sont masquées une fois le champ de recherche en place.
   -------------------------------------------------------------------------- */

.ifs-thera .ifsthera-etiq-actif > .ifsthera-case {
    display: none;
}

.ifs-thera .ifsthera-etiq {
    position: relative;
    flex: 1 1 100%;
}

.ifs-thera .ifsthera-etiq__champ {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    min-height: 2.75rem;
    padding: .35rem .5rem;
    border: 1px solid var(--ifsthera-line);
    border-radius: var(--ifsthera-radius-sm);
    background-color: var(--ifsthera-surface);
    cursor: text;
}

.ifs-thera .ifsthera-etiq__champ:focus-within {
    border-color: var(--ifsthera-primary);
}

.ifs-thera .ifsthera-etiq__liste {
    display: contents;
}

.ifs-thera .ifsthera-etiq__liste li {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    padding: .15rem .2rem .15rem .7rem;
    border-radius: 999px;
    background: var(--ifsthera-pale);
    color: var(--ifsthera-ink);
    font-size: .9rem;
    line-height: 1.3;
}

.ifs-thera .ifsthera-etiq__retirer {
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ifsthera-muted);
    font: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.ifs-thera .ifsthera-etiq__retirer:hover,
.ifs-thera .ifsthera-etiq__retirer:focus-visible {
    background: var(--ifsthera-line);
    color: var(--ifsthera-ink);
}

.ifs-thera .ifsthera-etiq__saisie {
    flex: 1 1 12rem;
    min-width: 8rem;
    min-height: 2rem;
    padding: .2rem .35rem;
    border: 0;
    background: transparent;
    color: var(--ifsthera-ink);
    font: inherit;
    outline: none;
}

.ifs-thera .ifsthera-etiq__saisie:disabled {
    cursor: not-allowed;
}

.ifs-thera .ifsthera-etiq__suggestions {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    max-height: 16rem;
    margin-top: .25rem;
    padding: .3rem;
    overflow-y: auto;
    border: 1px solid var(--ifsthera-line);
    border-radius: var(--ifsthera-radius-sm);
    background: var(--ifsthera-surface);
    box-shadow: var(--ifsthera-shadow-hover);
}

.ifs-thera .ifsthera-etiq__suggestions [role="option"] {
    padding: .5rem .7rem;
    border-radius: 6px;
    cursor: pointer;
}

.ifs-thera .ifsthera-etiq__suggestions [role="option"]:hover,
.ifs-thera .ifsthera-etiq__suggestions .is-actif {
    background: var(--ifsthera-pale);
    color: var(--ifsthera-primary-dark);
}

.ifs-thera .ifsthera-etiq__vide {
    padding: .5rem .7rem;
    color: var(--ifsthera-muted);
    font-size: .9rem;
}

.ifs-thera .ifsthera-etiq__annonce {
    margin: .35rem 0 0;
    color: var(--ifsthera-muted);
    font-size: .85rem;
}

.ifs-thera .ifsthera-etiq__annonce:empty {
    display: none;
}

.ifs-thera .ifsthera-proposition {
    max-width: 36rem;
    margin-top: 1.1rem;
}

/* --------------------------------------------------------------------------
   Inscription (2.11.0) : spécialités et événements / livres côte à côte sur
   grand écran ; tarif et supplément en direct dans chaque carte.
   -------------------------------------------------------------------------- */

.ifs-thera .ifsthera-duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

@container ifsthera-form (min-width: 52rem) {
    .ifs-thera .ifsthera-duo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Agenda et livres coupés (2.14.0) : la carte des spécialités prend toute la largeur */
    .ifs-thera .ifsthera-duo--seul {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ifs-thera .ifsthera-tarif {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .6rem;
    margin-top: .1rem;
    font-size: .85rem;
}

.ifs-thera .ifsthera-carte > .ifsthera-tarif {
    margin-bottom: .9rem;
}

.ifs-thera .ifsthera-tarif__regle {
    color: var(--ifsthera-muted);
}

.ifs-thera .ifsthera-tarif__sup {
    padding: .1rem .55rem;
    border-radius: 999px;
    background: var(--ifsthera-pale);
    color: var(--ifsthera-primary-dark);
    font-weight: 600;
    white-space: nowrap;
}

.ifs-thera .ifsthera-tarif__sup:empty {
    display: none;
}

.ifs-thera .ifsthera-tarif__sup.is-plus {
    background: var(--ifsthera-primary);
    color: var(--ifsthera-on-primary);
}

/* --------------------------------------------------------------------------
   Types de profil (2.12.0) : choix en pastilles (inscription, Ma fiche),
   ligne « Thérapeute · Formateur » sur les cartes et la fiche détaillée.
   -------------------------------------------------------------------------- */

.ifs-thera .ifsthera-pilules {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.ifs-thera .ifsthera-pilule {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: .5rem;
    min-height: 2.75rem;
    padding: .55rem 1rem;
    border: 1px solid var(--ifsthera-line);
    border-radius: 999px;
    background: var(--ifsthera-surface);
    color: var(--ifsthera-ink);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.ifs-thera .ifsthera-pilule input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ifs-thera .ifsthera-pilule:hover {
    border-color: var(--ifsthera-primary);
}

.ifs-thera .ifsthera-pilule:has(input:checked) {
    border-color: var(--ifsthera-primary);
    background: var(--ifsthera-primary);
    color: var(--ifsthera-on-primary);
}

.ifs-thera .ifsthera-pilule:has(input:focus-visible) {
    outline: 2px solid var(--ifsthera-primary);
    outline-offset: 2px;
}

.ifs-thera .ifsthera-pilule__nom {
    font-weight: 600;
}

.ifs-thera .ifsthera-pilule__prix {
    font-size: .85rem;
    opacity: .85;
}

.ifs-thera .ifsthera-profils .ifsthera-aide {
    margin-bottom: .8rem;
}

.ifs-thera .ifsthera-profils__actuels {
    margin: 0 0 .35rem;
    font-weight: 600;
}

/* Types de profil mis en avant (2.13.0) : étiquettes pleines au-dessus du nom (carte) ou sous le nom (fiche) */
.ifs-thera .ifsthera-types {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin: 0 0 .3rem;
}

.ifs-thera .ifsthera-type {
    display: inline-block;
    margin: 0;
    padding: .1rem .55rem;
    border-radius: 999px;
    background: var(--ifsthera-primary);
    color: var(--ifsthera-on-primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.4;
    white-space: nowrap;
}

.ifs-thera .ifsthera-types--grand {
    gap: .4rem;
    margin: .35rem 0 .5rem;
}

.ifs-thera .ifsthera-types--grand .ifsthera-type {
    padding: .2rem .8rem;
    font-size: .85rem;
}

/* Spécialités mises en avant (2.13.0) : étoile sur l'étiquette */
.ifs-thera .ifsthera-choix > .ifsthera-aide {
    flex: 1 1 100%;
}

.ifs-thera .ifsthera-etiq__vedette {
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: -.45rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ifsthera-muted);
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.ifs-thera .ifsthera-etiq__vedette:hover:not(:disabled),
.ifs-thera .ifsthera-etiq__vedette:focus-visible {
    background: var(--ifsthera-line);
    color: var(--ifsthera-ink);
}

.ifs-thera .ifsthera-etiq__vedette:disabled {
    opacity: .35;
    cursor: default;
}

.ifs-thera .ifsthera-etiq__liste li.is-vedette {
    background: var(--ifsthera-primary);
    color: var(--ifsthera-on-primary);
}

.ifs-thera .ifsthera-etiq__liste li.is-vedette .ifsthera-etiq__vedette,
.ifs-thera .ifsthera-etiq__liste li.is-vedette .ifsthera-etiq__retirer {
    color: var(--ifsthera-on-primary);
}

.ifs-thera .ifsthera-etiq__liste li.is-vedette .ifsthera-etiq__vedette:hover,
.ifs-thera .ifsthera-etiq__liste li.is-vedette .ifsthera-etiq__retirer:hover {
    background: rgba(255, 255, 255, .2);
}

@media (prefers-reduced-motion: reduce) {
    .ifs-thera .ifsthera-pilule {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Compteurs − / + (2.11.0) : nombres d'événements, de livres, de spécialités
   -------------------------------------------------------------------------- */

.ifs-thera .ifsthera-compteurs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
}

.ifs-thera .ifsthera-compteurs + .ifsthera-aide {
    margin-top: 1rem;
}

.ifs-thera .ifsthera-compteur {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: 0;
}

.ifs-thera .ifsthera-compteur > label {
    color: var(--ifsthera-text);
    font-size: .9rem;
    font-weight: 600;
}

.ifs-thera .ifsthera-compteur__zone {
    display: inline-flex;
    width: max-content;
    overflow: hidden;
    border: 1px solid var(--ifsthera-line);
    border-radius: var(--ifsthera-radius-sm);
    background: var(--ifsthera-surface);
}

.ifs-thera .ifsthera-compteur__zone:focus-within {
    border-color: var(--ifsthera-primary);
}

.ifs-thera .ifsthera-compteur__btn {
    width: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
    border: 0;
    background: var(--ifsthera-pale);
    color: var(--ifsthera-primary-dark);
    font: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.ifs-thera .ifsthera-compteur__btn:hover:not(:disabled) {
    background: var(--ifsthera-line);
}

.ifs-thera .ifsthera-compteur__btn:focus-visible {
    outline: 2px solid var(--ifsthera-primary);
    outline-offset: -2px;
}

.ifs-thera .ifsthera-compteur__btn:disabled {
    color: var(--ifsthera-muted);
    opacity: .45;
    cursor: default;
}

.ifs-thera .ifsthera-compteur__valeur {
    width: 3.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-inline: 1px solid var(--ifsthera-line);
    background: transparent;
    color: var(--ifsthera-ink);
    font: inherit;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.ifs-thera .ifsthera-compteur__valeur::-webkit-inner-spin-button,
.ifs-thera .ifsthera-compteur__valeur::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.ifs-thera .ifsthera-compteur__valeur:focus {
    outline: none;
}

.ifs-thera .ifsthera-photo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.1rem;
}

.ifsthera-photo__apercu {
    display: grid;
    place-items: center;
    flex: none;
    width: 6rem;
    height: 6rem;
    overflow: hidden;
    border-radius: 50%;
    background: var(--ifsthera-pale);
    color: var(--ifsthera-primary);
    font-size: 1.6rem;
    font-weight: 600;
}

.ifs-thera .ifsthera-photo__apercu img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ifs-thera .ifsthera-evs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ifs-thera .ifsthera-ev {
    margin: 0;
    padding: 1rem;
    border: 1px dashed var(--ifsthera-line);
    border-radius: var(--ifsthera-radius-sm);
    background: var(--ifsthera-pale);
}

.ifs-thera .ifsthera-ev__pied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .75rem;
}

.ifs-thera .ifsthera-passes {
    margin-top: 1rem;
}

.ifs-thera .ifsthera-passes > summary {
    margin-bottom: .75rem;
    color: var(--ifsthera-muted);
    font-weight: 600;
    cursor: pointer;
}

.ifs-thera .ifsthera-passes .ifsthera-ev + .ifsthera-ev {
    margin-top: 1rem;
}

/* Barre d'enregistrement : reste en bas de l'écran, sur un fond qui ne laisse pas voir les champs dessous ;
   bouton à gauche (le coin droit est souvent pris par une bulle de discussion ou un bouton « haut de page ») */
.ifs-thera .ifsthera-form__actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    margin: 0;
    padding: .7rem 1rem;
    border: 1px solid var(--ifsthera-line);
    border-radius: var(--ifsthera-radius) var(--ifsthera-radius) 0 0;
    background: color-mix(in srgb, var(--ifsthera-surface) 92%, transparent);
    box-shadow: 0 -6px 18px rgba(20, 30, 28, .08);
    backdrop-filter: blur(6px);
}

@media (max-width: 639.98px) {
    .ifs-thera .ifsthera-photo {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Publicité en image (seule ou avec texte) : l'image occupe tout son cadre, aux proportions exactes ;
   la mention obligatoire « Publicité » est posée dans le coin, sans prendre de place. */
.ifs-thera .ifsthera-ad-card:has(> .ifsthera-ad-card__media) .ifsthera-ad-label {
    position: absolute;
    right: .45rem;
    bottom: .45rem;
    z-index: 1;
    padding: .15rem .45rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, .88);
    color: #3f4a46;
    font-size: .65rem;
    line-height: 1.3;
}

/* Thérapeute connecté : bandeau, fiche mise en évidence et bouton « Modifier » */
.ifs-thera .ifsthera-moi {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin: 0 0 1.25rem;
    padding: .9rem 1.1rem;
    border: 1px solid color-mix(in srgb, var(--ifsthera-primary) 35%, transparent);
    border-left: 4px solid var(--ifsthera-primary);
    border-radius: var(--ifsthera-radius-sm);
    background: color-mix(in srgb, var(--ifsthera-primary) 8%, var(--ifsthera-surface));
}

.ifs-thera .ifsthera-moi__texte {
    margin: 0;
    color: var(--ifsthera-ink);
}

.ifs-thera .ifsthera-moi__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ifs-thera .ifsthera-card--moi {
    border: 2px solid var(--ifsthera-primary);
    background: color-mix(in srgb, var(--ifsthera-primary) 6%, var(--ifsthera-surface));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ifsthera-primary) 16%, transparent), var(--ifsthera-shadow);
}

.ifs-thera .ifsthera-results__item--moi {
    scroll-margin-top: 6rem;
}

/* Étiquette « Votre fiche » à cheval sur le bord haut, à gauche (la pastille d'événements est à droite) */
.ifs-thera .ifsthera-moi-etiquette {
    position: absolute;
    top: -.6rem;
    left: .9rem;
    z-index: 3;
    padding: .1rem .55rem;
    border-radius: 999px;
    background: var(--ifsthera-primary);
    color: var(--ifsthera-on-primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    pointer-events: none;
}

/* Bouton « Modifier » dans le coin bas droit, au-dessus du lien qui couvre la carte */
.ifs-thera .ifsthera-moi-editer {
    position: absolute;
    right: .7rem;
    bottom: .7rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: var(--ifsthera-primary);
    color: var(--ifsthera-on-primary);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transition: background-color .15s ease;
}

.ifs-thera .ifsthera-moi-editer:hover,
.ifs-thera .ifsthera-moi-editer:focus-visible {
    background: var(--ifsthera-primary-dark);
    color: var(--ifsthera-on-primary);
}

.ifs-thera .ifsthera-moi-editer svg {
    width: .95em;
    height: .95em;
}

/* ==========================================================================
   Balises {ifstherapeutes …} placées dans un article ou un module (2.5.0)
   ========================================================================== */
.ifs-thera.ifsthera-balise {
    margin: 1.5em 0;
}

.ifs-thera.ifsthera-balise.is-seule .ifsthera-results {
    max-width: 24rem;
}

.ifs-thera.ifsthera-balise .ifsthera-agenda__liste {
    margin: 0;
}

.ifs-thera .ifsthera-balise__suite {
    margin: .75rem 0 0;
    font-weight: 600;
}

.ifs-thera .ifsthera-balise__suite a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.ifs-thera.ifsthera-balise-recherche .ifsthera-filters__recherche {
    flex-wrap: wrap;
}

.ifs-thera.ifsthera-balise-recherche select.ifsthera-champ {
    flex: 0 1 16rem;
}

/* ==========================================================================
   Livres et créations (2.7.0) : section de la fiche et blocs de « Ma fiche »
   ========================================================================== */

.ifs-thera .ifsthera-ouvrages-liste {
    display: grid;
    gap: .9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ifs-thera .ifsthera-ouvrage {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--ifsthera-line);
    border-radius: var(--ifsthera-radius-sm);
    background: var(--ifsthera-surface);
}

.ifs-thera .ifsthera-ouvrage__couverture,
.ifs-thera .ifsthera-ouvrage-form__apercu {
    display: grid;
    place-items: center;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: var(--ifsthera-pale);
    color: var(--ifsthera-primary);
    box-shadow: 0 4px 12px rgba(20, 30, 28, .12);
}

.ifs-thera .ifsthera-ouvrage__couverture img,
.ifs-thera .ifsthera-ouvrage-form__apercu img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ifs-thera .ifsthera-ouvrage__couverture .ifsthera-icone,
.ifs-thera .ifsthera-ouvrage-form__apercu .ifsthera-icone {
    width: 2.2rem;
    height: 2.2rem;
    opacity: .7;
}

.ifs-thera .ifsthera-ouvrage__texte {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 0;
}

.ifs-thera .ifsthera-ouvrage__titre {
    margin: 0;
    color: var(--ifsthera-ink);
    font-size: 1.1rem;
    line-height: 1.3;
}

.ifs-thera .ifsthera-ouvrage__desc {
    margin: 0;
    color: var(--ifsthera-text);
    font-size: .92rem;
    line-height: 1.5;
}

.ifs-thera .ifsthera-ouvrage__achat {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1rem;
    margin: .35rem 0 0;
}

.ifs-thera .ifsthera-ouvrage__prix {
    color: var(--ifsthera-ink);
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ifs-thera .ifsthera-ouvrage__bouton {
    min-height: 2.4rem;
    padding: .45rem 1rem;
    text-decoration: none;
}

.ifs-thera .ifsthera-ouvrage__bouton .ifsthera-icone {
    width: 1.1rem;
    height: 1.1rem;
}

@media (max-width: 30rem) {
    .ifs-thera .ifsthera-ouvrage {
        grid-template-columns: 4.75rem minmax(0, 1fr);
        gap: .8rem;
    }
}

/* Formulaire « Ma fiche » : couverture à gauche, champs à droite (l'un sous l'autre sur téléphone) */
.ifs-thera .ifsthera-ouvrage-form__corps {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
}

.ifs-thera .ifsthera-ouvrage-form__couverture {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ifs-thera .ifsthera-ouvrage-form__fichier {
    position: relative;
    width: 100%;
    min-height: 2.25rem;
    text-align: center;
    padding: .35rem .75rem;
    font-size: .85rem;
}

.ifs-thera .ifsthera-ouvrage-form__fichier:focus-within {
    outline: 2px solid var(--ifsthera-primary);
    outline-offset: 2px;
}

.ifs-thera .ifsthera-ouvrage-form__couverture .ifsthera-case {
    font-size: .82rem;
}

@media (max-width: 36rem) {
    .ifs-thera .ifsthera-ouvrage-form__corps {
        grid-template-columns: minmax(0, 1fr);
    }

    .ifs-thera .ifsthera-ouvrage-form__couverture {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .ifs-thera .ifsthera-ouvrage-form__apercu {
        width: 4.5rem;
    }
}

/* Page « Livres et créations » (2.8.0) : grille de produits, couverture entière (jamais recadrée) */
.ifs-thera.ifsthera-boutique {
    container: ifsthera-boutique / inline-size;
}

.ifs-thera .ifsthera-boutique__grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: var(--ifsthera-gap, 1.25rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ifs-thera .ifsthera-produit {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ifsthera-line);
    border-radius: var(--ifsthera-radius);
    background: var(--ifsthera-surface);
    box-shadow: var(--ifsthera-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ifs-thera .ifsthera-produit:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--ifsthera-primary) 35%, var(--ifsthera-line));
    box-shadow: var(--ifsthera-shadow-hover);
}

.ifs-thera .ifsthera-produit__couverture {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 1rem;
    background:
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--ifsthera-primary) 10%, transparent), transparent 65%),
        var(--ifsthera-pale);
    color: var(--ifsthera-primary);
}

.ifs-thera .ifsthera-produit__couverture img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(20, 30, 28, .18);
    object-fit: contain;
}

.ifs-thera .ifsthera-produit__couverture .ifsthera-icone {
    width: 2.75rem;
    height: 2.75rem;
    opacity: .65;
}

.ifs-thera .ifsthera-produit__corps {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .45rem;
    padding: 1rem 1.1rem 1.1rem;
}

.ifs-thera .ifsthera-produit__titre {
    margin: 0;
    color: var(--ifsthera-ink);
    font-size: 1.1rem;
    line-height: 1.3;
}

.ifs-thera .ifsthera-produit__auteur {
    margin: 0;
    color: var(--ifsthera-muted);
    font-size: .88rem;
}

.ifs-thera .ifsthera-produit__auteur a {
    color: var(--ifsthera-primary-dark, var(--ifsthera-primary));
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .2s ease;
}

.ifs-thera .ifsthera-produit__auteur a:hover,
.ifs-thera .ifsthera-produit__auteur a:focus-visible {
    background-size: 100% 1px;
}

.ifs-thera .ifsthera-produit__desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin: 0;
    color: var(--ifsthera-text);
    font-size: .9rem;
    line-height: 1.5;
}

.ifs-thera .ifsthera-produit__pied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem 1rem;
    margin: auto 0 0;
    padding-top: .5rem;
}

@media (prefers-reduced-motion: reduce) {
    .ifs-thera .ifsthera-produit,
    .ifs-thera .ifsthera-produit__auteur a {
        transition: none;
    }

    .ifs-thera .ifsthera-produit:hover {
        transform: none;
    }
}

/* Balise {ifstherapeutes ouvrages colonnes=N} : N colonnes au plus, moins si la place manque (15rem minimum) */
.ifs-thera .ifsthera-boutique__grille[style*="--ifsthera-colonnes"] {
    grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 15rem), calc((100% - (var(--ifsthera-colonnes) - 1) * var(--ifsthera-gap, 1.25rem)) / var(--ifsthera-colonnes))), 1fr));
}

/* ==========================================================================
   Inscription payante (2.9.0) : formule, récapitulatif, abonnement dans « Ma fiche »
   ========================================================================== */

/* 2.13.1 : deux colonnes (prix par type | compris et options), une seule sur téléphone */
.ifs-thera .ifsthera-formule {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem 2.5rem;
    margin: 0 0 1.25rem;
    padding: clamp(1.1rem, 3vw, 1.5rem) clamp(1.1rem, 3vw, 1.75rem);
    border: 1px solid color-mix(in srgb, var(--ifsthera-primary) 30%, var(--ifsthera-line));
    border-radius: var(--ifsthera-radius);
    background: var(--ifsthera-surface);
    box-shadow: var(--ifsthera-shadow);
}

@media (min-width: 52rem) {
    .ifs-thera .ifsthera-formule {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ifs-thera .ifsthera-formule__bloc + .ifsthera-formule__bloc {
        padding-left: 2.5rem;
        border-left: 1px solid var(--ifsthera-line);
    }
}

.ifs-thera .ifsthera-formule__bloc {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    min-width: 0;
}

.ifs-thera .ifsthera-formule__titre {
    margin: 0;
    color: var(--ifsthera-ink);
    font-size: 1.2rem;
}

.ifs-thera .ifsthera-formule__sous-titre {
    margin: 0;
    color: var(--ifsthera-ink);
    font-size: .95rem;
    font-weight: 700;
}

.ifs-thera .ifsthera-formule__sous-titre:not(:first-child) {
    margin-top: .6rem;
}

.ifs-thera .ifsthera-formule__intro,
.ifs-thera .ifsthera-formule__note {
    margin: 0;
    color: var(--ifsthera-muted);
    font-size: .9rem;
}

/* Lignes « libellé …… prix » (types de profil, éléments en plus) */
.ifs-thera .ifsthera-formule__tarifs {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ifs-thera .ifsthera-formule__tarifs li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .45rem 0;
    border-bottom: 1px dashed var(--ifsthera-line);
    color: var(--ifsthera-text);
}

.ifs-thera .ifsthera-formule__tarifs li:last-child {
    border-bottom: 0;
}

.ifs-thera .ifsthera-formule__tarifs strong {
    color: var(--ifsthera-primary-dark);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ifs-thera .ifsthera-formule__tarifs--options li {
    padding: .3rem 0;
    font-size: .9rem;
}

.ifs-thera .ifsthera-formule__prix {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin: 0;
    color: var(--ifsthera-muted);
}

.ifs-thera .ifsthera-formule__prix strong {
    color: var(--ifsthera-primary-dark, var(--ifsthera-primary));
    font-size: 1.8rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.ifs-thera .ifsthera-formule__inclus {
    display: grid;
    gap: .35rem;
    margin: .25rem 0 0;
    padding: 0;
    list-style: none;
}

.ifs-thera .ifsthera-formule__inclus li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--ifsthera-text);
}

.ifs-thera .ifsthera-formule__inclus li::before {
    content: "";
    position: absolute;
    top: .45em;
    left: .2rem;
    width: .7rem;
    height: .38rem;
    border-bottom: 2px solid var(--ifsthera-primary);
    border-left: 2px solid var(--ifsthera-primary);
    transform: rotate(-45deg);
}

.ifs-thera .ifsthera-total__lignes {
    display: grid;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ifs-thera .ifsthera-total__lignes li,
.ifs-thera .ifsthera-total__somme {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-variant-numeric: tabular-nums;
}

.ifs-thera .ifsthera-total__lignes li span:last-child {
    white-space: nowrap;
}

.ifs-thera .ifsthera-total__somme {
    align-items: baseline;
    margin: 1rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--ifsthera-line);
    color: var(--ifsthera-ink);
    font-weight: 700;
}

.ifs-thera .ifsthera-total__somme output {
    color: var(--ifsthera-primary-dark, var(--ifsthera-primary));
    font-size: 1.35rem;
}

.ifs-thera .ifsthera-total__paiement,
.ifs-thera .ifsthera-total__conditions {
    margin-top: 1rem;
}

/* Envoi de l'inscription (2.15.1) : fin de formulaire, aligné à droite sous le récapitulatif, jamais fixé */
.ifs-thera .ifsthera-envoi {
    display: flex;
    justify-content: flex-end;
    margin: 1.5rem 0 0;
    padding: 0;
}

.ifs-thera .ifsthera-envoi__bouton {
    gap: .6rem;
    min-height: 3.25rem;
    padding: .85rem 1.75rem;
    border-radius: var(--ifsthera-radius-sm);
    font-size: 1.05rem;
    letter-spacing: .01em;
    box-shadow: 0 1px 2px rgba(20, 30, 28, .12), 0 6px 16px -6px color-mix(in srgb, var(--ifsthera-primary) 55%, transparent);
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ifs-thera .ifsthera-envoi__bouton:hover {
    box-shadow: 0 1px 2px rgba(20, 30, 28, .12), 0 10px 22px -8px color-mix(in srgb, var(--ifsthera-primary) 65%, transparent);
    transform: translateY(-1px);
}

.ifs-thera .ifsthera-envoi__bouton:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ifsthera-primary) 45%, transparent);
    outline-offset: 2px;
}

.ifs-thera .ifsthera-envoi__fleche {
    flex: none;
    transition: transform .2s ease;
}

.ifs-thera .ifsthera-envoi__bouton:hover .ifsthera-envoi__fleche {
    transform: translateX(3px);
}

@media (max-width: 639.98px) {
    .ifs-thera .ifsthera-envoi__bouton {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ifs-thera .ifsthera-envoi__bouton,
    .ifs-thera .ifsthera-envoi__fleche {
        transition: none;
    }

    .ifs-thera .ifsthera-envoi__bouton:hover,
    .ifs-thera .ifsthera-envoi__bouton:hover .ifsthera-envoi__fleche {
        transform: none;
    }
}

.ifs-thera .ifsthera-total__conditions a {
    color: var(--ifsthera-primary-dark, var(--ifsthera-primary));
    font-weight: 600;
}

/* Champ piège anti-robots : hors de l'écran (jamais display:none, que certains robots détectent) */
.ifs-thera .ifsthera-piege {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ifs-thera .ifsthera-merci h2 {
    margin-top: 0;
}

.ifs-thera .ifsthera-abonnement {
    margin: 0 0 1.25rem;
    padding: 1rem 1.2rem;
    border: 1px solid color-mix(in srgb, var(--ifsthera-primary) 30%, var(--ifsthera-line));
    border-left-width: 4px;
    border-radius: var(--ifsthera-radius-sm);
    background: var(--ifsthera-pale);
}

.ifs-thera .ifsthera-abonnement p {
    margin: 0 0 .5rem;
}

.ifs-thera .ifsthera-abonnement p:last-child {
    margin-bottom: 0;
}

.ifs-thera .ifsthera-abonnement.is-expire {
    border-color: #e3b4ac;
    background: #fdf1ef;
}
