/* =========================================================
   Alsharidah Child — contact.css
   Réplique de src/app/pages/Contact.tsx.

   Mêmes conventions de lecture que about.css, et mêmes
   valeurs relevées dans le CSS compilé :
   - rounded-2xl    → 1rem = 16px
   - rounded-xl     → calc(var(--radius) + 4px) = 20px
   - rounded-[2rem] → 32px
   - leading-loose 2 · relaxed 1.625 · tight 1.25
   - text-xs .75rem · sm .875rem · lg 1.125rem · xl 1.25rem
   - p-3.5 = 14px · gap-3.5 = 14px · space-y-4.5 = 18px

   Deux règles globales de theme.css jouent ici aussi :
   - box-shadow: none !important → les shadow-lg et shadow-sm
     du source ne produisent rien, ils ne sont pas repris
   - letter-spacing: normal !important en RTL → tracking-wide
     de l'intitulé des lignes est annulé, donc absent

   Le min-h-screen du source n'est pas repris : il portait sur
   un bloc contenant aussi le hero, que le thème rend en
   dehors de <main>. L'appliquer ici ajouterait une hauteur
   que l'original n'a pas.

   Le mode sombre est hors périmètre.
   ========================================================= */

.ash-contact {
	--ash-slate-50: #f8fafc;
	--ash-slate-200: #e2e8f0;
	--ash-slate-500: #64748b;
	--ash-slate-900: #0f172a;

	background-color: #fff;
}

/* Le thème parent souligne les liens de contenu. Le source ne
   souligne nulle part — Tailwind fait hériter text-decoration, et
   rien ne le pose — et footer.css neutralise déjà la règle de son
   côté. Mesuré le 22 septembre : underline sur les liens de cette
   page, none dans le pied de page et le hero.

   La règle porte sur la page entière : les trois seuls types de
   liens qu'elle contient — coordonnées, réseaux, bouton de la
   carte — sont tous concernés. */
.ash-contact a {
	text-decoration: none;
}

/* py-14 md:py-20 */
.ash-contact__section {
	padding-block: 3.5rem;
}

@media (min-width: 768px) {

	.ash-contact__section {
		padding-block: 5rem;
	}
}

/* max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 */
.ash-contact__container {
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: 1rem;
}

@media (min-width: 640px) {

	.ash-contact__container {
		padding-inline: 1.5rem;
	}
}

@media (min-width: 1024px) {

	.ash-contact__container {
		padding-inline: 2rem;
	}
}

/* flex flex-col lg:grid lg:grid-cols-12 gap-6 lg:gap-8 items-stretch */
.ash-contact__row {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

@media (min-width: 1024px) {

	.ash-contact__row {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 2rem;
		align-items: stretch;
	}

	.ash-contact__aside {
		grid-column: span 5 / span 5;
	}

	.ash-contact__map-col {
		grid-column: span 7 / span 7;
	}
}

/* w-full lg:col-span-5 flex flex-col justify-between gap-5 */
.ash-contact__aside {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.25rem;
	width: 100%;
}

/* w-full lg:col-span-7 h-full flex flex-col */
.ash-contact__map-col {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

/* ---------------------------------------------------------
   Carte commune
   --------------------------------------------------------- */

/* bg-slate-50 border border-slate-200/50 rounded-[2rem] p-6 md:p-8 text-start */
.ash-contact__card {
	padding: 1.5rem;
	background-color: var(--ash-slate-50);
	border: 1px solid rgba(226, 232, 240, 0.5);
	border-radius: 2rem;
	text-align: start;
}

@media (min-width: 768px) {

	.ash-contact__card {
		padding: 2rem;
	}
}

/* La carte des coordonnées occupe la hauteur restante de la
   colonne (flex-1 sur le Reveal qui l'enveloppe dans le
   source, repris ici sur la carte elle-même). */
.ash-contact__card--info {
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* space-y-6 */
.ash-contact__card--info > * + * {
	margin-top: 1.5rem;
}

/* space-y-4 */
.ash-contact__card--social > * + * {
	margin-top: 1rem;
}

/* ---------------------------------------------------------
   Titres et éléments partagés
   --------------------------------------------------------- */

/* flex items-center gap-2.5 text-xl font-extrabold font-display */
.ash-contact__title {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0;
	font-family: var(--font-display, 'IBM Plex Sans Arabic', system-ui, sans-serif);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--brand-navy);
}

/* text-lg, sur la seule carte des réseaux */
.ash-contact__title--sm {
	font-size: 1.125rem;
}

.ash-contact__dot {
	display: block;
	flex-shrink: 0;
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 9999px;
	background-color: var(--brand-green);
}

.ash-contact__dot--sm {
	width: 0.5rem;
	height: 0.5rem;
}

/* .brand-divider du source, redéfini localement : la classe
   globale n'existe pas dans le child theme, about.css fait
   de même. mt-2 vient du source. */
.ash-contact__divider {
	height: 3px;
	width: 64px;
	margin-top: 0.5rem;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--brand-navy), var(--brand-green));
}

/* text-xs text-muted-foreground leading-loose */
.ash-contact__lead {
	margin: 0;
	font-size: 0.75rem;
	line-height: 2;
	color: var(--muted-foreground);
}

/* ---------------------------------------------------------
   Les quatre lignes de coordonnées
   --------------------------------------------------------- */

/* space-y-4.5 pt-2 */
.ash-contact__list {
	padding-top: 0.5rem;
}

.ash-contact__list > * + * {
	margin-top: 1.125rem;
}

/* flex items-start gap-4 p-3.5 bg-white border rounded-2xl */
.ash-contact__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.875rem;
	background-color: #fff;
	border: 1px solid rgba(226, 232, 240, 0.5);
	border-radius: 1rem;
	transition: all 0.3s ease;
}

.ash-contact__item:hover {
	border-color: rgba(76, 175, 80, 0.25);
}

/* w-10 h-10 rounded-xl bg-green/10 text-green border border-green/10 */
.ash-contact__item-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgba(76, 175, 80, 0.1);
	border-radius: calc(var(--radius) + 4px);
	background-color: rgba(76, 175, 80, 0.1);
	color: var(--brand-green);
	transition: all 0.3s ease;
}

.ash-contact__item:hover .ash-contact__item-icon {
	background-color: var(--brand-green);
	color: #fff;
}

/* flex-1 min-w-0 text-start */
.ash-contact__item-body {
	flex: 1;
	min-width: 0;
	text-align: start;
}

/* text-[10px] font-bold uppercase font-english */
.ash-contact__item-label {
	font-family: var(--font-english, 'IBM Plex Sans', system-ui, sans-serif);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: uppercase;
	color: var(--muted-foreground);
}

/* font-bold text-xs sm:text-sm mt-0.5 */
.ash-contact__item-value {
	display: block;
	margin-top: 0.125rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--ash-slate-900);
}

/* inline-flex items-center gap-1.5 pour la variante lien */
.ash-contact__item-value--link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	transition: color 0.15s ease;
}

.ash-contact__item-value--link:hover {
	color: var(--brand-green);
}

.ash-contact__item-value--link svg {
	flex-shrink: 0;
	opacity: 0.75;
}

@media (min-width: 640px) {

	.ash-contact__item-value {
		font-size: 0.875rem;
	}
}

/* ---------------------------------------------------------
   Réseaux sociaux
   --------------------------------------------------------- */

/* flex flex-wrap gap-3.5 pt-3 border-t border-slate-200/60 */
.ash-contact__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.875rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(226, 232, 240, 0.6);
}

/* w-11 h-11 rounded-2xl bg-white border text-slate-500 */
.ash-contact__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	background-color: #fff;
	border: 1px solid rgba(226, 232, 240, 0.5);
	border-radius: 1rem;
	color: var(--ash-slate-500);
	transition: all 0.3s ease;
}

.ash-contact__social-link:hover {
	transform: scale(1.1) translateY(-0.125rem);
	border-color: rgba(76, 175, 80, 0.3);
	color: var(--brand-green);
}

/* Les tailles viennent de social.tsx, où elles ne sont pas
   uniformes ; elles sont écrites dans les attributs du SVG
   par alsharidah_social_icon(). */
.ash-contact__social-link svg {
	display: block;
}

/* ---------------------------------------------------------
   Carte géographique
   --------------------------------------------------------- */

/* p-5 md:p-8, coins moins arrondis sous 768px */
.ash-contact__card--map {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
	height: 100%;
	min-height: 380px;
	padding: 1.25rem;
	border-radius: 1rem;
}

@media (min-width: 768px) {

	.ash-contact__card--map {
		min-height: 500px;
		padding: 2rem;
		border-radius: 2rem;
	}
}

/* space-y-1.5 mb-5 */
.ash-contact__map-head {
	margin-bottom: 1.25rem;
}

.ash-contact__map-head > * + * {
	margin-top: 0.375rem;
}

/* rounded-xl md:rounded-[1.5rem] overflow-hidden border relative flex-1 */
.ash-contact__map-frame {
	position: relative;
	overflow: hidden;
	flex: 1;
	min-height: 260px;
	border: 1px solid rgba(226, 232, 240, 0.6);
	border-radius: calc(var(--radius) + 4px);
}

@media (min-width: 768px) {

	.ash-contact__map-frame {
		min-height: 350px;
		border-radius: 1.5rem;
	}
}

.ash-contact__map-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 350px;
	border: none;
}

/* absolute bottom-4 start-4 z-10 */
.ash-contact__map-action {
	position: absolute;
	bottom: 1rem;
	inset-inline-start: 1rem;
	z-index: 10;
}

/* rounded-full bg-navy text-white font-bold text-xs h-10 px-5 gap-1.5 */
.ash-contact__map-btn {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	height: 2.5rem;
	padding-inline: 1.25rem;
	border-radius: 9999px;
	background-color: var(--brand-navy);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	transition: all 0.3s ease;
}

.ash-contact__map-btn:hover {
	background-color: var(--brand-navy-dark, var(--brand-navy));
	color: #fff;
}

.ash-contact__map-btn svg {
	flex-shrink: 0;
}

/* ---------- Version anglaise ---------- */

/* tracking-* du source. La règle globale html[dir="rtl"] h1..h6,
   span, p, a, button { letter-spacing: normal !important } l'annule
   en arabe ; en anglais elle ne joue pas et la valeur du build
   s'applique (Tailwind 4.1.12 : tight -0.025em, wide 0.025em,
   wider 0.05em, widest 0.1em). Toutes les règles ci-dessous sont
   limitées à html[dir="ltr"] : la version arabe n'en reçoit aucune. */

/* Contact.tsx l.51 : tracking-wide. */
html[dir="ltr"] .ash-contact__item-label {
	letter-spacing: 0.025em;
}
