/* Page d'attente EntreTunisiens — d'après les maquettes validées (sources/maquettes).
   Conçue d'abord pour le téléphone (360 px), puis 768 et 1280 px. Propriétés logiques (inline/block)
   pour que la mise en page s'inverse correctement en arabe (dir="rtl"). */

@font-face {
	font-family: "DM Serif Display";
	src: url("/assets/fonts/dm-serif-display-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Noto Kufi Arabic";
	src: url("/assets/fonts/noto-kufi-arabic-arabic-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Noto Kufi Arabic";
	src: url("/assets/fonts/noto-kufi-arabic-arabic-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

:root {
	--marine: #14254f;
	--marine-clair: #1f3a78;
	--bleu-sidi: #1d63c8;
	--or: #ffc21a;
	--or-fonce: #e9a400;
	--rouge: #e30a17;
	--sable: #fbf6ee;
	--texte: #1b2440;
	--texte-doux: #4f5a78;
	--carte: #ffffff;
	--rayon: 22px;
	--ombre: 0 18px 40px -18px rgba(20, 37, 79, 0.35);
	--police-texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--police-titre: "DM Serif Display", Georgia, "Times New Roman", serif;
	--police-arabe: "Noto Kufi Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--police-texte);
	font-size: 1rem;
	line-height: 1.55;
	color: var(--texte);
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(255, 194, 26, 0.18), transparent 60%),
		radial-gradient(900px 500px at -10% 30%, rgba(29, 99, 200, 0.10), transparent 60%),
		var(--sable);
	overflow-x: hidden;
}

/* Arabe : police adaptée partout, y compris les titres (pas d'empattements latins). */
[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] .bientot,
html[lang="ar"] .apercus__titre {
	font-family: var(--police-arabe);
}

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

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

.entete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 16px;
	padding-inline: max(16px, env(safe-area-inset-left));
}

.marque {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	text-decoration: none;
}

.marque__logo {
	width: 40px;
	height: 40px;
	flex: none;
	filter: drop-shadow(0 4px 8px rgba(227, 10, 23, 0.25));
}

.marque__nom {
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.marque__entre {
	color: var(--marine);
}

.marque__tunisiens {
	color: var(--rouge);
}

.langues {
	display: inline-flex;
	flex: none;
	padding: 3px;
	border-radius: 999px;
	background: var(--carte);
	box-shadow: 0 2px 10px rgba(20, 37, 79, 0.10);
}

.langues__choix {
	min-width: 40px;
	min-height: 36px;
	padding: 0 9px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--marine);
	font: 600 0.85rem/1 var(--police-texte);
	cursor: pointer;
}

.langues__choix[lang="ar"] {
	font-family: var(--police-arabe);
	font-size: 0.9rem;
}

.langues__choix[aria-pressed="true"] {
	background: var(--marine);
	color: #fff;
}

.langues__choix:focus-visible {
	outline: 3px solid var(--or);
	outline-offset: 2px;
}

/* ---------- Accueil : accroche et « Bientôt… » ---------- */

.accueil {
	display: grid;
	gap: 28px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 16px 40px;
}

.accroche {
	display: inline-block;
	margin: 0;
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--marine);
}

/* Trait doré sous l'accroche, comme sur les maquettes. */
.accroche::after {
	content: "";
	display: block;
	width: 72px;
	height: 4px;
	margin-top: 8px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--or), var(--rouge));
}

html[dir="rtl"] .accroche::after {
	background: linear-gradient(270deg, var(--or), var(--rouge));
}

.bientot {
	margin: 18px 0 22px;
	font-family: var(--police-titre);
	font-weight: 400;
	font-size: clamp(3.4rem, 17vw, 7.5rem);
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--marine);
}

html[lang="ar"] .bientot {
	font-weight: 700;
	font-size: clamp(3rem, 15vw, 6.5rem);
	line-height: 1.3;
	letter-spacing: 0;
}

html[lang="en"] .bientot {
	font-size: clamp(2.7rem, 13.5vw, 6.4rem);
}

/* Surlignage doré du mot, comme « mondiale » sur la maquette carte. */
.bientot__mot {
	background: linear-gradient(transparent 68%, rgba(255, 194, 26, 0.85) 68%, rgba(255, 194, 26, 0.85) 92%, transparent 92%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	padding-inline: 0.04em;
}

.promesse {
	max-width: 36rem;
	margin: 0 0 22px;
	font-size: 1.08rem;
	color: var(--texte-doux);
}

html[lang="ar"] .promesse {
	line-height: 1.9;
}

.atouts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.atouts li {
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--carte);
	box-shadow: 0 2px 10px rgba(20, 37, 79, 0.08);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--marine);
}

.atouts li:first-child {
	background: var(--or);
}

/* Visuel : Sidi Bou Saïd, ruelle et sceau du logo. */
.accueil__visuel {
	position: relative;
	padding-block-end: 26px;
}

.visuel__principal {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: 30% 40%;
	border-radius: var(--rayon);
	box-shadow: var(--ombre);
}

.visuel__secondaire {
	display: none;
}

.visuel__sceau {
	position: absolute;
	inset-inline-end: 16px;
	inset-block-end: 0;
	width: 60px;
	height: 60px;
	padding: 8px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--ombre);
}

/* ---------- Aperçus ---------- */

.apercus {
	position: relative;
	margin: 0 auto;
	padding: 40px 16px 44px;
	background:
		radial-gradient(700px 300px at 90% 0%, rgba(255, 194, 26, 0.18), transparent 70%),
		linear-gradient(160deg, var(--marine) 0%, var(--marine-clair) 100%);
	color: #fff;
}

.apercus__titre {
	max-width: 1200px;
	margin: 0 auto 22px;
	font-family: var(--police-titre);
	font-weight: 400;
	font-size: clamp(2rem, 8vw, 2.8rem);
	line-height: 1.1;
}

.apercus__titre::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 10px;
	border-radius: 4px;
	background: var(--or);
}

.apercus__grille {
	display: grid;
	gap: 18px;
	max-width: 1200px;
	margin: 0 auto;
}

.apercu {
	margin: 0;
	overflow: hidden;
	border-radius: var(--rayon);
	background: var(--carte);
	color: var(--texte);
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.apercu img {
	width: 100%;
	background: #eef1f8;
}

.apercu figcaption {
	display: grid;
	gap: 4px;
	padding: 14px 18px 18px;
}

.apercu figcaption strong {
	font-size: 1.08rem;
	color: var(--marine);
}

.apercu figcaption span {
	color: var(--texte-doux);
	font-size: 0.95rem;
}

.apercus__note {
	max-width: 1200px;
	margin: 18px auto 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.75);
}

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

.pied {
	padding: 22px 16px 28px;
	text-align: center;
	font-size: 0.88rem;
	color: var(--texte-doux);
}

.pied p {
	margin: 4px 0;
}

/* ---------- Tablette (768 px et plus) ---------- */

@media (min-width: 700px) {
	.entete {
		padding: 20px 28px;
	}

	.marque__logo {
		width: 48px;
		height: 48px;
	}

	.marque__nom {
		font-size: 1.5rem;
	}

	.accueil {
		padding: 16px 28px 56px;
	}

	.apercus {
		padding: 56px 28px 60px;
	}

	.apercus__grille {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.apercu--large {
		grid-column: 1 / -1;
	}
}

/* ---------- Ordinateur (1080 px et plus) ---------- */

@media (min-width: 1080px) {
	.accueil {
		grid-template-columns: 1.05fr 1fr;
		align-items: center;
		gap: 48px;
		padding-block: 40px 80px;
	}

	.accueil__visuel {
		padding: 0 0 40px;
		padding-inline-start: 60px;
	}

	.visuel__principal {
		aspect-ratio: 4 / 3.4;
		object-position: 40% 50%;
	}

	.visuel__secondaire {
		display: block;
		position: absolute;
		inset-inline-start: 0;
		inset-block-end: 0;
		width: 34%;
		aspect-ratio: 3 / 4;
		object-fit: cover;
		border: 6px solid #fff;
		border-radius: 18px;
		box-shadow: var(--ombre);
	}

	.visuel__sceau {
		inset-inline-end: -18px;
		inset-block-end: auto;
		inset-block-start: -18px;
		width: 84px;
		height: 84px;
		padding: 10px;
	}

	.apercus {
		padding: 72px 40px 76px;
	}

	.apercus__grille {
		gap: 22px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.bientot__mot {
		animation: apparition 900ms ease-out both;
	}

	@keyframes apparition {
		from {
			opacity: 0;
		}
		to {
			opacity: 1;
		}
	}
}
