/*
 * Fiche publique d'un pet-sitter (templates/sitter_detail.html, README-CLAUDE §64). Règle commune d'Animoo :
 * tous les conteneurs sont arrondis (16 px) avec
 * une ombre douce, jamais de bordure grise ni de tableau « austère ». Couleurs de l'univers (--u-accent, --u-fonce,
 * --u-clair, définies par base.html) ; Bootstrap 5.1 reste la base.
 */
.fiche-profil {
    --fp-rayon: 16px;
    --fp-ombre: 0 10px 25px rgba(0, 0, 0, .05);
    --fp-ombre-forte: 0 14px 32px rgba(0, 0, 0, .09);
    --fp-texte: #4f5763;
    --fp-titre: #2f2a28;
    --fp-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    color: var(--fp-texte);
}

/* --- Conteneurs harmonisés : même arrondi, même ombre, même marge intérieure --- */
.fp-boite,
.fiche-profil .bloc-fiche,
.fiche-profil .bg-white.rounded {
    background: #fff; border: 0; border-radius: var(--fp-rayon) !important; box-shadow: var(--fp-ombre);
    padding: 1.5rem;
}
.fiche-profil .vitrine-entete { border-radius: var(--fp-rayon); box-shadow: var(--fp-ombre); }

/* --- Titres de section : pastille ronde avec icône, liseré sous le titre --- */
.fp-titre,
.fiche-profil section > h2.h5 {
    display: flex; align-items: center; gap: .6rem; font-family: var(--fp-serif); font-weight: 700;
    font-size: 1.2rem; color: var(--fp-titre); margin: 0 0 1rem; padding-bottom: .6rem;
    border-bottom: 1px solid #eee5dc;
}
.fp-boite > .fp-titre { font-size: 1.05rem; }
.fp-pastille-icone {
    width: 2.1rem; height: 2.1rem; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; background: #fff; color: var(--u-accent, #b9531f); font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .07);
}
/* Dans une boîte blanche : pastille colorée pâle, sans ombre */
.fp-boite .fp-pastille-icone, .fp-tarif .fp-pastille-icone { background: var(--u-clair, #fdf1e9); box-shadow: none; }

/* --- En-tête : bannière aux couleurs de l'univers, carte d'identité qui la chevauche --- */
.fp-entete { position: relative; border-radius: var(--fp-rayon); overflow: hidden; background: #fff; box-shadow: var(--fp-ombre); margin-bottom: 1.75rem; }
.fp-banniere {
    height: 130px;
    background:
        radial-gradient(circle at 15% 120%, rgba(255, 255, 255, .18) 0 22%, transparent 23%),
        radial-gradient(circle at 85% -30%, rgba(255, 255, 255, .14) 0 28%, transparent 29%),
        linear-gradient(120deg, var(--u-accent, #b9531f), var(--u-fonce, #5c2410));
}
.fp-identite { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem 1.5rem; padding: 0 1.75rem 1.5rem; }
.fp-avatar {
    width: 136px; height: 136px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--u-clair, #fdf1e9);
    border: 5px solid #fff; box-shadow: var(--fp-ombre-forte); display: flex; align-items: center; justify-content: center;
    font-size: 3rem; font-weight: 700; color: var(--u-fonce, #5c2410);
    margin-top: -68px;   /* Seule la photo chevauche la bannière ; le nom reste sur fond blanc, lisible */
}
.fp-infos { flex: 1 1 260px; min-width: 0; padding-top: 1rem; }
.fp-nom { font-family: var(--fp-serif); font-weight: 700; color: var(--fp-titre); font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.15; margin: 0 0 .35rem; }
.fp-nom .bi-patch-check-fill { font-size: .7em; vertical-align: .15em; }
.fp-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .92rem; margin-bottom: .75rem; }
.fp-meta i { color: var(--u-accent, #b9531f); margin-right: .3rem; }
.fp-meta a { text-decoration: none; color: inherit; }
.fp-badges { display: flex; flex-wrap: wrap; gap: .45rem; }
.fp-badge {
    display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--fp-titre);
    background: #faf6f1; border-radius: 2rem; padding: .3rem .8rem .3rem .35rem;
}
.fp-badge i {
    width: 1.55rem; height: 1.55rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem; color: #fff; background: var(--u-accent, #b9531f);
}
.fp-badge.vert i { background: #1a7f4e; }
.fp-badge.or i { background: #c9922b; }
.fp-badge.bleu i { background: #2f6fb3; }
.fp-actions { padding-top: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.fp-cta {
    border-radius: 2rem; padding: .7rem 1.5rem; font-weight: 600; box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
    white-space: normal;
}

/* --- Tarifs : une carte par prestation, prix en gros chiffres --- */
.fp-tarifs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.fp-tarif {
    background: #fff; border-radius: var(--fp-rayon); box-shadow: var(--fp-ombre); padding: 1.25rem 1.1rem;
    display: flex; flex-direction: column; gap: .35rem; transition: transform .2s, box-shadow .2s;
}
.fp-tarif:hover { transform: translateY(-3px); box-shadow: var(--fp-ombre-forte); }
.fp-tarif .fp-pastille-icone { width: 2.6rem; height: 2.6rem; font-size: 1.2rem; margin-bottom: .25rem; }
.fp-tarif-nom { font-weight: 600; color: var(--fp-titre); font-size: .95rem; line-height: 1.3; flex-grow: 1; }
.fp-prix { font-size: 1.9rem; font-weight: 800; color: var(--u-fonce, #5c2410); line-height: 1.1; }
.fp-prix.sur-demande { font-size: 1.15rem; font-weight: 700; }
.fp-unite { font-size: .82rem; color: #8a929c; }
.fp-tarif-precision { font-size: .82rem; line-height: 1.4; color: var(--fp-texte); border-top: 1px dashed #eee5dc; padding-top: .45rem; margin-top: .3rem; }
.fp-notes-tarifs { font-size: .88rem; margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.fp-notes-tarifs i { color: var(--u-accent, #b9531f); margin-right: .3rem; }

/* --- Pastilles (disponibilités, animaux, paiements) --- */
.fp-puces { display: flex; flex-wrap: wrap; gap: .45rem; }
.fp-puce { font-size: .85rem; font-weight: 500; color: var(--fp-titre); background: var(--u-clair, #fdf1e9); border-radius: 2rem; padding: .3rem .85rem; }
.fp-liste { list-style: none; padding: 0; margin: 0 0 .9rem; font-size: .95rem; }
.fp-liste li { display: flex; gap: .55rem; padding: .25rem 0; }
.fp-liste i { color: var(--u-accent, #b9531f); }

/* --- À propos : texte chaleureux et aéré --- */
.fp-apropos .texte-riche { font-family: var(--fp-serif); font-size: 1.12rem; line-height: 1.7; color: #3f3a37; }
.fp-apropos .texte-riche p { margin-bottom: 1rem; }

/* --- Galerie du pet-sitter (5 photos au plus) --- */
.fp-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.fp-galerie-photo { position: relative; display: block; border-radius: var(--fp-rayon); overflow: hidden; box-shadow: var(--fp-ombre); aspect-ratio: 4 / 3; }
.fp-galerie-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.fp-galerie-photo:hover img { transform: scale(1.04); }
.fp-galerie-photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: .4rem .6rem; font-size: .8rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }

/* --- Ses animaux : cartes rondes --- */
.fp-animaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.fp-animal { background: #fff; border-radius: var(--fp-rayon); box-shadow: var(--fp-ombre); padding: 1.1rem .8rem; text-align: center; }
.fp-animal img, .fp-animal-vide { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.2rem; background: var(--u-clair, #fdf1e9); box-shadow: 0 6px 14px rgba(0, 0, 0, .08); margin-bottom: .6rem; }
.fp-animal-nom { font-family: var(--fp-serif); font-weight: 700; font-size: 1.1rem; color: var(--fp-titre); }
.fp-animal-desc { font-size: .82rem; color: #8a929c; }

/* --- Parcours (expériences) : liste à puces reliées --- */
.fp-parcours { list-style: none; padding: 0 0 0 1.1rem; margin: 1rem 0 0; border-left: 2px solid var(--u-clair, #fdf1e9); }
.fp-parcours li { position: relative; padding: 0 0 .9rem .6rem; }
.fp-parcours li::before { content: ""; position: absolute; left: -1.55rem; top: .35rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--u-accent, #b9531f); box-shadow: 0 0 0 3px #fff; }
.fp-parcours-titre { font-weight: 600; color: var(--fp-titre); font-family: system-ui, sans-serif; font-size: .98rem; }
.fp-parcours-periode { font-weight: 500; font-size: .82rem; color: #fff; background: var(--u-accent, #b9531f); border-radius: 2rem; padding: .05rem .55rem; margin-left: .35rem; }
.fp-parcours-texte { font-size: .9rem; font-family: system-ui, sans-serif; line-height: 1.5; color: var(--fp-texte); }

/* --- Conseil final --- */
.fp-conseil { display: flex; gap: .9rem; align-items: flex-start; background: #faf6f0; border-radius: var(--fp-rayon); padding: 1.25rem 1.5rem; font-size: .92rem; }
.fp-conseil .fp-pastille-icone { background: #fff; }

@media (max-width: 575.98px) {
    .fp-identite { flex-direction: column; align-items: center; text-align: center; padding: 0 1rem 1.25rem; }
    .fp-infos { padding-top: 0; flex: 0 0 auto; width: 100%; }   /* En colonne, la base de 260 px devenait une hauteur */
    .fp-actions { padding-top: .5rem; }
    .fp-meta, .fp-badges { justify-content: center; }
    .fp-actions { align-self: stretch; }
    .fp-boite, .fiche-profil .bloc-fiche, .fiche-profil .bg-white.rounded { padding: 1.15rem; }
    .fp-tarifs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .fp-prix { font-size: 1.5rem; }
}
