/* ==========================================================
   mobile.css - Shiatsu à Paris 16
   Chargé APRÈS style.css. Ne modifie rien au-dessus de 900px.
   Charte : fond #ECD18E, page #FAF2D8, accent #CA4E4E, Georgia
   ========================================================== */

/* Éléments mobiles : invisibles sur ordinateur */
.contact-mobile,
.burger-bar,
.nav-overlay {
	display: none;
}

@media (max-width: 900px) {

	html {
		-webkit-text-size-adjust: 100%;
	}

	body {
		margin: 0;
		padding-top: 52px; /* place pour la barre du burger */
	}

	#bloc_page {
		box-sizing: border-box;
		width: auto;
		max-width: 100%;
		margin: 0;
		padding: 0 12px 12px;
		border-left: 0;
		border-right: 0;
		box-shadow: none;
	}

	/* ----- Barre du haut + bouton burger ----- */

	.burger-bar {
		display: flex;
		align-items: center;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: 52px;
		z-index: 1000;
		background-color: #FAF2D8;
		border-bottom: 2px solid #CA4E4E;
		box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
	}

	.burger-btn {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 5px;
		width: 52px;
		height: 52px;
		padding: 0;
		background: none;
		border: 0;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.burger-btn span {
		display: block;
		width: 26px;
		height: 3px;
		background-color: #CA4E4E;
		border-radius: 2px;
		transition: transform 0.25s, opacity 0.2s;
	}

	.burger-btn[aria-expanded="true"] span:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}
	.burger-btn[aria-expanded="true"] span:nth-child(2) {
		opacity: 0;
	}
	.burger-btn[aria-expanded="true"] span:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	.burger-title {
		font-family: 'Lucida Handwriting', Georgia, Arial, sans-serif;
		font-size: 0.95em;
		color: #CA4E4E;
		text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		padding-right: 10px;
	}

	/* ----- Navigation : tiroir à gauche ----- */

	nav {
		box-sizing: border-box;
		position: fixed;
		top: 52px;
		bottom: 0;
		left: 0;
		width: 82%;
		max-width: 320px;
		padding: 10px 15px 30px;
		display: block;
		overflow-y: auto;
		background-color: #FAF2D8;
		border-right: 1px solid #CA4E4E;
		box-shadow: 6px 0 15px rgba(0, 0, 0, 0.4);
		z-index: 999;
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform 0.25s ease, visibility 0s linear 0.25s;
	}

	nav.is-open {
		transform: translateX(0);
		visibility: visible;
		transition: transform 0.25s ease, visibility 0s;
	}

	nav p {
		margin: 0;
		padding-left: 0;
		font-size: 1em;
	}

	nav a {
		display: block;
		padding: 12px 5px;
		border-bottom: 1px dotted #ECD18E;
		text-decoration: none;
	}

	.navligne {
		text-decoration: none;
		font-weight: bold;
	}

	/* Sous-rubriques (Déroulement, Pour qui ?, Tarifs, Pensées...) */
	.retrait_nav {
		margin-left: 8px;
		padding-left: 12px;
		font-size: 0.95em;
		border-left: 3px solid #ECD18E;
	}

	.retrait_nav a {
		padding: 10px 5px;
	}

	/* Page courante */
	nav a.nav-current {
		font-weight: bold;
		background-color: #ECD18E;
		border-left: 4px solid #CA4E4E;
		padding-left: 8px;
	}

	/* Voile sombre derrière le tiroir */
	.nav-overlay {
		display: block;
		position: fixed;
		top: 52px;
		right: 0;
		bottom: 0;
		left: 0;
		background-color: rgba(0, 0, 0, 0.45);
		z-index: 998;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.25s;
	}

	.nav-overlay.is-visible {
		opacity: 1;
		pointer-events: auto;
	}

	body.nav-open {
		overflow: hidden;
	}

	/* ----- En-tête ----- */

	header {
		width: auto;
		text-align: center;
	}

	header img {
		display: block;
		max-width: 100%;
		height: auto;
		margin: 0 auto;
	}

	.contact-mobile {
		display: block;
		margin: 0.6em 0;
		text-align: center;
		font-size: 0.95em;
		line-height: 1.7;
	}

	.contact-mobile a {
		color: #CA4E4E;
		font-weight: bold;
		text-decoration: none;
		white-space: nowrap;
	}

	/* ----- Contenu ----- */

	section {
		display: block;
		width: auto;
		margin-left: 0;
	}

	article {
		width: auto;
		margin: 0;
	}

	article h1 {
		padding-left: 0;
		font-size: 1.3em;
	}

	article h2,
	article h3 {
		padding-left: 0;
	}

	article p {
		font-size: 1em;
		line-height: 1.5;
		padding-right: 0;
	}

	.unblock {
		display: flow-root;
		margin: 10px 0;
	}

	.marge_dessus {
		padding-top: 0;
		margin-top: 10px;
	}

	.imgleft,
	.imgright {
		max-width: 45%;
		height: auto;
	}

	.imgh200 {
		height: auto;
		max-width: 100%;
	}

	/* Durée des séances (id dupliqué dans le HTML d'origine) */
	#duree_seance,
	.duree_seance {
		margin-left: 0;
		padding: 8px 0;
		border-bottom: 1px dotted #CA4E4E;
		overflow: hidden;
	}

	/* Citations des pages "Pensées" */
	#citation_etroite_gauche,
	#citation_etroite_droite {
		width: auto;
		margin-left: 0;
		padding-top: 0;
	}

	/* Carte OpenStreetMap */
	iframe {
		width: 100%;
		max-width: 100%;
		height: 300px;
		box-sizing: border-box;
	}

	/* ----- Pied de page ----- */

	footer {
		width: auto;
		margin-top: 30px;
	}

	footer p {
		font-size: 0.8em;
	}
}

/* ----- Petits écrans : images au-dessus du texte ----- */
@media (max-width: 560px) {

	.imgleft,
	.imgright {
		float: none;
		display: block;
		max-width: 100%;
		margin: 10px auto;
	}
}
