/* =============================================================================
   Le fil du destinataire — palette et composants validés sur la maquette G5.
   Préfixe f- pour le socle, ue-/ig-/td-/dl- pour chaque application imitée.
   ========================================================================== */

:root {
    --f-ink: #17152b;
    --f-muted: #6b6880;
    --f-pink: #ff5ca8;
    --f-seen: #1db954;
    --f-blue: #1d7bff;
    --f-glass: rgba(255, 255, 255, 0.82);
    --f-glass-soft: rgba(255, 255, 255, 0.92);
    --f-hairline: rgba(23, 21, 43, 0.08);
    --f-shadow: 0 10px 30px rgba(23, 21, 43, 0.1);
    --f-radius: 20px;
    --f-app-name: rgba(23, 21, 43, 0.78);
    --f-stamp: rgba(23, 21, 43, 0.45);
    --f-body-text: #3e3b55;
    --f-slot-bg: #eef5fc;
    --f-slot-ink: #0d5fa0;
    --f-layer: rgba(255, 255, 255, 0.55);
    --f-layer-soft: rgba(255, 255, 255, 0.35);
    --f-icon-ring: #fff;
    --f-btn-bg: #17152b;
    --f-btn-ink: #fff;
    --f-back-bg: #f6f6f6;
    --f-back-ink: #17152b;
}

/* L'écran verrouillé, et lui seul : le papier peint est sombre, donc tout
   ce qui se pose dessus s'inverse. Les écrans d'app gardent le thème clair. */
.f-body-lock {
    --f-ink: #fff;
    --f-muted: rgba(255, 255, 255, 0.62);
    --f-seen: #4ade80;
    /* Le verre laisse passer la teinte du papier peint. */
    --f-glass: rgba(255, 255, 255, 0.14);
    --f-glass-soft: rgba(255, 255, 255, 0.09);
    --f-hairline: rgba(255, 255, 255, 0.16);
    --f-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    --f-radius: 22px;
    --f-app-name: rgba(255, 255, 255, 0.88);
    --f-stamp: rgba(255, 255, 255, 0.5);
    --f-body-text: rgba(255, 255, 255, 0.82);
    --f-slot-bg: rgba(255, 255, 255, 0.12);
    --f-slot-ink: #fff;
    --f-layer: rgba(255, 255, 255, 0.12);
    --f-layer-soft: rgba(255, 255, 255, 0.07);
    --f-icon-ring: rgba(255, 255, 255, 0.25);
    --f-btn-bg: #fff;
    --f-btn-ink: #17152b;
    --f-back-bg: rgba(255, 255, 255, 0.16);
    --f-back-ink: #fff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

.f-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--f-ink);
    min-height: 100vh;
    background: linear-gradient(165deg, #ffd6ec 0%, #ffe3d0 45%, #d9d0ff 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* Papier peint : des voiles colorés sur un fond profond, pour que le verre
   des notifications ait quelque chose à laisser passer. */
.f-body-lock {
    background:
        radial-gradient(ellipse 58% 44% at 68% 14%, rgba(126, 170, 214, 0.85), transparent 64%),
        radial-gradient(ellipse 46% 38% at 22% 30%, rgba(92, 150, 132, 0.7), transparent 68%),
        radial-gradient(ellipse 66% 40% at 38% 66%, rgba(72, 98, 142, 0.6), transparent 70%),
        radial-gradient(ellipse 80% 50% at 50% 104%, rgba(26, 36, 52, 0.9), transparent 72%),
        linear-gradient(168deg, #1d2836 0%, #2a3b4d 44%, #223230 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

.f-wrap {
    max-width: 430px;
    margin: 0 auto;
    /* Assez d'air en bas pour que le dernier élément — la pile repliée et
       ses feuillets — ne colle pas au bord de l'écran. */
    padding: 0 14px calc(40px + env(safe-area-inset-bottom));
}

/* Barre d'état : pas d'heure, juste le réseau, la batterie et le compte. */
.f-status {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 4px;
    font-size: 13px;
    font-weight: 700;
}

.f-account {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: -6px;
    color: var(--f-ink);
    text-decoration: none;
    opacity: 0.75;
}

.f-account svg {
    width: 19px;
    height: 19px;
}

.f-net {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--f-ink);
}

.f-net-bars {
    width: 17px;
    height: 12px;
}

.f-net-flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
}

.f-preview-bar {
    background: var(--f-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
}

.f-preview-bar a {
    color: var(--f-pink);
}

.f-flash {
    max-width: 402px;
    margin: 8px auto 0;
    background: var(--f-ink);
    color: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
}

/* En-tête : horloge et date (G3A, sans la saison). */
.f-clock {
    text-align: center;
    margin: 34px 0 52px;
}

.f-clock-date {
    font-size: 16px;
    font-weight: 600;
    color: var(--f-ink);
    margin-bottom: 2px;
}

.f-clock-time {
    font-size: 78px;
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1.02;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.f-grp {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--f-stamp);
    margin: 18px 10px 8px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.f-grp span {
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

/* Notification (verre). */
.f-n {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--f-glass);
    border: 1px solid var(--f-hairline);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-radius: var(--f-radius);
    padding: 13px 15px;
    margin-bottom: 9px;
    box-shadow: var(--f-shadow);
    text-decoration: none;
    color: var(--f-ink);
    position: relative;
}

/* Un « display » explicite l'emporte sur l'attribut « hidden » : sans ces
   règles, une carte ou le bouton de la pile resteraient à l'écran une fois
   masqués. */
.f-n[hidden],
.f-stack[hidden] {
    display: none;
}

.f-app {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    flex: none;
    display: grid;
    place-items: center;
    font-size: 19px;
    color: #fff;
    font-weight: 800;
}

.f-app-plain {
    background: #fff;
}

.f-b {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.f-h {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.f-h b {
    font-size: 13px;
    font-weight: 600;
    color: var(--f-app-name);
}

.f-h small {
    font-size: 12px;
    color: var(--f-stamp);
    font-weight: 500;
    white-space: nowrap;
}

.f-t {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 1px;
}

.f-m {
    font-size: 13px;
    color: var(--f-body-text);
    line-height: 1.35;
    margin-top: 3px;
}

.f-m b {
    color: var(--f-ink);
}

.f-m-clip {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f-btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    color: var(--f-btn-ink);
    background: var(--f-btn-bg);
}

/* Le point des non lues, posé dans la carte : dehors, il se détachait du
   verre et flottait sur le papier peint. */
.f-dot {
    position: absolute;
    left: 7px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--f-blue);
    transform: translateY(-50%);
}

/* Fraîche : entourée de la couleur de l'app. */
.f-n-fresh.f-n-uber_eats {
    outline: 3px solid #06c167;
    outline-offset: -3px;
}

.f-n-fresh.f-n-uber_eats .f-btn {
    background: #06c167;
    color: #000;
}

.f-n-fresh.f-n-instagram {
    outline: 3px solid #ee2a7b;
    outline-offset: -3px;
}

.f-n-fresh.f-n-tinder {
    outline: 3px solid #fd5564;
    outline-offset: -3px;
}

.f-n-fresh.f-n-tinder .f-btn {
    background: linear-gradient(90deg, #fd5564, #ff7a59);
    color: #fff;
}

.f-n-fresh.f-n-doctolib {
    outline: 3px solid #107aca;
    outline-offset: -3px;
}

.f-n-fresh.f-n-doctolib .f-btn {
    background: #107aca;
    color: #fff;
}

.f-track {
    display: flex;
    gap: 4px;
    margin: 8px 0 2px;
}

.f-track i {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: #06c167;
}

.f-slot {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    background: var(--f-slot-bg);
    border-radius: 13px;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 700;
    color: var(--f-slot-ink);
}

.f-slot b {
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

/* En route : l'app se montre, son contenu attend l'ouverture, comme un
   écran verrouillé dont les aperçus sont coupés. */
.f-t-hidden {
    font-weight: 700;
    color: var(--f-muted);
    font-style: italic;
}

.f-n-locked .f-slot {
    background: rgba(0, 0, 0, 0.22);
}

/* Consultée : compacte, pleine couleur, coche verte. */
.f-n-seen {
    padding: 11px 13px;
    margin-bottom: 8px;
    align-items: center;
    background: var(--f-glass-soft);
    box-shadow: none;
}

.f-n-seen .f-app {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 15px;
}

.f-n-seen .f-t {
    font-size: 14px;
    margin-top: 0;
}

.f-n-seen .f-m {
    font-size: 12px;
    margin-top: 1px;
}

.f-n-seen .f-h small {
    color: var(--f-seen);
}

/* Pile repliée. */
.f-stack {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--f-glass-soft);
    border: 1px solid var(--f-hairline);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-radius: var(--f-radius);
    padding: 12px 14px;
    box-shadow: none;
    font: inherit;
    color: var(--f-ink);
    text-align: left;
    cursor: pointer;
    position: relative;
}

.f-stack::before,
.f-stack::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -5px;
    height: 12px;
    background: var(--f-layer);
    border-radius: 0 0 18px 18px;
    z-index: -1;
}

.f-stack::after {
    left: 18px;
    right: 18px;
    bottom: -9px;
    background: var(--f-layer-soft);
}

.f-stack-icons {
    display: flex;
}

.f-stack-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 2px solid var(--f-icon-ring);
    margin-left: -6px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-style: normal;
    overflow: hidden;
    flex: none;
}

.f-stack-icon:first-child {
    margin-left: 0;
}

/* Un vrai logo occupe toute la pastille : il porte déjà son fond. */
.f-app-logo {
    background: none;
    overflow: hidden;
}

.f-app-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.f-stack-text b {
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.f-stack-text small {
    font-size: 12px;
    color: var(--f-muted);
    font-weight: 700;
}

/* Formulaires du fil : connexion, invitation, options. */
.f-card {
    background: var(--f-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--f-radius);
    padding: 18px 16px;
    margin-bottom: 12px;
    box-shadow: var(--f-shadow);
}

.f-card-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
}

.f-card-sub {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--f-muted);
    font-weight: 600;
    line-height: 1.4;
}

.f-card-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.f-card-profile b {
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.f-card-profile small {
    font-size: 12px;
    color: var(--f-muted);
    font-weight: 600;
}

.f-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 24px;
}

.f-field {
    margin-top: 12px;
}

.f-field .f-field {
    margin-top: 0;
}

.f-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--f-muted);
    margin-bottom: 6px;
}

.f-input-group {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid transparent;
}

.f-input-group-invalid {
    border-color: #e0245e;
}

.f-input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: #fff;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    /* Le champ reste blanc : sa couleur de texte ne suit pas le thème. */
    color: #17152b;
    outline: none;
}

.f-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 92, 168, 0.35);
}

.f-input-group .f-input {
    border-radius: 14px 0 0 14px;
}

.f-eye {
    border: 0;
    background: #fff;
    border-radius: 0 14px 14px 0;
    padding: 0 14px;
    font-size: 18px;
    cursor: pointer;
}

.f-error {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #e0245e;
}

.f-submit {
    display: block;
    width: 100%;
    margin-top: 16px;
    border: 0;
    border-radius: 999px;
    background: var(--f-btn-bg);
    color: var(--f-btn-ink);
    padding: 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.f-flash-ok {
    background: var(--f-seen);
}

.f-link-danger {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #e0245e;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
}

/* Bandeau d'usurpation : visible sans se confondre avec le fil. */
.f-impersonating {
    max-width: 430px;
    margin: 8px auto 0;
    padding: 8px 14px;
    border-radius: 12px;
    background: #ffd166;
    color: #17152b;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.f-impersonating a {
    color: inherit;
    white-space: nowrap;
}

/* Connexion : le formulaire seul, centré, aux couleurs du fil. */
.f-login-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
}

.f-login-head {
    text-align: center;
    margin-bottom: 26px;
}

.f-login-mark {
    font-size: 40px;
    line-height: 1;
}

.f-login-head h1 {
    margin: 12px 0 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.f-login-head p {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--f-stamp);
}

/* Écrans d'ouverture : socle commun. */
.f-open .f-status {
    display: none;
}

.f-wrap-open {
    padding-bottom: 110px;
}

.f-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 2px;
}

.f-bar b {
    font-size: 15px;
    font-weight: 800;
}

.f-bar-line {
    border-bottom: 1px solid #efefef;
    margin: 0 -14px;
    padding: 12px 14px;
}

.f-bar-spacer {
    width: 36px;
}

.f-back {
    width: 36px;
    height: 36px;
    /* La barre est en flex : sans cela, le cercle s'écrase en ovale. */
    flex: none;
    border-radius: 50%;
    background: var(--f-back-bg);
    display: grid;
    place-items: center;
    text-decoration: none;
    color: var(--f-back-ink);
}

.f-back-icon {
    width: 17px;
    height: 17px;
    /* Le chevron pointe à gauche ; un demi-pixel le recentre optiquement,
       sa pointe pesant plus que ses deux extrémités. */
    margin-right: 1px;
}

.f-back-icon-down {
    rotate: -90deg;
    margin: 1px 0 0;
}

.f-bar-inverse .f-back {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.f-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
}

.f-cta a {
    display: block;
    text-align: center;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    padding: 15px;
    font-weight: 800;
    font-size: 15px;
    max-width: 398px;
    margin: 0 auto;
}

.f-media img,
.f-media video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.f-media audio {
    display: block;
    width: 100%;
}

.f-media-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-line;
}

.f-media-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    color: inherit;
    background: #f6f6f6;
    border-radius: 12px;
    padding: 12px 14px;
}

/* --- Uber Eats ------------------------------------------------------------ */
.f-open-ue {
    background: #fff;
}

.ue-hero {
    padding: 0 2px 12px;
}

.ue-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #06c167;
    font-weight: 800;
    font-size: 13px;
}

.ue-status i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #06c167;
    color: #fff;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 12px;
}

.ue-hero h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin: 6px 0 4px;
}

.ue-hero p {
    margin: 0;
    font-size: 13px;
    color: #6b6b6b;
    font-weight: 600;
}

.ue-map {
    height: 120px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e9f7ef, #f6f6f6);
    position: relative;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.ue-map::before {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 50%;
    border-top: 3px dashed #bfc7c2;
}

.ue-map-a,
.ue-map-z {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    background: #fff;
    border: 2px solid #000;
}

.ue-map-a {
    left: 12%;
}

.ue-map-z {
    left: 88%;
    background: #06c167;
    border-color: #06c167;
}

.ue-map small {
    position: absolute;
    bottom: 8px;
    left: 12px;
    font-size: 11px;
    font-weight: 800;
    color: #6b6b6b;
}

.ue-sec {
    padding-top: 16px;
}

.ue-sec h2 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 10px;
}

.ue-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 12px;
}

.ue-qty {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #f6f6f6;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    flex: none;
}

.ue-item-body b {
    font-size: 15px;
    font-weight: 800;
    display: block;
}

.ue-item-body p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.4;
}

.ue-media {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    background: #f6f6f6;
}

.ue-media .f-media-text {
    padding: 12px 14px;
}

.ue-media .f-media-link {
    margin: 12px;
}

.ue-rate {
    margin-top: 20px;
    border-top: 1px solid #e8e8e8;
    padding-top: 16px;
    text-align: center;
}

.ue-rate small {
    font-size: 12px;
    color: #6b6b6b;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.ue-stars {
    font-size: 28px;
    letter-spacing: 4px;
    color: #d8d8d8;
}

.ue-stars .on {
    color: #06c167;
}

/* --- Instagram ------------------------------------------------------------ */
.f-open-ig {
    background: #fff;
}

.ig-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.ig-head b {
    font-size: 13px;
    font-weight: 800;
    display: block;
}

.ig-head small {
    font-size: 11px;
    color: #737373;
    font-weight: 600;
}

.ig-ring {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(#f9ce34, #ee2a7b, #6228d7, #f9ce34);
    flex: none;
    display: block;
}

.ig-ring span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    font-size: 16px;
    border: 2px solid #fff;
}

.ig-dots {
    margin-left: auto;
    font-weight: 800;
    letter-spacing: 1px;
}

.ig-media {
    margin: 0 -14px;
    background: linear-gradient(160deg, #ffd6ec, #ffe3d0 50%, #d9d0ff);
}

.ig-media .f-media-text {
    padding: 26px 20px;
    font-size: 17px;
    font-weight: 600;
}

.ig-media .f-media-link {
    margin: 26px 20px;
}

.ig-media audio {
    padding: 26px 16px;
}

.ig-acts {
    display: flex;
    gap: 16px;
    padding: 10px 0 4px;
    font-size: 22px;
}

.ig-save {
    margin-left: auto;
}

.ig-likes {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.ig-likes b {
    font-weight: 800;
}

.ig-cap {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 4px;
}

.ig-cap b {
    font-weight: 800;
}

.ig-tag {
    color: #00376b;
    margin-left: 4px;
}

.ig-more {
    font-size: 13px;
    color: #737373;
    font-weight: 600;
    margin-top: 4px;
}

.ig-cm {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 4px;
}

.ig-cm b {
    font-weight: 800;
}

.ig-time {
    font-size: 10px;
    color: #737373;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 6px 0 10px;
}

.ig-add {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #efefef;
    font-size: 13px;
    color: #737373;
    font-weight: 600;
}

.ig-add-av {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffe3d0;
    display: grid;
    place-items: center;
    font-size: 15px;
}

.ig-add b {
    margin-left: auto;
    color: #0095f6;
}

.ig-badge {
    margin-top: 14px;
    border: 1px solid #efefef;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: linear-gradient(90deg, #fff, #fff5fa);
}

.ig-badge .ig-ring {
    width: 44px;
    height: 44px;
}

.ig-badge .ig-ring span {
    font-size: 20px;
}

.ig-badge b {
    font-size: 13px;
    font-weight: 800;
    display: block;
}

.ig-badge small {
    font-size: 12px;
    color: #737373;
    font-weight: 600;
}

.ig-back {
    display: block;
    margin-top: 14px;
    text-align: center;
    background: #0095f6;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    padding: 13px;
    font-weight: 800;
    font-size: 14px;
}

/* --- Tinder --------------------------------------------------------------- */
.f-open-td {
    background: linear-gradient(180deg, #1b1018, #2a1220 40%, #3a1228);
    color: #fff;
    overflow-x: hidden;
}

.f-open-td .f-flash {
    background: #fff;
    color: var(--f-ink);
}

.td-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.td-confetti i {
    position: absolute;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    background: #fd5564;
    animation: td-fall 7s linear infinite;
}

.td-confetti i:nth-child(2n) {
    background: #fff;
}

.td-confetti i:nth-child(3n) {
    background: #ff7a59;
}

@keyframes td-fall {
    0% {
        transform: translateY(-30px) rotate(0);
    }

    100% {
        transform: translateY(110vh) rotate(600deg);
    }
}

.td-wrap {
    position: relative;
    padding-top: 14px;
}

.td-close {
    position: absolute;
    left: 14px;
    top: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.td-match {
    text-align: center;
    margin: 44px 0 10px;
}

.td-match-title {
    font-size: 44px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -1px;
    line-height: 1;
    background: linear-gradient(90deg, #fd5564, #ff7a59);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.td-match p {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.td-match p b {
    color: #fff;
}

.td-pair {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 18px 0 8px;
}

.td-c {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 4px solid #fff;
    display: grid;
    place-items: center;
    font-size: 52px;
    background: #ffe3d0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.td-c-match {
    margin-left: -18px;
    background: linear-gradient(160deg, #ffd6ec, #d9d0ff);
}

.td-heart {
    margin: 0 -14px;
    z-index: 1;
    font-size: 30px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.td-drama {
    text-align: center;
    margin: 6px 0 18px;
}

.td-drama span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
}

.td-drama b {
    color: #ff3b5c;
}

.td-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    color: #111;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.td-photo {
    min-height: 260px;
    position: relative;
    background: linear-gradient(160deg, #ffd6ec, #ffe3d0 50%, #d9d0ff);
    display: grid;
    place-items: center;
}

.td-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.td-photo::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
}

.td-photo-emoji {
    font-size: 100px;
    padding: 40px 0;
}

.td-dots {
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
}

.td-dots i {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.5);
}

.td-dots i.on {
    background: #fff;
}

.td-meta {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    color: #fff;
    z-index: 1;
}

.td-meta h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.td-meta h1 span {
    font-weight: 600;
    font-size: 20px;
}

.td-meta small {
    font-size: 12px;
    font-weight: 700;
    display: block;
    margin-top: 2px;
    opacity: 0.95;
}

.td-body {
    padding: 12px 14px 14px;
}

.td-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.td-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.td-chip {
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    padding: 5px 10px;
    background: #f6f6f6;
}

.td-chip-hot {
    border-color: #ff3b5c;
    color: #ff3b5c;
    background: #fff0f2;
}

.td-media {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #f6f6f6;
}

.td-media .f-media-text {
    padding: 12px 14px;
    font-size: 14px;
}

.td-media .f-media-link {
    margin: 12px;
}

.td-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.td-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 14px;
    font-weight: 800;
    font-size: 15px;
}

.td-btn-s {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* --- Doctolib ------------------------------------------------------------- */
.f-open-dl {
    background: #f5f7fa;
}

.dl-top {
    background: #107aca;
    color: #fff;
    margin: 0 -14px;
    padding: 0 16px 22px;
    border-radius: 0 0 22px 22px;
}

.dl-top .f-bar b {
    color: #fff;
}

.dl-ok {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.dl-ok i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: #1a9b5b;
    display: grid;
    place-items: center;
    font-style: normal;
    font-weight: 800;
    font-size: 15px;
}

.dl-ok b {
    font-size: 20px;
    font-weight: 800;
}

.dl-top p {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.9;
    font-weight: 600;
}

.dl-card {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 16px;
    margin-top: 12px;
    padding: 14px;
}

.dl-pr {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dl-av {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eef5fc;
    display: grid;
    place-items: center;
    font-size: 26px;
    flex: none;
}

.dl-pr b {
    font-size: 15px;
    font-weight: 800;
    display: block;
}

.dl-pr small {
    font-size: 12px;
    color: #6b7785;
    font-weight: 600;
    display: block;
    line-height: 1.3;
}

.dl-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-top: 1px solid #e3e8ee;
}

.dl-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.dl-row:last-child {
    padding-bottom: 0;
}

.dl-ic {
    width: 22px;
    text-align: center;
    font-size: 16px;
    flex: none;
}

.dl-row b {
    font-size: 13px;
    font-weight: 800;
    display: block;
}

.dl-row span {
    font-size: 13px;
    color: #6b7785;
    font-weight: 600;
    line-height: 1.35;
}

.dl-tm {
    font-size: 22px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
    color: #1f2b3a !important;
}

.dl-h2 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6b7785;
    margin: 18px 2px 0;
}

.dl-media {
    border-radius: 12px;
    overflow: hidden;
    background: #eef5fc;
}

.dl-media .f-media-text {
    padding: 12px 14px;
    font-size: 14px;
}

.dl-media .f-media-link {
    margin: 12px;
}

.dl-media audio {
    padding: 8px;
}

.dl-cr {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #1f2b3a;
}

.dl-refund {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #107aca;
}

/* Coup de pouce de démonstration : le formulaire ne s'affiche jamais, seul le
   clin d'œil apparaît le temps que la page se recharge. */
.f-cheat {
    display: none;
}

.f-cheat-hint {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 12px);
    background: var(--f-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 40;
}

.f-cheat-hint.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.f-clock-time {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
