/*
 * Lovix — design v3, inspiré des applications de rencontre (exemple fourni : Luvelea).
 * Fond pêche clair, corail en couleur principale, photos plein cadre très arrondies, pilules.
 * Titres en Poppins, texte en Inter, hébergés sur le site. Pensé d'abord pour le téléphone.
 */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --fond: #fff7f3;
  --fond-2: #ffeee6;
  --surface: #ffffff;
  --corail: #f07f63;
  --corail-fonce: #d9614a;
  --peche: #ffcfbf;
  --peche-claire: #ffe7dd;
  --texte: #2c2124;
  --texte-doux: #8b7b77;
  --bord: #f5e0d7;
  --erreur: #c0392b;
  --degrade: linear-gradient(160deg, #ef7a5e 0%, #f59c84 55%, #ffd1c1 100%);
  --degrade-bouton: linear-gradient(135deg, #ef7a5e 0%, #f7a088 100%);
  --ombre: 0 2px 4px rgba(240, 127, 99, .05), 0 10px 30px rgba(120, 60, 45, .08);
  --ombre-forte: 0 18px 40px rgba(217, 97, 74, .25);
  --rayon: 24px;
  --rayon-moyen: 18px;
  --rayon-petit: 12px;
  --largeur: 1200px;
  --titres: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--police); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--corail-fonce); text-underline-offset: 3px; }
a:hover { color: var(--corail); }
:focus-visible { outline: 3px solid var(--corail); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--titres); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }

/* --- En-tête --------------------------------------------------------- */

.entete { background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--bord); }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.logo-symbole { width: 44px; height: 44px; flex: none; display: block; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--texte); text-decoration: none; }
.logo:hover { color: var(--texte); }
.logo-marque {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px;
  background: var(--degrade-bouton); color: #fff; font-family: var(--titres); font-weight: 700; font-size: .95rem;
  box-shadow: 0 6px 16px rgba(240, 127, 99, .35);
}
.logo-nom { font-family: var(--titres); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.logo-nom em { font-style: normal; color: var(--corail); }
.navigation { display: none; gap: 28px; align-items: center; }
.navigation a { color: var(--texte); text-decoration: none; font-family: var(--titres); font-weight: 500; font-size: .95rem; }
.navigation a:hover, .navigation a[aria-current="page"] { color: var(--corail); }
.entete-actions { display: flex; align-items: center; gap: 10px; }
.entete-recherche { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--corail-fonce); background: var(--peche-claire); }
.entete-recherche:hover { color: var(--corail-fonce); background: var(--peche); }
.entete-recherche svg { width: 20px; height: 20px; }
.entete .bouton-depot { display: none; }

/* --- Barre d'onglets (téléphone) -------------------------------------- */

.onglets {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  box-shadow: 0 -6px 24px rgba(120, 60, 45, .08); border-radius: 22px 22px 0 0;
}
.onglets a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: #b9a8a3; text-decoration: none; font-size: .68rem; font-weight: 600; font-family: var(--titres); }
.onglets a[aria-current="page"], .onglets a:hover { color: var(--corail); }
.onglets svg { width: 23px; height: 23px; }
.onglets .onglet-depot .rond {
  display: grid; place-items: center; width: 52px; height: 52px; margin-top: -24px; border-radius: 50%;
  background: var(--degrade-bouton); color: #fff; box-shadow: var(--ombre-forte); border: 4px solid #fff;
}
.onglets .onglet-depot svg { width: 24px; height: 24px; }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

/* --- Boutons ------------------------------------------------------------ */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-height: 48px; padding: 11px 24px; border-radius: 999px;
  border: 1.5px solid var(--corail); background: var(--surface); color: var(--corail-fonce);
  font-family: var(--titres); font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.bouton svg { width: 18px; height: 18px; flex: none; }
.bouton:hover { background: var(--peche-claire); color: var(--corail-fonce); }
.bouton:active { transform: translateY(1px); }
.bouton-principal { background: var(--degrade-bouton); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(240, 127, 99, .35); }
.bouton-principal:hover { color: #fff; background: var(--degrade-bouton); box-shadow: 0 10px 26px rgba(240, 127, 99, .45); }
.bouton-clair { background: rgba(255, 255, 255, .9); color: var(--corail-fonce); border-color: transparent; }
.bouton-clair:hover { background: #fff; color: var(--corail-fonce); }
.bouton-verre { background: rgba(255, 255, 255, .28); color: #fff; border-color: rgba(255, 255, 255, .55); }
.bouton-verre:hover { background: rgba(255, 255, 255, .4); color: #fff; }
.bouton-petit { min-height: 40px; padding: 8px 18px; font-size: .88rem; }
.bouton-large { width: 100%; }
.bouton-danger { background: var(--erreur); border-color: var(--erreur); color: #fff; }
.bouton-danger:hover { background: #a03024; color: #fff; }

/* --- Bandeau d'accueil -------------------------------------------------- */

/* Halo dessiné en arrière-plan (et non par un pseudo-élément débordant) : le bandeau n'a pas besoin d'« overflow: hidden »,
   et la liste de suggestions de la recherche peut en sortir. */
.bandeau { position: relative; z-index: 5; color: #fff; padding: 34px 0 52px; border-radius: 0 0 34px 34px;
  background: radial-gradient(circle 300px at calc(100% + 70px) -40px, rgba(255, 255, 255, .35), transparent), var(--degrade); }
.bandeau .conteneur { position: relative; z-index: 1; }
.bandeau-grille { display: grid; gap: 32px; align-items: center; }
.bandeau h1 { font-size: 2.15rem; color: #fff; margin-bottom: .35em; max-width: 13em; }
.surligne { background: rgba(255, 255, 255, .25); border-radius: 14px; padding: 0 .25em; white-space: nowrap; }
.bandeau p.chapeau { font-size: 1.02rem; color: rgba(255, 255, 255, .95); max-width: 34em; margin-bottom: 1.4em; }

.apercu-cartes { display: none; position: relative; height: 400px; }
.apercu-cartes .carte { position: absolute; width: 230px; padding: 8px; box-shadow: 0 26px 50px rgba(160, 70, 50, .35); }
.apercu-cartes .carte .visuel { border-radius: 18px; }
.apercu-cartes .carte:nth-child(1) { left: 0; top: 46px; transform: rotate(-8deg); }
.apercu-cartes .carte:nth-child(2) { left: 150px; top: 0; z-index: 2; transform: rotate(2deg); }
.apercu-cartes .carte:nth-child(3) { left: 300px; top: 60px; transform: rotate(9deg); }
.apercu-cartes .carte:hover { transform: translateY(-6px) rotate(0); z-index: 3; }
.apercu-cartes .carte-corps { display: none; }

.bandeau-page { background: var(--degrade); color: #fff; padding: 24px 0 30px; border-radius: 0 0 30px 30px; }
.bandeau-page h1 { color: #fff; font-size: 1.7rem; margin-bottom: .25em; }
.bandeau-page p { color: rgba(255, 255, 255, .95); margin: 0; }
.bandeau-page .fil-ariane ol { color: rgba(255, 255, 255, .85); }
.bandeau-page .fil-ariane a, .bandeau-page a { color: #fff; }

/* --- Recherche ---------------------------------------------------------- */

.recherche { margin: 0; position: relative; }
.recherche label { display: block; font-family: var(--titres); font-weight: 600; margin-bottom: 8px; font-size: .9rem; }
.recherche-pilule { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 18px; background: #fff; border-radius: 999px; box-shadow: var(--ombre-forte); max-width: 560px; }
.recherche-pilule svg { flex: none; width: 20px; height: 20px; color: var(--corail); }
.recherche-pilule input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--texte); padding: 8px 4px; min-height: 0; box-shadow: none; }
.recherche-pilule input[type="search"]:focus { box-shadow: none; background: transparent; }
.recherche-pilule input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
/* Suggestions de villes (assets/js/recherche.js) */
.suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; max-width: 560px; max-height: 60vh; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 22px; box-shadow: 0 18px 40px rgba(120, 50, 30, .22); }
.suggestions a { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 11px 14px; border-radius: 16px; color: var(--texte); text-decoration: none; }
.suggestions [aria-selected="true"] a, .suggestions a:hover { background: var(--peche-claire); }
.suggestion-nom { font-family: var(--titres); font-weight: 600; }
.suggestion-detail { grid-column: 1; font-size: .82rem; color: var(--texte-doux); }
.suggestion-nombre { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .8rem; font-weight: 600; color: var(--corail-fonce); white-space: nowrap; }
.suggestion-nombre.sans-annonce { font-weight: 400; color: var(--texte-doux); }
.recherche-pilule .bouton { min-height: 44px; padding: 10px 20px; }
.zone-recherche { background: var(--surface); border-radius: var(--rayon); padding: 18px; box-shadow: var(--ombre); margin-bottom: 20px; }
.zone-recherche .recherche-pilule { box-shadow: none; border: 1.5px solid var(--bord); max-width: none; }

/* --- Sections et compteurs ---------------------------------------------- */

.section { padding: 30px 0 6px; }
.section-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-tete h2 { margin: 0; }
.section-tete a { font-family: var(--titres); font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--corail); }
.compteurs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.compteurs li { padding: 6px 14px; border-radius: 999px; background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--texte-doux); box-shadow: var(--ombre); }
.compteurs strong { color: var(--corail-fonce); }
.bandeau-page .compteurs { margin: 14px 0 0; }
.bandeau-page .compteurs li { background: rgba(255, 255, 255, .25); color: #fff; box-shadow: none; }
.bandeau-page .compteurs strong { color: #fff; }

/* --- Cartes d'annonce (photo d'abord) ------------------------------------ */

.grille { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.carte { background: var(--surface); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); transition: transform .15s ease, box-shadow .15s ease; }
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.carte-lien { display: block; color: inherit; text-decoration: none; }
.carte-lien:hover { color: inherit; }
.visuel { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--peche); }
.visuel img { width: 100%; height: 100%; object-fit: cover; }
.visuel-initiale {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--titres); font-weight: 700; font-size: 4rem; color: rgba(255, 255, 255, .95);
}
.visuel-initiale::before {
  content: ""; position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .2); box-shadow: 0 0 0 18px rgba(255, 255, 255, .08);
}
.visuel-initiale span { position: relative; }
.teinte-0 { background: linear-gradient(160deg, #ef7a5e, #ffcfbf); }
.teinte-1 { background: linear-gradient(160deg, #e86f5a, #f9b29c); }
.teinte-2 { background: linear-gradient(160deg, #f5937a, #ffe0d4); }
.teinte-3 { background: linear-gradient(160deg, #d9614a, #f6a08a); }
.teinte-4 { background: linear-gradient(160deg, #f2a48c, #ffd9cc); }
.teinte-5 { background: linear-gradient(160deg, #e26d58, #f4b8a5); }
.surimpression {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; color: #fff;
  background: linear-gradient(to top, rgba(60, 25, 20, .62), rgba(60, 25, 20, 0));
}
.surimpression strong { display: block; font-family: var(--titres); font-size: 1rem; font-weight: 600; line-height: 1.25; }
.surimpression span { display: flex; align-items: center; gap: 4px; font-size: .78rem; color: rgba(255, 255, 255, .92); }
.surimpression svg { width: 13px; height: 13px; flex: none; }
/* Sans photo, le dégradé corail porte déjà le texte : un voile plus léger et chaud. */
.visuel[class*="teinte-"] .surimpression { background: linear-gradient(to top, rgba(205, 90, 64, .5), rgba(205, 90, 64, 0)); }
.pastille {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 999px; font-family: var(--titres); font-size: .68rem; font-weight: 600;
  background: rgba(255, 255, 255, .92); color: var(--corail-fonce);
}
.pastille-exemple { background: #fff3d6; color: #8a5a00; }
.pastille-test { background: rgba(255, 255, 255, .85); color: #6b5b57; }
.carte-corps { padding: 10px 14px 14px; }
.carte-titre { margin: 0 0 4px; font-size: .9rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carte-date { margin: 0; font-size: .76rem; color: var(--texte-doux); }

/* --- Pilules (lieux) ------------------------------------------------------ */

.pilules { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pilules a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--surface); color: var(--texte); text-decoration: none; font-family: var(--titres); font-weight: 500; font-size: .9rem; box-shadow: var(--ombre);
}
.pilules a:hover { color: var(--corail-fonce); background: var(--peche-claire); }
.pilules .nombre { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--peche-claire); color: var(--corail-fonce); font-size: .76rem; font-weight: 600; }
.pilules .distance { color: var(--texte-doux); font-size: .78rem; font-weight: 400; }

/* --- Appel à déposer ------------------------------------------------------ */

.appel { display: grid; gap: 16px; align-items: center; margin: 34px 0; padding: 24px; border-radius: var(--rayon); color: #fff; background: var(--degrade); box-shadow: var(--ombre-forte); }
.appel h2 { color: #fff; margin: 0 0 .2em; }
.appel p { margin: 0; color: rgba(255, 255, 255, .95); }

/* --- Fil d'Ariane, pagination ------------------------------------------- */

.fil-ariane ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 10px; padding: 0; font-size: .82rem; color: var(--texte-doux); }
.fil-ariane li + li::before { content: "›"; margin-right: 4px; opacity: .7; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px 0 8px; color: var(--texte-doux); font-weight: 600; }

/* --- Contenu générique ---------------------------------------------------- */

.page { padding: 24px 16px 8px; }
.carte-contenu { background: var(--surface); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); margin-bottom: 18px; }
.intro { color: var(--texte-doux); }
.vide { color: var(--texte-doux); padding: 26px; text-align: center; background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); }
.a-venir { background: var(--peche-claire); border-radius: var(--rayon-petit); padding: 12px 16px; color: var(--corail-fonce); }
.message-erreur { border-left: 4px solid var(--erreur); background: #fdecea; color: var(--erreur); padding: 12px 14px; border-radius: var(--rayon-petit); font-weight: 600; }
.etapes { padding-left: 1.3em; }
.etapes li { margin-bottom: 8px; }
.en-ligne { display: inline; margin: 0; }

/* --- Fiche d'annonce (façon profil) ---------------------------------------- */

.fiche { display: grid; gap: 18px; padding: 18px 0 8px; }
.profil { position: relative; overflow: hidden; border-radius: var(--rayon); background: var(--degrade); color: #fff; padding: 20px; box-shadow: var(--ombre-forte); }
.profil-tete { display: flex; gap: 16px; align-items: center; }
.avatar { flex: none; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255, 255, 255, .85); background: var(--peche); }
.avatar .visuel { aspect-ratio: 1; height: 100%; }
.avatar .visuel-initiale { font-size: 2.2rem; }
.avatar .visuel-initiale::before { display: none; }
.profil-nom { font-family: var(--titres); font-weight: 700; font-size: 1.35rem; margin: 0 0 2px; color: #fff; }
.profil-ligne { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .95); }
.profil-ligne svg { width: 16px; height: 16px; flex: none; }
.profil-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.profil .bandeau-exemple { margin-top: 14px; }
.fiche-photo { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.fiche-colonnes { display: grid; gap: 18px; align-content: start; }
.fiche-texte, .fiche-action { background: var(--surface); border-radius: var(--rayon); padding: 20px; box-shadow: var(--ombre); overflow-wrap: anywhere; }
.fiche-texte h1 { font-size: 1.45rem; }
.fiche-action h2 { font-size: 1.15rem; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.etiquettes li { padding: 6px 13px; border-radius: 999px; background: var(--peche-claire); font-size: .8rem; font-weight: 600; color: var(--corail-fonce); }
.fiche-signaler { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--texte-doux); margin: 0; }
.fiche-signaler svg { width: 16px; height: 16px; flex: none; }
.bandeau-exemple { display: flex; gap: 10px; align-items: flex-start; background: #fff6df; border: 1px solid #f3d38a; color: #7a4f00; border-radius: var(--rayon-petit); padding: 12px 14px; font-weight: 600; font-size: .9rem; margin: 0; }
.bandeau-exemple svg { width: 20px; height: 20px; flex: none; }

/* --- Formulaires --------------------------------------------------------- */

.formulaire { display: grid; gap: 6px; max-width: 460px; }
.formulaire-large { max-width: 680px; }
.formulaire label { font-family: var(--titres); font-weight: 600; font-size: .9rem; margin-top: 8px; }
.formulaire button[type="submit"] { margin-top: 14px; }
fieldset { border: 0; border-radius: var(--rayon); padding: 20px; margin: 0 0 14px; background: var(--surface); box-shadow: var(--ombre); }
legend { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-family: var(--titres); font-size: 1.1rem; font-weight: 700; }
legend + * { clear: both; }
.label { font-family: var(--titres); font-weight: 600; font-size: .9rem; margin: 10px 0 6px; }
.aide { font-size: .84rem; color: var(--texte-doux); margin: 4px 0 6px; }
.champ-erreur { color: var(--erreur); font-size: .86rem; font-weight: 600; margin: 4px 0 6px; }
input[type="text"], input[type="search"], input[type="password"], input[type="email"], input[type="number"], input[type="date"], textarea, select {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--bord); border-radius: 16px;
  background: #fffaf8; color: var(--texte); font: inherit; transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--corail); background: #fff; box-shadow: 0 0 0 4px rgba(240, 127, 99, .15); }
textarea { min-height: 160px; resize: vertical; }
input[type="file"] { width: 100%; font: inherit; padding: 12px; border: 1.5px dashed var(--peche); border-radius: 16px; background: #fffaf8; }
.choix-ligne { display: flex; flex-wrap: wrap; gap: 8px; }
.choix {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px;
  border: 1.5px solid var(--bord); border-radius: 999px; background: #fffaf8; font-family: var(--titres); font-weight: 500; font-size: .9rem; cursor: pointer;
}
.choix:has(input:checked) { border-color: var(--corail); background: var(--peche-claire); color: var(--corail-fonce); }
.choix input { width: 20px; height: 20px; accent-color: var(--corail); flex: none; margin: 0; }
.choix-accord { align-items: flex-start; margin-bottom: 8px; border-radius: 16px; font-family: var(--police); font-weight: 400; }
.choix-accord input { margin-top: 2px; }
.choix-inline { display: inline-flex; gap: 6px; align-items: center; }
.choix-communes { display: grid; gap: 6px; margin: 8px 0 10px; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.actions-apercu { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.annonce-photo { width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: var(--fond-2); border-radius: var(--rayon-moyen); margin-bottom: 14px; }
.annonce { background: var(--surface); border-radius: var(--rayon); padding: 20px; box-shadow: var(--ombre); }
.annonce-qui, .annonce-meta, .annonce-recherche { color: var(--texte-doux); margin-bottom: 6px; }
.annonce-titre-apercu { font-size: 1.3rem; }
.annonce-texte { margin: 14px 0; overflow-wrap: anywhere; }
.zone-danger { margin-top: 20px; padding: 20px; border-radius: var(--rayon); background: #fff4f2; box-shadow: inset 0 0 0 1.5px #f6c9c2; }
.zone-danger h2 { margin-top: 0; font-size: 1.15rem; }

/* --- Messagerie ------------------------------------------------------------ */

.aide svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 2px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.discussion { max-width: 760px; margin: 0 auto; }
.fil-messages { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.bulle { max-width: 82%; justify-self: start; }
.bulle-moi { justify-self: end; text-align: right; }
.bulle-texte {
  display: inline-block; text-align: left; padding: 12px 16px; border-radius: 20px 20px 20px 6px;
  background: var(--surface); box-shadow: var(--ombre); overflow-wrap: anywhere;
}
.bulle-moi .bulle-texte { border-radius: 20px 20px 6px 20px; background: var(--degrade-bouton); color: #fff; }
.bulle-date { display: block; margin-top: 4px; font-size: .74rem; color: var(--texte-doux); }
.repondre { display: grid; gap: 10px; background: var(--surface); border-radius: var(--rayon); padding: 14px; box-shadow: var(--ombre); }
.repondre textarea { min-height: 96px; }
.repondre .bouton { justify-self: end; }
.options-conversation { margin-top: 20px; }
.options-conversation summary { cursor: pointer; font-family: var(--titres); font-weight: 600; color: var(--texte-doux); margin-bottom: 10px; }
.options-conversation form { margin: 10px 0; }
.liste-conversations { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.liste-conversations li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--rayon-moyen); background: var(--fond); }

/* --- Pied de page -------------------------------------------------------- */

.pied { margin-top: 48px; padding: 34px 0 28px; background: var(--fond-2); color: var(--texte-doux); font-size: .9rem; border-radius: 34px 34px 0 0; }
.pied .logo { margin-bottom: 12px; }
.pied-colonnes { display: grid; gap: 22px; }
.pied h3 { color: var(--texte); font-size: .95rem; margin-bottom: 8px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pied a { color: var(--texte-doux); text-decoration: none; }
.pied a:hover { color: var(--corail-fonce); }
.pied-mention { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--bord); font-size: .8rem; }

/* --- Administration ----------------------------------------------------- */

body.admin { padding-bottom: 0; }
.admin-qui { margin: 0; padding: 0 16px 10px; font-size: .85rem; color: var(--texte-doux); }
.tableau { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--rayon-petit); overflow: hidden; }
.tableau th, .tableau td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--bord); }
.journal { padding-left: 1.2em; }
.secret { display: inline-block; margin-top: 6px; padding: 6px 8px; background: var(--peche-claire); border-radius: 6px; overflow-wrap: anywhere; }
.liste-admin { list-style: none; padding: 0; margin: 0; }
.liste-admin li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--bord); }
.compte { color: var(--texte-doux); font-size: .88rem; }
.contenu { max-width: var(--largeur); margin: 0 auto; padding: 20px 16px; }
.admin-menu { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; }
.admin-menu a { flex: none; padding: 7px 12px; border-radius: 999px; background: var(--surface); color: var(--texte); font-size: .88rem; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1px var(--bord); }
.admin-menu a:hover { box-shadow: inset 0 0 0 1.5px var(--corail); }
.pastille-admin { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--corail); color: #fff; font-size: .75rem; text-align: center; }
.urgent { color: var(--erreur); font-weight: 700; }
.citation { margin: 8px 0; padding: 12px 14px; border-left: 4px solid var(--bord); background: var(--surface); border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.actions-admin { display: grid; gap: 14px; margin-top: 16px; }

/* --- Écrans plus larges ------------------------------------------------- */

@media (min-width: 640px) {
  .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .bandeau h1 { font-size: 2.7rem; }
  .appel { grid-template-columns: 1fr auto; padding: 30px 34px; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .onglets { display: none; }
  .navigation { display: flex; }
  .entete .bouton-depot { display: inline-flex; }
  .entete-ligne { height: 72px; }
  .conteneur { padding: 0 24px; }
  .page { padding: 32px 24px 8px; }
  .bandeau { padding: 64px 0 80px; border-radius: 0 0 48px 48px; }
  .bandeau h1 { font-size: 3.2rem; }
  .bandeau-grille { grid-template-columns: minmax(0, 1fr) 540px; }
  .apercu-cartes { display: block; }
  .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .bandeau-page { padding: 40px 0 46px; border-radius: 0 0 40px 40px; }
  .bandeau-page h1 { font-size: 2.3rem; }
  .fiche { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 26px; padding-top: 28px; align-items: start; }
  .fiche.sans-photo { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .fiche-photo { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 96px; }
  .profil, .fiche-colonnes { grid-column: 1; }
  .pied-colonnes { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .section { padding-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Signalement anonyme : les champs d'identité disparaissent (sans JavaScript). */
.si-complet { display: grid; gap: 6px; }
fieldset:has(input[name="type"][value="anonyme"]:checked) .si-complet { display: none; }

/* --- Pages de contenu --------------------------------------------------- */

.article { max-width: 720px; line-height: 1.7; }
.article h2 { margin-top: 1.6em; font-size: 1.3rem; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 1.3em; font-size: 1.05rem; color: var(--corail-fonce); }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .45em; }
.article table { margin: 10px 0 18px; font-size: .9rem; }
.article-suite { margin: 26px 0 0; }
.article-suite h2 { font-size: 1.1rem; }
.article-suite ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article-suite a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--ombre); text-decoration: none; font-weight: 600; }
.numeros-utiles { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.numeros-utiles li { padding: 12px 14px; border-radius: var(--rayon-petit); background: var(--fond); }
.faq h2 { font-size: 1.15rem; margin: 1.4em 0 .6em; }
.faq h2:first-child { margin-top: 0; }
.faq details { border-radius: var(--rayon-petit); background: var(--fond); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-family: var(--titres); font-weight: 600; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--corail); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 16px 14px; }
@media (max-width: 520px) { .article table { display: block; overflow-x: auto; } }

/* --- Partenaire (encarts sponsorisés, page /partenaire) ------------------ */

.encart-partenaire { margin: 22px 0; padding: 18px 20px; border-radius: var(--rayon); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--bord); }
.encart-mention { margin: 0 0 6px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--texte-doux); }
.encart-mention-clair { color: rgba(255, 255, 255, .85); }
.encart-titre { margin: 0 0 4px; font-family: var(--titres); font-weight: 700; font-size: 1.05rem; }
.encart-texte { margin: 0 0 12px; font-size: .9rem; color: var(--texte-doux); }
.nav-partenaire span { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--peche-claire); font-size: .7rem; font-weight: 600; color: var(--texte-doux); vertical-align: 1px; }
.partenaire-cadre { border-radius: var(--rayon); overflow: hidden; background: #fff; box-shadow: var(--ombre); }
.partenaire-cadre iframe { display: block; width: 100%; height: 640px; border: 0; }
.consentement .choix-ligne { margin: 14px 0; }
.consentement .choix-ligne .bouton { min-width: 180px; }
.grille-photos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grille-photos img { width: 100%; height: auto; border-radius: var(--rayon-petit); }
.pilule-texte { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--ombre); font-size: .88rem; }

/* Chat du partenaire : inscription par le formulaire du site (page /chat et mini-formulaire des annonces). */
.carte-chat { max-width: 520px; margin: 0 auto 18px; background: var(--surface); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); }
.carte-chat .etape { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; min-width: 0; }
.carte-chat legend { font-family: var(--titres); font-weight: 700; font-size: 1.25rem; padding: 0; margin-bottom: 8px; }
.choix-cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choix-carte { position: relative; display: flex; align-items: center; justify-content: center; min-height: 72px; border-radius: var(--rayon-moyen);
  background: var(--fond); box-shadow: inset 0 0 0 1.5px var(--bord); font-family: var(--titres); font-weight: 600; font-size: 1.05rem; cursor: pointer; margin: 0 !important; }
.choix-carte input { position: absolute; opacity: 0; pointer-events: none; }
.choix-carte:has(input:checked) { background: var(--peche-claire); box-shadow: inset 0 0 0 2px var(--corail); color: var(--corail-fonce); }
.choix-carte:has(input:focus-visible) { outline: 3px solid var(--corail); outline-offset: 2px; }
.chat-mentions { max-width: 520px; margin: 0 auto; }
.chat-pret { max-width: 520px; margin: 0 auto 18px; text-align: center; }
.carte-chat .etape { background: none; box-shadow: none; }
/* Fiche d'annonce : deux grandes tuiles cliquables, chat en direct puis messagerie du site (design Codex, 27/10/2026). */
.choix-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 14px 0 22px; font: 400 .9rem/1.5 var(--police); }
.choix-contact .option-contact { display: grid; grid-template-columns: 48px minmax(0, 1fr) 14px; align-items: center; gap: 14px; padding: 18px 20px;
  border: 1.5px solid var(--bord); border-radius: var(--rayon); background: var(--surface); color: #64514c; text-decoration: none; white-space: normal;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.option-contact .option-icone { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--peche-claire); color: var(--corail-fonce); }
.option-contact .option-icone svg { width: 24px; height: 24px; }
.option-contenu { min-width: 0; overflow-wrap: anywhere; }
.option-contenu > span { display: block; }
.option-contact .option-titre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 2px; color: var(--texte); font: 700 1.05rem/1.35 var(--titres); }
.option-contact .option-delai { margin-top: 6px; font-size: .82rem; }
.option-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--texte); font: 600 .68rem/1.4 var(--police); letter-spacing: .03em; text-transform: uppercase; }
.option-fleche { color: var(--texte); font-size: 1.8rem; line-height: 1; }
.choix-contact .option-direct { color: var(--texte); border-color: var(--corail-fonce); background: linear-gradient(120deg, var(--corail), #ffb8a0); box-shadow: 0 8px 22px rgba(217, 97, 74, .18); }
.option-direct .option-icone { background: var(--surface); color: var(--corail-fonce); }
.choix-contact a.option-contact:hover { border-color: var(--corail-fonce); box-shadow: 0 10px 26px rgba(44, 33, 36, .12); transform: translateY(-1px); }
.choix-contact a.option-contact:focus-visible { outline: 3px solid var(--texte); outline-offset: 4px; }
.choix-contact .option-indisponible { background: #fff7f3; border-style: dashed; grid-template-columns: 48px minmax(0, 1fr); }
.option-indisponible .option-icone { background: #f3e6e0; color: var(--texte-doux); }
.choix-contact .choix-contact-note { margin: 0 6px; color: #64514c; font-size: .78rem; }
@media (min-width: 640px) { .choix-contact .option-contact { padding: 22px 24px; gap: 18px; } .option-contact .option-titre { font-size: 1.15rem; } }
/* Formulaire de message replié jusqu'au choix « Écrire un message » (ancre #ecrire). */
.bloc-message { display: none; }
.bloc-message:target, .bloc-message.ouvert { display: block; scroll-margin-top: 90px; }
.mention-pub { font-size: .8rem; color: var(--texte-doux); }
.carte-chat .etape legend { font-size: 1.05rem; margin-bottom: 6px; }
.carte-chat > label { margin-top: 10px; }
/* Logo Lovix : le nom en corail foncé, comme le logo dessiné (27/10/2026). */
.entete .logo-nom, .pied .logo-nom { color: var(--corail-fonce); font-weight: 700; letter-spacing: -.02em; }
.admin-vignette { max-width: 280px; max-height: 280px; }
/* Conversation façon application de rencontre : photo de l'annonce en tête, encart du chat en direct sous les messages. */
.conv-entete-ligne { display: flex; align-items: center; gap: 14px; }
.conv-entete h1 { margin: 0 0 2px; font-size: 1.4rem; }
.conv-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 6px 16px rgba(120, 60, 45, .18); }
.conv-avatar-initiale { display: grid; place-items: center; background: rgba(255, 255, 255, .3); color: #fff; font: 700 1.6rem/1 var(--titres); }
.conv-direct { display: grid; grid-template-columns: 44px minmax(0, 1fr) 14px; align-items: center; gap: 12px; margin: 18px 0; padding: 14px 16px;
  border-radius: var(--rayon-moyen); background: linear-gradient(120deg, var(--corail), #ffb8a0); color: var(--texte); text-decoration: none;
  box-shadow: 0 8px 22px rgba(217, 97, 74, .18); font-size: .92rem; }
.conv-direct:hover { color: var(--texte); transform: translateY(-1px); }
.conv-direct .option-icone { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--corail-fonce); }
.conv-direct .option-icone svg { width: 22px; height: 22px; }

/* Page « Outils » de l'administration. */
.outils-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.outil { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--rayon-moyen); background: var(--surface); color: var(--texte);
  text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--bord); }
.outil:hover { box-shadow: inset 0 0 0 2px var(--corail); color: var(--texte); }
.outil span { font-size: .86rem; color: var(--texte-doux); }
tr.ligne-cliquable { cursor: pointer; } tr.ligne-cliquable:hover td { background: var(--peche-claire); }
.onglets-admin { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; border-bottom: 1.5px solid var(--bord); padding-bottom: 8px; }
.onglets-admin a { padding: 7px 14px; border-radius: 999px; color: var(--texte); font-weight: 600; font-size: .9rem; text-decoration: none; }
.onglets-admin a[aria-current="page"] { background: var(--peche-claire); color: var(--corail-fonce); box-shadow: inset 0 0 0 1.5px var(--corail); }
