/* ============================================================
   AU FIL DES ÂMES — assets/css/profils_voir.css
   Styles spécifiques à la page de consultation d'un profil
   Esthétique revue littéraire — portrait à la manière d'une carte auteur
   ============================================================ */

/* ── Conteneur principal ────────────────────────────────────── */
main.container-voir-profil {
    max-width: 720px;
    margin: 2.4rem auto 4rem;
    padding: 0 1.2rem;
}

/* ════════════════════════════════════════════════════════════
   EN-TÊTE DU PROFIL — carte auteur centrée
   ════════════════════════════════════════════════════════════ */

.profil-entete {
    background: #fff;
    border: 1px solid var(--bordure-douce, #ece8e1);
    border-radius: 12px;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .04);
    padding: 2.6rem 2rem 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

/* Photo de profil ronde, mise en valeur */
.profil-photo {
    margin: 0 auto 1.2rem;
}
.photo-profil-vue {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .1);
    display: block;
    margin: 0 auto;
}
.placeholder-photo-vue {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px dashed #ddd6cc;
    background: #fafaf7;
    margin: 0 auto;
    position: relative;
}
.placeholder-photo-vue::after {
    content: '◯';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d4ccc0;
    font-size: 2.2rem;
}

/* Bloc identité */
.profil-identite {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Pseudo en serif généreuse */
.pseudo-profil {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--texte, #1e1c1a);
    margin: 0 0 .8rem;
    letter-spacing: .01em;
    line-height: 1.1;
}

/* Phrase du moment — comme une exergue */
.phrase-moment {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.2rem;
    color: #5a564f;
    max-width: 480px;
    margin: 0 auto 1.4rem;
    line-height: 1.55;
    position: relative;
    padding: 0 1.5rem;
}
.phrase-moment em {
    font-style: italic;
    font-weight: 400;
}
.phrase-moment::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -.4rem;
    font-size: 2.4rem;
    color: var(--accent, #4a6741);
    opacity: .5;
    line-height: 1;
    font-family: Georgia, serif;
}
.phrase-moment::after {
    content: '”';
    position: absolute;
    right: 0;
    bottom: -.9rem;
    font-size: 2.4rem;
    color: var(--accent, #4a6741);
    opacity: .5;
    line-height: 1;
    font-family: Georgia, serif;
}

/* Liste meta — pilules sobres */
.profil-meta {
    list-style: none;
    margin: .4rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem .65rem;
    font-family: var(--font-sans, 'DM Sans', system-ui, sans-serif);
    font-size: .85rem;
}
.profil-meta li {
    background: #f5f3ef;
    color: #5a564f;
    padding: .3rem .8rem;
    border-radius: 14px;
    border: 1px solid var(--bordure-douce, #ece8e1);
    line-height: 1.4;
}
.profil-meta li.meta-jardin {
    background: transparent;
    border-color: transparent;
    color: #8a857d;
    font-style: italic;
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: .95rem;
    padding: .3rem .4rem;
}
.profil-meta a {
    color: var(--accent, #4a6741);
    text-decoration: none;
    transition: color .15s;
}
.profil-meta a:hover {
    color: #3d5736;
    text-decoration: underline;
}
.profil-meta .ascendant {
    color: #8a857d;
    font-size: .82rem;
}

/* Lien "Modifier mon profil" — discret en haut à droite */
.lien-editer-profil {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-family: var(--font-sans, 'DM Sans', system-ui, sans-serif);
    font-size: .82rem;
    color: var(--accent, #4a6741);
    text-decoration: none;
    padding: .35rem .8rem;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: all .2s;
}
.lien-editer-profil:hover {
    background: #f5f3ef;
    border-color: var(--bordure-douce, #ece8e1);
    color: #3d5736;
}

/* ════════════════════════════════════════════════════════════
   SECTIONS — cartes blanches aérées
   ════════════════════════════════════════════════════════════ */

.section-voir {
    background: #fff;
    border: 1px solid var(--bordure-douce, #ece8e1);
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .03);
    padding: 1.8rem 2rem;
    margin-bottom: 1.6rem;
}

/* ── Galerie des photos de vie ──────────────────────────────── */
.section-photos-vie {
    padding: 1.6rem;
}
.grille-photos-vie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}
.figure-photo-vie {
    margin: 0;
    display: flex;
    flex-direction: column;
}
.photo-vie-vue {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--bordure-douce, #ece8e1);
    background: #fafaf7;
    transition: transform .25s, box-shadow .25s;
}
.figure-photo-vie:hover .photo-vie-vue {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.figure-photo-vie figcaption {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-style: italic;
    font-size: .92rem;
    color: #5a564f;
    margin-top: .55rem;
    line-height: 1.45;
    text-align: center;
    padding: 0 .3rem;
}

/* ── Questions / réponses — interview littéraire ────────────── */
.section-questions {
    padding: 2.2rem 2.4rem;
}
.qa-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--bordure-douce, #ece8e1);
}
.qa-item:first-child {
    padding-top: 0;
}
.qa-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.qa-question {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--accent, #4a6741);
    margin: 0 0 .55rem;
    line-height: 1.5;
    letter-spacing: .005em;
}
.qa-reponse {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.15rem;
    color: var(--texte, #1e1c1a);
    margin: 0;
    line-height: 1.65;
}

/* Invitation à éditer (profil vide) */
.invite-editer {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-style: italic;
    font-size: 1.08rem;
    color: #5a564f;
    text-align: center;
    line-height: 1.55;
    margin: 0;
}
.invite-editer a {
    color: var(--accent, #4a6741);
    font-style: normal;
}

/* ── Lien vers les articles ─────────────────────────────────── */
.section-lien-articles {
    text-align: center;
    padding: 1.4rem 1.6rem;
}
.lien-articles-profil {
    display: inline-block;
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--accent, #4a6741);
    text-decoration: none;
    padding: .4rem .8rem;
    transition: color .2s, transform .2s;
}
.lien-articles-profil:hover {
    color: #3d5736;
    transform: translateX(3px);
}

/* ── Section actions (écrire une lettre) ────────────────────── */
.section-actions {
    text-align: center;
    padding: 2rem;
    background: #fafaf7;
    border-style: dashed;
}
.bouton-lettre {
    display: inline-block;
    background: var(--accent, #4a6741);
    color: #fff;
    border: 1px solid var(--accent, #4a6741);
    padding: .75rem 1.8rem;
    border-radius: 6px;
    font-family: var(--font-sans, 'DM Sans', system-ui, sans-serif);
    font-size: .98rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    letter-spacing: .02em;
}
.bouton-lettre:hover {
    background: #3d5736;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 103, 65, .25);
}
.invite-premium {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-style: italic;
    font-size: 1.05rem;
    color: #5a564f;
    margin: 0;
    line-height: 1.55;
}
.invite-premium a {
    color: var(--accent, #4a6741);
    font-style: normal;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}
.invite-premium a:hover {
    color: #3d5736;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    main.container-voir-profil {
        margin-top: 1.6rem;
        padding: 0 .8rem;
    }
    .profil-entete {
        padding: 2rem 1.2rem 1.6rem;
    }
    .photo-profil-vue,
    .placeholder-photo-vue {
        width: 130px;
        height: 130px;
    }
    .pseudo-profil {
        font-size: 2.1rem;
    }
    .phrase-moment {
        font-size: 1.08rem;
        padding: 0 1.2rem;
    }
    .lien-editer-profil {
        position: static;
        display: inline-block;
        margin-top: 1rem;
    }
    .section-voir {
        padding: 1.4rem 1.2rem;
    }
    .section-questions {
        padding: 1.6rem 1.4rem;
    }
    .qa-reponse {
        font-size: 1.08rem;
    }
}
/* ============================================================
   INVITATION VISITEUR — non connectés uniquement
   À terme, à globaliser dans style.css (déjà utilisé dans
   articles_lire.css depuis session 13)
   ============================================================ */
.invitation-visiteur {
    margin-top: 3rem;
    padding: 2rem 1.5rem;
    background: var(--accent-tres-doux, #eaeee5);
    border-radius: 12px;
    text-align: center;
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
}

.invitation-titre {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent, #4a6741);
    margin: 0 0 1rem;
}

.invitation-texte {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--texte-doux, #6c6660);
    margin: 0 0 1.5rem;
    max-width: 540px;
    margin-inline: auto;
}

.invitation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn-invitation-principal {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--accent, #4a6741);
    color: #ffffff;
    font-family: var(--font-sans, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.btn-invitation-principal:hover {
    background: #3a5232;
}

.btn-invitation-discret {
    color: var(--texte-doux, #6c6660);
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-style: italic;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-invitation-discret:hover {
    color: var(--accent, #4a6741);
}
/* ─── Réponse avec image (questions à choix illustrées) ─────────────── */
.qa-reponse-avec-image {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.qa-reponse-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--bordure-douce, rgba(30, 28, 26, 0.1));
    flex-shrink: 0;
}

.qa-reponse-avec-image .qa-reponse {
    margin: 0;
    flex: 1;
    min-width: 0;
}

/* Sur petits écrans, on garde l'image à côté mais un peu plus petite */
@media (max-width: 600px) {
    .qa-reponse-image {
        width: 70px;
        height: 70px;
    }
    .qa-reponse-avec-image {
        gap: 0.9rem;
    }
}