/* Fiche coloc Lacoloc.fr : styles propres à la page */

.page-fiche .entete { background: var(--violet); }
.fiche { padding-top: calc(var(--entete) + 26px); }
.ariane { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--encre-douce); margin-bottom: 20px; }
.ariane a { text-decoration: none; }
.ariane a:hover { color: var(--violet); text-decoration: underline; }
.ariane b { color: var(--encre); font-weight: 700; }
.ariane span { opacity: .4; }

/* ============ Galerie ============ */
.galerie { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 10px; border-radius: 32px; overflow: hidden; }
.galerie__item { position: relative; padding: 0; border: 0; overflow: hidden; background: var(--lavande); cursor: zoom-in; }
.galerie__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .4s; }
.galerie__item:hover img { transform: scale(1.05); filter: brightness(.92); }
.galerie__item--grand { grid-row: span 2; }
.galerie__plus { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(43, 32, 81, .55); color: #fff; font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: -.01em; }
.galerie__boutons { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 8px; }
.galerie__boutons .btn { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }

/* ============ Grille principale ============ */
.fiche__grille { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(40px, 5vw, 80px); align-items: start; margin-top: 44px; }
.fiche__tete { padding-bottom: 36px; border-bottom: 1.5px solid var(--trait); }
.fiche__pastilles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pastille--theme { background: var(--violet); color: #fff; }
.pastille--theme .ico { width: 15px; height: 15px; }
.fiche__lieu { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--encre-douce); margin-bottom: 14px; }
.fiche__lieu .ico { width: 19px; height: 19px; flex: none; }
.fiche__lieu-txt span { display: inline-block; } /* un nom de rue ou d'arrêt ne se coupe pas en deux lignes */
.fiche__tete h1 { margin-bottom: 30px; }
.chiffres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.chiffres li { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 1px 0 var(--trait); }
.chiffres .ico { width: 22px; height: 22px; margin-bottom: 8px; color: var(--mauve); }
.chiffres b { font-size: 20px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.chiffres span { font-size: 13.5px; color: var(--encre-douce); }

.bloc { padding-block: 46px; border-bottom: 1.5px solid var(--trait); }
.bloc:last-child { border-bottom: 0; }
.bloc__tete { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.bloc__titre { font-size: clamp(24px, 2.2vw, 30px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; margin-bottom: 22px; }
.bloc__tete .bloc__titre { margin-bottom: 0; }
.texte { color: var(--encre-douce); max-width: 70ch; }
.texte__intro { font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; color: var(--encre); line-height: 1.4; letter-spacing: -.01em; }

/* ============ Chambres ============ */
.chambres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chambre { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 1px 0 var(--trait); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.chambre[hidden] { display: none; }
.chambre { scroll-margin-top: calc(var(--entete) + 20px); }
.chambre:target { box-shadow: inset 0 0 0 3px var(--mauve), 0 24px 50px -30px rgba(43, 32, 81, .6); }
.chambre--dispo { grid-column: 1 / -1; flex-direction: row; box-shadow: inset 0 0 0 2px var(--jaune), 0 24px 50px -36px rgba(43, 32, 81, .5); }
.chambre__photos { position: relative; flex: none; }
.chambre--dispo .chambre__photos { width: 46%; display: grid; grid-template-rows: auto auto; align-content: start; gap: 6px; padding: 8px; }
.chambre__principale { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.chambre--dispo .chambre__principale { border-radius: 18px; aspect-ratio: 4 / 3; height: auto; } /* photos souvent en portrait : on cadre */
.chambre__vignettes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.chambre__vignettes img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.chambre__photos .pastille { position: absolute; top: 18px; left: 18px; }
.chambre--occupee .chambre__photos .pastille { top: 14px; left: 14px; }
.chambre--occupee .chambre__principale { filter: saturate(.35) brightness(.98); opacity: .85; }
.chambre__corps { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chambre--dispo .chambre__corps { padding: 28px 28px 26px 18px; }
.chambre__nom { font-weight: 900; text-transform: uppercase; font-size: 20px; letter-spacing: -.01em; }
.chambre--dispo .chambre__nom { font-size: 30px; }
.chambre__infos { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 14.5px; color: var(--encre-douce); }
.chambre__infos span { display: inline-flex; align-items: flex-start; gap: 6px; }
.chambre__infos .ico { margin-top: 1px; }
.chambre__infos .ico { width: 18px; height: 18px; }
.chambre__prix { margin: 4px 0 0; color: var(--encre-douce); font-size: 14px; }
.chambre__prix strong { font-size: 34px; font-weight: 900; letter-spacing: -.03em; color: var(--encre); margin-right: 6px; }
.chambre__loyer { border-radius: 16px; background: var(--creme); padding: 4px 16px; font-size: 14px; }
.chambre__loyer summary { cursor: pointer; font-weight: 700; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.chambre__loyer summary::-webkit-details-marker { display: none; }
.chambre__loyer summary::after { content: "+"; font-weight: 900; }
.chambre__loyer[open] summary::after { content: "−"; }
.chambre__loyer dl { margin: 0 0 12px; display: grid; gap: 6px; }
.chambre__loyer dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--encre-pale); padding-top: 6px; }
.chambre__loyer dt { color: var(--encre-douce); }
.chambre__loyer dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.chambre__actions { margin-top: auto; padding-top: 6px; }
.lien-alerte { margin-top: auto; align-self: flex-start; text-align: left; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 0; font-weight: 700; font-size: 14.5px; color: var(--violet-clair); text-decoration: underline; text-underline-offset: 4px; }
.lien-alerte .ico { width: 17px; height: 17px; }
.lien-alerte:hover { color: var(--violet); }

/* Une colonne de grille ne rétrécit pas sous son contenu sans ceci : la fiche dépassait de l'écran en mobile */
.fiche__grille > * { min-width: 0; }
.alerte { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px; padding: 18px 18px 18px 22px; border-radius: 24px; background: var(--lavande); }
.alerte__ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: var(--jaune); }
.alerte h3 { font-size: 17px; margin-bottom: 2px; }
.alerte p { margin: 0; font-size: 14.5px; color: var(--encre-douce); }
.alerte input { border: 0; border-radius: 999px; padding: 13px 18px; font: inherit; font-size: 15px; min-width: 220px; box-shadow: inset 0 0 0 1.5px var(--trait); }
.alerte input:focus { outline: 2px solid var(--violet); }
.alerte__merci { display: none !important; }
.alerte__retour { grid-column: 1 / -1; font-size: 14.5px; }
.alerte__retour:empty { display: none; }
.alerte.est-envoye > :not(.alerte__ico):not(.alerte__merci) { display: none; }
.alerte.est-envoye .alerte__merci { display: flex !important; align-items: center; gap: 8px; font-weight: 700; color: var(--violet) !important; grid-column: 2 / -1; }

/* ============ Pictos, espaces, listes ============ */
.pictos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pictos li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: #fff; font-weight: 700; box-shadow: 0 1px 0 var(--trait); }
.pictos .ico { width: 24px; height: 24px; color: var(--mauve); }
.espaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.espaces figure { margin: 0; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.2; }
.espaces img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.espaces figure:hover img { transform: scale(1.06); }
.espaces figcaption { position: absolute; left: 10px; bottom: 10px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-weight: 800; font-size: 13px; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.liste-ico { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.liste-ico li { display: flex; align-items: center; gap: 14px; font-weight: 600; line-height: 1.35; }
.liste-ico .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--trait); color: var(--violet); }
.liste-ico--jaune .ico { background: var(--jaune); box-shadow: none; }

/* ============ Visite 3D ============ */
.visite__cadre { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: var(--violet); }
.visite__cadre > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.9); }
.visite__cadre iframe { width: 100%; height: 100%; border: 0; }
.visite__lancer { position: absolute; inset: 0; border: 0; background: radial-gradient(circle at 50% 50%, rgba(43, 32, 81, .2), rgba(43, 32, 81, .6)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.visite__lancer b { font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.visite__lancer small { opacity: .8; font-size: 15px; }
.visite__play { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--jaune); color: var(--violet); margin-bottom: 10px; box-shadow: 0 0 0 12px rgba(254, 209, 135, .25); transition: transform .4s var(--ease), box-shadow .4s; }
.visite__play .ico { width: 34px; height: 34px; margin-left: 4px; }
.visite__lancer:hover .visite__play { transform: scale(1.08); box-shadow: 0 0 0 20px rgba(254, 209, 135, .18); }

/* ============ Quartier ============ */
.quartier { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: stretch; }
.quartier__carte { min-height: 300px; border-radius: 24px; overflow: hidden; background: #e9e4f1; }
.quartier__carte .leaflet-tile-pane { filter: grayscale(1) sepia(.2) hue-rotate(215deg) saturate(1.3) contrast(.92); }
.rue-etiquette { padding: 5px 12px; border: 0; border-radius: 999px; background: var(--violet); color: #fff; font-weight: 800; font-size: 13px; line-height: 1.2; font-family: inherit; white-space: nowrap; box-shadow: 0 2px 8px rgba(43, 32, 81, .25); }
.rue-etiquette.leaflet-tooltip-top::before { border-top-color: var(--violet); }
.quartier__texte { padding: 24px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 var(--trait); color: var(--encre-douce); }
.quartier__metro { display: flex; align-items: center; gap: 14px; color: var(--encre); }
.quartier__metro b { display: block; font-weight: 900; font-size: 18px; }
.quartier__metro small { color: var(--encre-douce); font-size: 14px; }
.quartier__metro + .quartier__metro { margin-top: 14px; }
.ligne-a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #e2007a; color: #fff; font-weight: 900; font-size: 20px; flex: none; }
.ligne-a--long { font-size: 15px; letter-spacing: -.02em; }
.ligne-a--rue { background: var(--violet); }

/* ============ DPE ============ */
.dpe__echelle { display: flex; gap: 4px; margin-bottom: 16px; }
.dpe__echelle span { flex: 1; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--c); color: rgba(0, 0, 0, .6); font-weight: 900; opacity: .35; }
.dpe__echelle .est-actif { opacity: 1; transform: scaleY(1.25); color: #0b3d0b; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); }
.dpe p { margin: 0 0 6px; }
.petit { font-size: 14px; color: var(--encre-douce); }

/* ============ Billet collant ============ */
.fiche__cote { position: sticky; top: calc(70px + 24px); }
.billet {
	--encoche: 246px;
	border-radius: 28px; overflow: hidden; filter: drop-shadow(0 40px 50px rgba(43, 32, 81, .28));
	-webkit-mask: radial-gradient(circle at 0 var(--encoche), transparent 16px, #000 16.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% var(--encoche), transparent 16px, #000 16.5px) right / 51% 100% no-repeat;
	mask: radial-gradient(circle at 0 var(--encoche), transparent 16px, #000 16.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% var(--encoche), transparent 16px, #000 16.5px) right / 51% 100% no-repeat;
}
.billet__haut {
	position: relative; height: var(--encoche); padding: 26px 28px; color: #fff; overflow: hidden;
	background: radial-gradient(ellipse 80% 90% at 100% 0%, rgba(189, 123, 154, .9), transparent 60%), radial-gradient(ellipse 60% 70% at 0% 100%, rgba(254, 209, 135, .5), transparent 60%), var(--violet-3);
}
.billet__haut::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .25; mix-blend-mode: soft-light; }
.billet__type { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--jaune); margin-bottom: 12px; }
.billet__type span { color: rgba(255, 255, 255, .7); letter-spacing: .06em; }
.billet__titre { font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 1; letter-spacing: -.015em; word-spacing: .06em; margin-bottom: 6px; }
.billet__lieu { font-size: 14px; color: rgba(255, 255, 255, .78); margin-bottom: 14px; }
.billet__prix { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .8); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.billet__prix strong { font-size: 40px; font-weight: 900; letter-spacing: -.03em; color: #fff; line-height: 1; }
.billet__prix span { width: 100%; font-size: 13px; }
.billet__bas { background: #fff; padding: 26px 24px 24px; border-top: 2px dashed var(--encre-pale); display: grid; gap: 10px; }
.billet__etiquette { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-douce); }
.billet__choix-liste { display: grid; gap: 8px; margin-bottom: 6px; }
.billet__choix { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--trait); cursor: pointer; transition: box-shadow .25s, background .25s; }
.billet__choix:hover { box-shadow: inset 0 0 0 1.5px var(--violet-clair); }
.billet__choix input { position: absolute; opacity: 0; pointer-events: none; }
.billet__radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--encre-pale); flex: none; transition: box-shadow .25s; }
.billet__choix input:checked ~ .billet__radio { box-shadow: inset 0 0 0 7px var(--violet); }
.billet__choix:has(input:checked) { background: #fdf6e8; box-shadow: inset 0 0 0 2px var(--jaune); }
.billet__nom { flex: 1; line-height: 1.25; }
.billet__nom b { display: block; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.billet__nom small { font-size: 13px; color: var(--encre-douce); }
.billet__tarif { font-weight: 900; font-size: 18px; letter-spacing: -.02em; }
.billet__cta { justify-content: center; width: 100%; }
.billet__plus { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--encre-douce); }
.billet__plus li { display: flex; gap: 8px; align-items: center; }
.billet__plus .ico { width: 16px; height: 16px; color: #27a768; stroke-width: 2.4; }
.billet .code-barres { color: var(--violet); opacity: .85; margin-top: 8px; height: 38px; }
.fiche__aide { text-align: center; font-size: 14px; color: var(--encre-douce); margin-top: 18px; }

/* ============ Autres colocs ============ */
.autres { padding-top: clamp(80px, 9vw, 120px); padding-bottom: 0; }
.autres__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ============ Visionneuse ============ */
.visionneuse { position: fixed; inset: 0; z-index: 100; background: rgba(20, 14, 40, .94); display: grid; place-items: center; padding: 40px 90px; }
.visionneuse[hidden] { display: none; }
.visionneuse img { max-width: 100%; max-height: 82vh; border-radius: 20px; }
.visionneuse .rond { position: absolute; background: #fff; color: var(--violet); }
.visionneuse__fermer { top: 24px; right: 24px; }
.visionneuse__prec { left: 24px; top: 50%; transform: translateY(-50%); }
.visionneuse__suiv { right: 24px; top: 50%; transform: translateY(-50%); }
.visionneuse__compte { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-weight: 700; }

/* ============ Barre mobile ============ */
.barre-mobile { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 22px; background: var(--violet); color: #fff; box-shadow: var(--ombre-forte); transform: translateY(140%); transition: transform .5s var(--ease); }
.barre-mobile.est-visible { transform: none; }
.barre-mobile p { margin: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.barre-mobile b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.barre-mobile small { font-size: 12.5px; color: rgba(255, 255, 255, .7); }

@media (max-width: 1100px) {
	.fiche__grille { grid-template-columns: 1fr; }
	.chambres { grid-template-columns: 1fr 1fr; }
	.fiche__cote { position: static; order: -1; max-width: 520px; }
	.chiffres { grid-template-columns: repeat(3, 1fr); }
	.autres__grille { grid-template-columns: 1fr 1fr; }
	.barre-mobile { display: flex; }
}
@media (max-width: 720px) {
	.galerie { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 130px; border-radius: 24px; margin-inline: calc(-1 * var(--gouttiere) + 10px); }
	.galerie__item--grand { grid-column: 1 / -1; grid-row: auto; }
	.galerie__item:nth-child(3), .galerie__item:nth-child(4) { display: none; }
	.galerie__boutons { left: 12px; bottom: auto; top: 192px; }
	.chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chiffres li { min-width: 0; overflow-wrap: break-word; }
	.chiffres li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.chambres { grid-template-columns: 1fr 1fr; }
	.deux-colonnes, .quartier, .autres__grille { grid-template-columns: 1fr; }
	.chambre--dispo { flex-direction: column; }
	.chambre--dispo .chambre__photos { width: 100%; }
	.chambre--dispo .chambre__corps { padding: 8px 20px 22px; }
	.pictos, .espaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pictos li, .espaces li { min-width: 0; overflow-wrap: break-word; }
	.alerte { grid-template-columns: auto 1fr; }
	.alerte__champ, .alerte .btn { grid-column: 1 / -1; }
	.alerte input { width: 100%; min-width: 0; }
	.visionneuse { padding: 70px 12px; }
	.visionneuse__prec, .visionneuse__suiv { top: auto; bottom: 12px; transform: none; }
}

/* Téléphones : le prix, même à 4 chiffres, et le bouton de la barre restent dans l'écran */
@media (max-width: 430px) {
	.barre-mobile { padding-left: 14px; gap: 8px; }
	.barre-mobile p { min-width: 0; flex-wrap: wrap; gap: 0 4px; line-height: 1.15; }
	.barre-mobile b { font-size: 20px; }
	.barre-mobile .btn { flex: none; padding: 12px 16px; font-size: 15px; }
	.barre-mobile .btn .ico { display: none; }
}
