/*
Theme Name: Kaytaran
Template: generatepress
Version: 1.0.1
Description: Thème enfant GeneratePress pour kaytaran.com (arabe par défaut + français).
Text Domain: kaytaran
*/

/* Palette : encre (texte), bleu Majorelle (liens, accents), safran (repère visuel du hero),
   fond teinté froid, vert WhatsApp réservé aux boutons de contact. */
:root {
	--k-ink: #14213d;
	--k-majorelle: #3346c8;
	--k-saffron: #f2b33d;
	--k-tint: #f2f4fb;
	--k-wa: #1e9e57;
	--k-wa-dark: #177a43;
	--k-radius: 10px;
}

body,
button,
input,
select,
textarea {
	font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

body {
	color: var(--k-ink);
	font-size: 18px;
	line-height: 1.7;
}

h1,
h2,
h3 {
	color: var(--k-ink);
	font-weight: 700;
	line-height: 1.25;
}

h1 {
	font-size: clamp(2rem, 4.5vw + 1rem, 3.4rem);
	margin-bottom: 0.5em;
}

h2 {
	font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem);
}

h3 {
	font-size: clamp(1.2rem, 1vw + 1rem, 1.45rem);
}

a {
	color: var(--k-majorelle);
}

.entry-content p,
.entry-content li {
	max-width: 70ch;
}

:focus-visible {
	outline: 3px solid var(--k-saffron);
	outline-offset: 3px;
}

/* En-tête de l'accueil : une barre safran sur le côté de début de ligne
   (à droite en arabe, à gauche en français), seul élément décoratif du site. */
.kaytaran-hero {
	padding-block: clamp(2.5rem, 8vw, 6rem);
	padding-inline-start: clamp(1rem, 3vw, 2rem);
	border-inline-start: 6px solid var(--k-saffron);
}

.kaytaran-hero p {
	font-size: 1.15em;
}

/* Une section sur deux sur fond teinté. */
.kaytaran-tint {
	background: var(--k-tint);
	border-radius: var(--k-radius);
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
	margin-block: clamp(2rem, 5vw, 3rem);
}

/* Bouton WhatsApp (shortcode [kaytaran_wa]). */
.kaytaran-wa-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	background: var(--k-wa);
	color: #fff;
	font-weight: 700;
	padding: 0.85em 1.5em;
	border-radius: 999px;
	text-decoration: none;
}

.kaytaran-wa-btn svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.kaytaran-wa-btn:hover,
.kaytaran-wa-btn:focus-visible {
	background: var(--k-wa-dark);
	color: #fff;
}

/* Bouton secondaire (style « contour » des blocs Boutons). */
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--k-majorelle);
	color: var(--k-majorelle);
	background: transparent;
	border-radius: 999px;
	font-weight: 700;
}

/* Bouton WhatsApp flottant, côté fin de ligne, au-dessus de la barre système des téléphones. */
.kaytaran-wa-float {
	position: fixed;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	inset-inline-end: 20px;
	z-index: 999;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	background: var(--k-wa);
	color: #fff;
	font-weight: 700;
	padding: 0.75em 1.1em;
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(20, 33, 61, 0.25);
	text-decoration: none;
}

.kaytaran-wa-float:hover,
.kaytaran-wa-float:focus-visible {
	background: var(--k-wa-dark);
	color: #fff;
}

.kaytaran-wa-float svg {
	width: 20px;
	height: 20px;
	flex: none;
}

@media (max-width: 600px) {
	.kaytaran-wa-float {
		padding: 0.9em;
	}

	.kaytaran-wa-float__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}
