/* =========================================================
   Alsharidah Child — footer.css
   Réplique de Footer.tsx (React + Tailwind v4).
 
   Toutes les valeurs proviennent du source :
   - Footer.tsx pour la structure et les classes utilitaires
   - theme.css pour les variables et les règles globales
 
   Rappels de conversion Tailwind → CSS relevés dans le build :
   - rounded-lg  → var(--radius) = 1rem = 16px (et non 8px :
     theme.css redéfinit --radius-lg via @theme inline)
   - leading-loose → line-height 2
   - tracking-widest est neutralisé en RTL par la règle globale
     html[dir="rtl"] h5 { letter-spacing: normal !important }
   - box-shadow est désactivé globalement, aucun relief ici
   ========================================================= */
 
/* ---------------------------------------------------------
   1. Racine
   --------------------------------------------------------- */
 
.ash-footer {
	position: relative;
	overflow: hidden;
	direction: rtl;
	background-color: #071630;
	color: #fff;
}
 
/* Motif de calligraphie.
   Comme dans l'original : positionné avec z-index 0 tandis que les
   trois sections restent statiques. L'ordre de peinture CSS place
   donc le motif au-dessus du contenu ; pointer-events: none garde
   les liens cliquables. Ne pas ajouter de z-index aux sections,
   cela changerait le rendu par rapport au site d'origine. */
.ash-footer__pattern {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	user-select: none;
	background-image: url('../img/frame2.svg');
	background-size: 700px auto;
	background-repeat: repeat;
	background-position: center;
	filter: brightness(0) invert(1);
	opacity: 0.45;
}
 
/* Conteneur commun aux trois sections : max-w-7xl + px-5 sm:px-8 lg:px-12 */
.ash-footer__strip-inner,
.ash-footer__main,
.ash-footer__bottom-inner {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 1.25rem;
}
 
@media (min-width: 640px) {
 
	.ash-footer__strip-inner,
	.ash-footer__main,
	.ash-footer__bottom-inner {
		padding-inline: 2rem;
	}
}
 
@media (min-width: 1024px) {
 
	.ash-footer__strip-inner,
	.ash-footer__main,
	.ash-footer__bottom-inner {
		padding-inline: 3rem;
	}
}
 
/* ---------------------------------------------------------
   2. Section 1 — bandeau logo + réseaux sociaux
   --------------------------------------------------------- */
 
.ash-footer__strip {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
 
.ash-footer__strip-inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-block: 1.25rem;
}
 
@media (min-width: 640px) {
 
	.ash-footer__strip-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}
 
.ash-footer__brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}
 
.ash-footer__brand .custom-logo-link {
	display: flex;
	align-items: center;
	line-height: 0;
}
 
/* Logo : hauteurs h-10 / sm:h-11 / md:h-12 et filtre blanc (variant light). */
.ash-footer__brand .custom-logo {
	display: block;
	width: auto;
	height: 40px;
	max-width: clamp(160px, 50vw, 300px);
	object-fit: contain;
	filter: brightness(0) invert(1);
	user-select: none;
	transition: all 0.3s ease;
}
 
@media (min-width: 640px) {
 
	.ash-footer__brand .custom-logo {
		height: 44px;
	}
}
 
@media (min-width: 768px) {
 
	.ash-footer__brand .custom-logo {
		height: 48px;
	}
}
 
.ash-footer__social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}
 
/* Le fichier social.tsx définit un hover coloré par plateforme, mais
   Footer.tsx ne l'utilise pas : le footer applique un hover blanc
   uniforme. Ne pas réintroduire les couleurs de marque ici. */
.ash-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 9999px;
	color: rgba(255, 255, 255, 0.45);
	transition: all 0.2s ease;
}
 
.ash-footer__social-link:hover,
.ash-footer__social-link:focus-visible {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.3);
}
 
.ash-footer__social-link svg {
	width: 14px;
	height: 14px;
	display: block;
}
 
/* ---------------------------------------------------------
   3. Section 2 — colonnes
   --------------------------------------------------------- */
 
.ash-footer__main {
	padding-block: 3rem;
}
 
.ash-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}
 
@media (min-width: 640px) {
 
	.ash-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
 
	.ash-footer__col--about {
		grid-column: span 2 / span 2;
	}
}
 
@media (min-width: 1024px) {
 
	.ash-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
 
	.ash-footer__col--about {
		grid-column: span 1 / span 1;
	}
}
 
/* letter-spacing explicitement normal : c'est la valeur calculée en
   RTL sur le site d'origine, la règle globale annulant tracking-widest. */
.ash-footer__heading {
	margin: 0 0 1rem;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: normal;
	color: rgba(255, 255, 255, 0.4);
}
 
.ash-footer__text {
	margin: 0 0 1.5rem;
	font-size: 13px;
	line-height: 2;
	color: rgba(255, 255, 255, 0.55);
}
 
/* Coordonnées */
 
.ash-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
 
.ash-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
}
 
.ash-footer__contact-icon {
	flex-shrink: 0;
	margin-top: 0.125rem;
	color: var(--brand-green);
}
 
.ash-footer__contact-icon svg {
	display: block;
}
 
.ash-footer__contact-item a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}
 
.ash-footer__contact-item a:hover,
.ash-footer__contact-item a:focus-visible {
	color: #fff;
}
 
.ash-footer__contact-item a.ash-footer__email {
	word-break: break-all;
}
 
/* Listes de liens */
 
.ash-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
 
.ash-footer__links li {
	margin: 0;
}
 
.ash-footer__links a {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color 0.15s ease;
}
 
.ash-footer__links a:hover,
.ash-footer__links a:focus-visible {
	color: #fff;
}
 
/* Boutons de la colonne 4 */
 
.ash-footer__cta-group {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}
 
.ash-footer__btn {
	display: block;
	padding: 0.625rem 1rem;
	border-radius: var(--radius);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}
 
.ash-footer__btn--green {
	background-color: var(--brand-green);
	color: #fff;
	border: 0;
	transition: background-color 0.15s ease;
}
 
.ash-footer__btn--green:hover,
.ash-footer__btn--green:focus-visible {
	background-color: var(--brand-green-dark);
	color: #fff;
}
 
.ash-footer__btn--ghost {
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.6);
	transition: all 0.15s ease;
}
 
.ash-footer__btn--ghost:hover,
.ash-footer__btn--ghost:focus-visible {
	border-color: rgba(255, 255, 255, 0.25);
	background-color: rgba(255, 255, 255, 0.05);
	color: #fff;
}
 
/* ---------------------------------------------------------
   4. Section 3 — barre inférieure
   --------------------------------------------------------- */
 
.ash-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background-color: rgba(0, 0, 0, 0.25);
}
 
/* direction ltr : repris tel quel de l'original, c'est ce qui place
   la mention de copyright à gauche et le lien à droite. */
.ash-footer__bottom-inner {
	direction: ltr;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 0.875rem;
}
 
/* text-xs porte sa hauteur de ligne : calc(1 / 0.75), soit 16px.
   Sans elle, le <p> prend le line-height de 2.1 posé sur p par
   style.css (25.2px) et le lien celui du corps de page (24px) : la
   barre mesurait 54.2px au lieu de 45. Sous 768px, la règle
   `p { line-height: 2 !important }` reprend la main sur le <p>, ici
   comme dans le source. */
.ash-footer__copy {
	margin: 0;
	font-size: 0.75rem;
	line-height: calc(1 / 0.75);
	color: rgba(255, 255, 255, 0.3);
}
 
.ash-footer__bottom-link {
	font-size: 0.75rem;
	line-height: calc(1 / 0.75);
	color: rgba(255, 255, 255, 0.25);
	text-decoration: none;
	transition: color 0.15s ease;
}
 
.ash-footer__bottom-link:hover,
.ash-footer__bottom-link:focus-visible {
	color: rgba(255, 255, 255, 0.5);
}
 
/* ---------------------------------------------------------
   Version anglaise
   ---------------------------------------------------------
   Footer.tsx écrit direction: isRtl ? "rtl" : "ltr" : la règle
   .ash-footer ci-dessus n'en reprend que le cas arabe.
 
   Les titres de colonnes portent tracking-widest (0.1em dans le
   build). La règle html[dir="rtl"] h5 l'annule en arabe, d'où le
   letter-spacing: normal plus haut ; en anglais il s'applique. */
 
html[dir="ltr"] .ash-footer {
	direction: ltr;
}
 
html[dir="ltr"] .ash-footer__heading {
	letter-spacing: 0.1em;
}
 