/* Page voyageur — couleurs Marrenza (terre cuite, sable, encre brune). */
:root {
	--terre: #a0522d;
	--terre-fonce: #7a3e22;
	--sable: #faf5ef;
	--carte: #ffffff;
	--sable-carte: #f5ebe0;
	--accent: #ecd9c6;
	--encre: #2c1810;
	--encre-douce: #6b5444;
	--vert: #5a7a4f;
	--rouge: #b14545;
	--rayon: 14px;
	--titre: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
	--texte: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--sable);
	color: var(--encre);
	font-family: var(--texte);
	font-size: 16px;
	line-height: 1.5;
	padding: 0 16px calc(32px + env(safe-area-inset-bottom));
	overflow-wrap: anywhere;
}

.entete {
	max-width: 640px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0 10px;
}

.marque {
	margin: 0;
	font-family: var(--titre);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--terre);
}

.langue {
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--accent);
	border-radius: 999px;
	background: var(--carte);
	color: var(--encre);
	font: 600 14px var(--texte);
	cursor: pointer;
}

main { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; }

h1, h2 { font-family: var(--titre); font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }

.chargement { color: var(--encre-douce); text-align: center; padding: 40px 0; }

.carte {
	background: var(--carte);
	border: 1px solid var(--accent);
	border-radius: var(--rayon);
	padding: 18px;
	display: grid;
	gap: 12px;
}

.sejour { background: var(--sable-carte); }
.sejour .lignes { display: grid; gap: 4px; color: var(--encre-douce); font-size: 15px; }
.sejour strong { color: var(--encre); }

.etape-titre { display: flex; align-items: center; gap: 10px; }
.pastille {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 14px;
	background: var(--accent);
	color: var(--terre-fonce);
}
.pastille.faite { background: var(--vert); color: #fff; }

.texte-doc {
	max-height: 320px;
	overflow: auto;
	white-space: pre-wrap;
	font-size: 14px;
	line-height: 1.55;
	background: var(--sable);
	border: 1px solid var(--accent);
	border-radius: 10px;
	padding: 12px;
	-webkit-overflow-scrolling: touch;
}

label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--encre); }
.facultatif { font-weight: 400; color: var(--encre-douce); }

input, select {
	width: 100%;
	min-height: 48px;
	border: 1px solid #d9c4ae;
	border-radius: 10px;
	padding: 10px 12px;
	font: 16px var(--texte);
	color: var(--encre);
	background: #fff;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
	outline: 3px solid rgba(160, 82, 45, 0.35);
	outline-offset: 2px;
}

.grille { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .grille { grid-template-columns: 1fr 1fr; } }

.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.case input { width: 22px; min-height: 22px; height: 22px; margin-top: 1px; accent-color: var(--terre); flex: none; }

.bouton {
	min-height: 52px;
	border: 0;
	border-radius: 12px;
	padding: 12px 18px;
	background: var(--terre);
	color: #fff;
	font: 700 16px var(--texte);
	cursor: pointer;
	width: 100%;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.bouton:hover { background: var(--terre-fonce); }
.bouton[disabled] { background: #c7b3a3; cursor: not-allowed; }
.bouton.secondaire { background: var(--carte); color: var(--encre); border: 1px solid #d9c4ae; }
.bouton.whatsapp { background: #1f7a4d; }

.fichier {
	border: 1.5px dashed var(--terre);
	border-radius: 12px;
	background: var(--sable);
	padding: 14px;
	text-align: center;
	color: var(--terre-fonce);
	font-weight: 600;
	cursor: pointer;
	display: block;
}
.fichier input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.apercu { max-width: 100%; max-height: 220px; border-radius: 10px; justify-self: center; }

.ok { color: var(--vert); font-weight: 600; }
.erreur { color: var(--rouge); font-weight: 600; margin: 0; }
.note { color: var(--encre-douce); font-size: 14px; margin: 0; }

.bandeau { border-radius: var(--rayon); padding: 16px 18px; font-weight: 600; }
.bandeau.attente { background: #fff6e5; border: 1px solid #f0d9a8; }
.bandeau.valide { background: #eef5ea; border: 1px solid #c8dcbf; color: #2f4f27; }
.bandeau.refuse { background: #fbeeee; border: 1px solid #e8c4c4; color: #7d2d2d; }

.acces { white-space: pre-wrap; margin: 0; }
.adresse { margin: 0; font-weight: 600; }
.voyageur { background: var(--sable); }
h2.petit { font-size: 20px; }

@media (prefers-reduced-motion: no-preference) {
	.carte { animation: entree 260ms ease-out both; }
	@keyframes entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
