/* Onglet Communauté : articles des voyageurs */
.comm-barre { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-md); flex-wrap: wrap; }
.comm-recherche { flex: 1 1 280px; max-width: 460px; gap: var(--espace-xs); }
.comm-recherche .icon { flex: none; color: var(--color-texte-secondaire); }
.comm-cats { display: flex; gap: var(--espace-xs); flex-wrap: wrap; }
.comm-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--espace-lg); }
.comm-carte { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.comm-carte:hover { box-shadow: var(--ombre-carte); transform: translateY(-2px); }
.comm-carte__ouvrir { display: flex; flex-direction: column; flex: 1; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.comm-carte__ouvrir:focus-visible { outline: 0; box-shadow: inset var(--anneau-focus); }
.comm-couv { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--color-fond-marque-tres-leger); overflow: hidden; }
.comm-couv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comm-couv__vide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--color-fond-marque); background: var(--color-fond-accent-lavande); }
.comm-couv__tag { position: absolute; left: var(--espace-sm); top: var(--espace-sm); }
.comm-carte__corps { display: flex; flex-direction: column; gap: var(--espace-xs); padding: var(--espace-md) var(--espace-md) var(--espace-sm); }
.comm-carte__titre { font: 500 20px/1.25 var(--font-titre); overflow-wrap: anywhere; }
.comm-carte__extrait { font: 400 14px/1.5 var(--font-corps); color: var(--color-texte-secondaire); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.comm-carte__pied { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-sm); padding: var(--espace-sm) var(--espace-md) var(--espace-md); border-top: 1px solid var(--color-bordure-subtile); margin-top: auto; }
.comm-auteur { display: inline-flex; align-items: center; gap: var(--espace-xs); min-width: 0; }
.comm-auteur .lien-profil { display: inline-flex; }
.comm-auteur .avatar { border-radius: 50%; }
.comm-auteur__txt { display: flex; flex-direction: column; min-width: 0; }
.comm-auteur__txt b { font: 500 14px/1.2 var(--font-titre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-auteur__txt small { font: 400 12px/1.3 var(--font-corps); color: var(--color-texte-secondaire); }
.lien-profil:hover b { text-decoration: underline; }
.comm-stats { display: inline-flex; align-items: center; gap: var(--espace-xs); flex: none; }
.comm-like, .comm-stat { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 var(--espace-xs); border-radius: var(--rayon-pilule); font: 500 13px/1 var(--font-corps); color: var(--color-texte-secondaire); background: none; border: 0; }
.comm-like { cursor: pointer; }
.comm-like:hover { background: var(--color-fond-marque-tres-leger); }
.comm-like:focus-visible { outline: 0; box-shadow: var(--anneau-focus); }
.comm-like .icon, .comm-stat .icon { width: 18px; height: 18px; }
.comm-like--actif { color: var(--color-fond-marque); }
.comm-like--actif .icon { fill: currentColor; }
/* lecture d'un article */
.comm-lecture { display: flex; flex-direction: column; gap: var(--espace-md); }
.comm-lecture__couv { width: 100%; max-height: 280px; object-fit: cover; border-radius: var(--rayon-md); }
.comm-lecture__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-sm); flex-wrap: wrap; }
.comm-lecture__tags { display: inline-flex; gap: var(--espace-xs); flex-wrap: wrap; }
.comm-lecture__texte { display: flex; flex-direction: column; gap: var(--espace-sm); font: 400 16px/1.7 var(--font-corps); overflow-wrap: anywhere; }
.comm-lecture__texte p { margin: 0; }
.comm-lecture__actions { display: flex; gap: var(--espace-xs); flex-wrap: wrap; }
.comm-coms { display: flex; flex-direction: column; gap: var(--espace-md); }
.comm-com { display: flex; gap: var(--espace-sm); align-items: flex-start; }
.comm-com__corps { flex: 1; min-width: 0; }
.comm-com__haut { display: flex; align-items: center; gap: var(--espace-xs); }
.comm-com__haut b { font: 500 14px/1.2 var(--font-titre); }
.comm-com__haut small { color: var(--color-texte-secondaire); font: 400 12px/1.3 var(--font-corps); }
.comm-com__suppr { margin-left: auto; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.comm-com__corps p { margin: 2px 0 0; font: 400 15px/1.5 var(--font-corps); overflow-wrap: anywhere; }
.comm-zone-texte { height: auto; padding: var(--espace-sm) var(--espace-md); border-radius: var(--rayon-lg); }
.comm-zone-texte textarea { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; resize: vertical; }
.dialogue input[type='file'] { align-self: center; font: 400 14px/1.4 var(--font-corps); }
.dialogue input[type='file']::file-selector-button { margin-right: var(--espace-sm); height: 32px; padding: 0 var(--espace-md); border: 0; border-radius: var(--rayon-pilule); background: var(--color-fond-marque-subtil); color: var(--color-texte-principal); font: 500 13px/1 var(--font-corps); cursor: pointer; }
/* fiche d'un voyageur : ses articles */
.comm-liste-profil { display: flex; flex-direction: column; gap: var(--espace-md); }
.comm-ligne { display: flex; align-items: center; gap: var(--espace-md); padding-top: var(--espace-md); border-top: 1px solid var(--color-bordure-subtile); color: inherit; text-decoration: none; }
.comm-ligne:first-child { border-top: 0; padding-top: 0; }
.comm-ligne img, .comm-ligne .comm-ligne__vide { width: 96px; height: 72px; flex: none; border-radius: var(--rayon-md); object-fit: cover; }
.comm-ligne__vide { display: flex; align-items: center; justify-content: center; background: var(--color-fond-accent-lavande); color: var(--color-fond-marque); }
.comm-ligne div { display: flex; flex-direction: column; min-width: 0; }
.comm-ligne small { color: var(--color-texte-secondaire); }
@media (max-width: 767px) {
    .comm-grille { grid-template-columns: 1fr; gap: var(--espace-md); }
    .comm-barre { flex-direction: column; align-items: stretch; }
    .comm-recherche { max-width: none; flex-basis: auto; }
    .comm-barre .onglets { align-self: flex-start; max-width: 100%; overflow-x: auto; }
    .comm-barre .onglets button { padding: 0 var(--espace-md); font-size: 14px; white-space: nowrap; }
}
/* page de rédaction d'un article */
.ecr { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--espace-lg); align-items: start; }
.ecr__editeur { overflow: hidden; }
.ecr__cote { display: flex; flex-direction: column; gap: var(--espace-md); position: sticky; top: calc(var(--topbar-h, 80px) + var(--espace-md)); }
.ecr-couv { position: relative; display: block; aspect-ratio: 21 / 8; background: var(--color-fond-accent-lavande); cursor: pointer; overflow: hidden; border-bottom: 1px solid var(--color-bordure-subtile); }
.ecr-couv:focus-visible { outline: 0; box-shadow: inset var(--anneau-focus); }
.ecr-couv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecr-couv__vide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--espace-2xs); padding: var(--espace-md); text-align: center; color: var(--color-fond-marque); border: 2px dashed rgba(79, 32, 62, 0.25); margin: var(--espace-md); border-radius: var(--rayon-md); }
.ecr-couv__vide b { font: 500 18px/1.3 var(--font-titre); }
.ecr-couv__vide small { font: 400 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.ecr-couv:hover .ecr-couv__vide, .ecr-couv--survol .ecr-couv__vide { background: rgba(255, 255, 255, 0.45); border-color: var(--color-fond-marque); }
.ecr-couv__actions { position: absolute; right: var(--espace-sm); bottom: var(--espace-sm); display: flex; gap: var(--espace-xs); }
.ecr__champs { display: flex; flex-direction: column; gap: var(--espace-sm); padding: var(--espace-lg); }
.ecr-titre, .ecr-resume, .ecr-contenu { width: 100%; border: 0; outline: 0; background: transparent; color: var(--color-texte-principal); resize: none; padding: 0; }
.ecr-titre { font: 500 36px/1.2 var(--font-titre); overflow: hidden; }
.ecr-resume { font: 400 18px/1.5 var(--font-corps); color: var(--color-texte-secondaire); }
.ecr-contenu { font: 400 17px/1.75 var(--font-corps); min-height: 340px; }
.ecr-titre::placeholder, .ecr-resume::placeholder, .ecr-contenu::placeholder { color: var(--color-texte-placeholder); }
.ecr-sep { width: 100%; border: 0; border-top: 1px solid var(--color-bordure-subtile); margin: var(--espace-xs) 0; }
.ecr .form-erreur { margin: 0 var(--espace-lg) var(--espace-lg); padding: 8px 12px; border-radius: 16px; background: rgba(179, 38, 30, 0.08); color: #b3261e; font: 500 14px/1.3 var(--font-corps); }
.ecr-stats { display: flex; justify-content: space-between; align-items: center; gap: var(--espace-sm); font: 400 14px/1.3 var(--font-corps); }
.ecr-stats span { display: inline-flex; align-items: center; gap: 4px; }
.ecr-stats .icon { width: 16px; height: 16px; }
.ecr-conseils { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: var(--espace-xs); font: 400 14px/1.5 var(--font-corps); color: var(--color-texte-secondaire); }
@media (max-width: 1180px) {
    .ecr { grid-template-columns: 1fr; }
    .ecr__cote { position: static; }
}
@media (max-width: 767px) {
    .ecr-couv { aspect-ratio: 16 / 9; }
    .ecr__champs { padding: var(--espace-md); }
    .ecr-titre { font-size: 28px; }
    .ecr-contenu { min-height: 260px; }
}
/* page de lecture d'un article */
#page-article { align-items: stretch; }
#page-article > .btn-retour { align-self: center !important; width: min(100%, 1120px); }
.art-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--espace-xl); align-items: start; width: min(100%, 1120px); margin: 0 auto; }
.art { display: flex; flex-direction: column; gap: var(--espace-lg); min-width: 0; }
.art__couv { width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--rayon-lg); }
.art__entete { display: flex; flex-direction: column; gap: var(--espace-sm); }
.art__tags { display: flex; gap: var(--espace-xs); flex-wrap: wrap; }
.art__titre { margin: 0; overflow-wrap: anywhere; }
.art__resume { margin: 0; font: 400 20px/1.5 var(--font-corps); color: var(--color-texte-secondaire); }
.art__auteur { padding: var(--espace-sm) 0; border-top: 1px solid var(--color-bordure-subtile); border-bottom: 1px solid var(--color-bordure-subtile); }
.art__texte { font-size: 18px; line-height: 1.8; gap: var(--espace-md); }
.art__actions { display: flex; gap: var(--espace-xs); flex-wrap: wrap; }
.art__coms { position: sticky; top: calc(var(--topbar-h, 80px) + var(--espace-md)); max-height: calc(100dvh - var(--topbar-h, 80px) - 2 * var(--espace-md)); overflow-y: auto; gap: var(--espace-sm); padding: var(--espace-md); }
.art__coms .comm-coms { gap: var(--espace-sm); }
.art__coms .comm-com__corps p { font-size: 14px; }
@media (max-width: 1180px) {
    .art-cols { grid-template-columns: 1fr; }
    .art { max-width: none; }
    .art__coms { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 767px) {
    .art__couv { max-height: 240px; border-radius: var(--rayon-md); }
    .art__resume { font-size: 17px; }
    .art__texte { font-size: 16px; }
}

.comm-plus { display: flex; justify-content: center; }
.comm-plus[hidden] { display: none; }
