/*
 * Riwaq — modernisation du site entier (lot 10). Chargé partout après le thème, le CSS de Riwaq Core
 * et le CSS additionnel (sélecteurs préfixés par « body » pour passer devant).
 * Même langage que la grande section d'accueil : vert nuit, or, crème ; titres en casse naturelle ;
 * cartes arrondies ; boutons en pilule ; mouvements courts (moins de 300 ms, ease-out fort),
 * survols réservés à la souris, mouvement réduit respecté.
 */
:root {
	--rq-ink: #111c18;
	--rq-ink-2: #2a3a33;
	--rq-gold: #bc9b6a;
	--rq-gold-l: #e2c999;
	--rq-gold-d: #9c7d4f;
	--rq-soft: #faf6ef;
	--rq-line: #e6dfd3;
	--rq-text: #3d4844;
	--rq-muted: #6f6f6a;
	--rq-radius: 16px;
	--rq-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--rq-shadow-sm: 0 1px 2px rgba(17, 28, 24, .05), 0 4px 14px rgba(17, 28, 24, .05);
	--rq-shadow: 0 2px 4px rgba(17, 28, 24, .04), 0 16px 36px rgba(17, 28, 24, .10);
}

/* ================================================================ Titres : casse naturelle, plus fins */
body h1, body h2, body .entry-title, body .page-title,
body .riwaq-h1, body .riwaq-h2-section, body .riwaq-h2-section-light, body .riwaq-h3-card {
	text-transform: none; letter-spacing: -0.01em; text-wrap: balance;
}
body .entry-content h1, body .riwaq-h1, body .hero-section .page-title, body .entry-header .page-title {
	font-size: clamp(32px, 4.4vw, 54px); line-height: 1.1; font-weight: 500;
}
body .entry-content h2, body .riwaq-h2-section, body .riwaq-h2-section-light {
	font-size: clamp(27px, 3.2vw, 40px); line-height: 1.15; font-weight: 500;
}
body .entry-content h3 { line-height: 1.25; text-wrap: balance; }
body .riwaq-h3-course { font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; line-height: 1.2; }
body .riwaq-h3-card { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }
body .riwaq-h4-hadith { font-size: 1.1rem; line-height: 1.6; }

/* Petits titres au-dessus (comme « Institut Riwaq · cours… ») */
body .riwaq-eyebrow, body .riwaq-caption-gold {
	font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--rq-gold-d);
}
body .riwaq-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--rq-gold-d); }
body .riwaq-body, body .riwaq-body-small, body .riwaq-body-library, body .riwaq-checklist { color: var(--rq-text); }

/* ================================================================ Sections */
body .riwaq-sec-hero { background: var(--rq-soft); padding: clamp(56px, 8vw, 104px) 20px clamp(32px, 4vw, 48px) !important; margin-top: 0 !important; margin-bottom: 0 !important; display: flow-root; }
/* Les sections gardent leurs marges à l'intérieur (sinon une bande blanche apparaît entre deux fonds). */
body .riwaq-sec-cream, body .riwaq-sec-white, body .riwaq-sec-dark { display: flow-root; }
body .riwaq-sec-cream { background: var(--rq-soft); padding: clamp(56px, 8vw, 104px) 20px; }
body .riwaq-sec-white { background: #fff; padding: clamp(56px, 8vw, 104px) 20px; }
body .riwaq-sec-dark {
	position: relative; isolation: isolate; padding: clamp(64px, 9vw, 120px) 20px;
	background:
		radial-gradient(55% 60% at 85% 15%, rgba(188, 155, 106, .18), transparent 70%),
		radial-gradient(45% 50% at 10% 90%, rgba(188, 155, 106, .10), transparent 70%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23bc9b6a' stroke-opacity='.10' stroke-width='.7'%3E%3Cpath d='M48 0l14.1 14.1h19.8v19.8L96 48 81.9 62.1v19.8H62.1L48 96 33.9 81.9H14.1V62.1L0 48l14.1-14.1V14.1h19.8z'/%3E%3Cpath d='M48 0l14.1 14.1h19.8v19.8L96 48 81.9 62.1v19.8H62.1L48 96 33.9 81.9H14.1V62.1L0 48l14.1-14.1V14.1h19.8z' transform='translate(26.4 26.4) scale(.45)' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E"),
		#111c18;
	background-size: auto, auto, 144px 144px, auto;
}
body .riwaq-sec-dark .riwaq-h2-section-light { color: #faf6ef; }

/* ================================================================ Citation (hadith) */
body .riwaq-quote, body .entry-content blockquote.wp-block-quote:not(.is-style-plain) {
	position: relative; border: 0 !important; margin: 36px auto 44px; padding: 34px clamp(20px, 4vw, 48px) 26px; max-width: 820px;
	background: #fff; border-radius: var(--rq-radius); box-shadow: var(--rq-shadow-sm); text-align: center;
}
body .riwaq-quote::before, body .entry-content blockquote.wp-block-quote:not(.is-style-plain)::before {
	content: "❝"; position: absolute; top: -20px; left: 50%; translate: -50% 0; display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%; background: var(--rq-ink); color: var(--rq-gold-l); font-size: 18px; line-height: 1;
}
body .riwaq-quote p, body .entry-content blockquote.wp-block-quote p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; color: var(--rq-text); }
body .riwaq-quote cite, body .entry-content blockquote.wp-block-quote cite { font-size: 12px; letter-spacing: .18em; color: var(--rq-gold-d); margin-top: 16px; }
body .riwaq-quote-dark { background: rgba(250, 246, 239, .05); border: 1px solid rgba(188, 155, 106, .25) !important; border-radius: var(--rq-radius); padding: 24px 28px !important; }

/* ================================================================ Cartes */
body .riwaq-card, body .riwaq-card-white, body .riwaq-card-library, body .riwaq-bio-card, body .riwaq-lib-card {
	border-radius: var(--rq-radius); border: 1px solid var(--rq-line); box-shadow: none;
	transition: transform 220ms var(--rq-ease-out), box-shadow 220ms ease, border-color 220ms ease;
}
body .riwaq-card { background: #fff; }
body .riwaq-card-library { background: #fff; border-color: var(--rq-line); }
body .riwaq-col-bordered { border-left: 2px solid rgba(188, 155, 106, .55); padding-left: clamp(18px, 3vw, 34px); }
body .riwaq-coupon-code { border-radius: 8px; padding: 7px 14px; }
body .riwaq-sep-gold { width: 64px !important; height: 2px !important; margin: 28px auto !important; border: 0 !important; background: var(--rq-gold) !important; opacity: .7; }
body .riwaq-checklist li { margin: 6px 0; }
body .riwaq-checklist li::before { content: "◆"; font-size: .7em; vertical-align: .15em; margin-right: 10px; color: var(--rq-gold); }

/* ================================================================ Boutons (contenu, boutique, formulaires) */
body .wp-block-button__link, body .entry-content .button, body .woocommerce .button, body .woocommerce button.button,
body .woocommerce a.button, body .woocommerce input.button, body .wpforms-form button[type=submit], body .entry-content button[type=submit],
body .ct-button, body .wc-block-components-button:not(.is-link) {
	border-radius: 999px !important; min-height: 46px; padding: 12px 28px !important; text-transform: none !important; letter-spacing: .01em !important;
	font-weight: 600 !important; font-size: 15px !important; line-height: 1.2;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 160ms var(--rq-ease-out) !important;
}
body .wp-block-button__link:active, body .woocommerce .button:active, body .woocommerce button.button:active, body .woocommerce a.button:active,
body .wpforms-form button[type=submit]:active, body .entry-content button[type=submit]:active, body .ct-button:active,
body .wc-block-components-button:active { transform: scale(0.97); }
body .wp-block-button:not(.is-style-outline) .wp-block-button__link { box-shadow: 0 6px 18px rgba(17, 28, 24, .12); }
body .riwaq-btn-gold .wp-block-button__link { color: var(--rq-ink) !important; box-shadow: 0 8px 22px rgba(188, 155, 106, .28); }
body .wp-block-button__link:focus-visible, body .woocommerce .button:focus-visible, body .ct-button:focus-visible { outline: 2px solid var(--rq-gold); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
	body .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover, body .woocommerce .button:hover, body .ct-button:hover { box-shadow: 0 10px 26px rgba(17, 28, 24, .18); }
}

/* ================================================================ Champs de formulaire */
body .entry-content input[type=text], body .entry-content input[type=email], body .entry-content input[type=tel], body .entry-content input[type=number],
body .entry-content input[type=url], body .entry-content input[type=password], body .entry-content input[type=date], body .entry-content select, body .entry-content textarea,
body .woocommerce form input.input-text, body .woocommerce form select, body .woocommerce form textarea, body .wpforms-form input:not([type=checkbox]):not([type=radio]):not([type=submit]),
body .wpforms-form select, body .wpforms-form textarea {
	border: 1px solid var(--rq-line) !important; border-radius: 10px !important; background-color: #fff !important; min-height: 46px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}
body .entry-content textarea, body .woocommerce form textarea, body .wpforms-form textarea { min-height: 120px; }
body .entry-content input:focus, body .entry-content select:focus, body .entry-content textarea:focus, body .woocommerce form .input-text:focus,
body .woocommerce form select:focus, body .wpforms-form input:focus, body .wpforms-form select:focus, body .wpforms-form textarea:focus {
	border-color: var(--rq-gold) !important; box-shadow: 0 0 0 3px rgba(188, 155, 106, .22) !important; outline: none !important;
}

/* ================================================================ Articles */
body.single-post .entry-content > p, body.single-post .entry-content > ul, body.single-post .entry-content > ol { font-size: 18px; line-height: 1.8; color: var(--rq-text); }
body.single-post .entry-content > .riwaq-lead, body.single-post .entry-content > p.riwaq-lead { color: var(--rq-gold-d); font-size: clamp(17px, 1.6vw, 20px); }
body.single-post .entry-content > h2 { margin-top: 1.8em; }
body.single-post .entry-content img, body .wp-block-image img, body .wp-block-latest-posts__featured-image img { border-radius: 14px; }
body .entry-meta, body .ct-meta-element { letter-spacing: .08em; }

/* Listes d'articles (blog, catégories, derniers articles) */
body .entries > article, body .wp-block-latest-posts li {
	border-radius: var(--rq-radius); transition: transform 220ms var(--rq-ease-out), box-shadow 220ms ease;
}
body .entries > article .ct-media-container, body .entries > article .ct-image-container { border-radius: 14px; overflow: hidden; }
body .entries > article .ct-media-container img, body .entries > article .ct-image-container img { transition: transform 600ms var(--rq-ease-out); }

/* ================================================================ Boutique (catalogue, fiche, panier) */
body .woocommerce ul.products li.product, body [data-products] .product {
	border-radius: var(--rq-radius); transition: transform 220ms var(--rq-ease-out), box-shadow 220ms ease;
}
body [data-products] .product figure, body .woocommerce ul.products li.product .ct-media-container { border-radius: 14px; overflow: hidden; }
body [data-products] .product figure img { transition: transform 600ms var(--rq-ease-out); }
body .woocommerce table.shop_table { border-radius: var(--rq-radius) !important; overflow: hidden; border-color: var(--rq-line) !important; }
body .woocommerce-info, body .woocommerce-message, body .woocommerce-error { border-radius: 12px; }
body .woocommerce-MyAccount-navigation ul li a { border-radius: 10px; transition: background-color 160ms ease, color 160ms ease; }

/* ================================================================ Pied de page */
body .ct-footer { background-color: var(--rq-soft) !important; border-top: 1px solid var(--rq-line); }
body .ct-footer a { transition: color 160ms ease; }

/* ================================================================ Liens du contenu */
body .entry-content p a:not(.wp-block-button__link), body .entry-content li a:not(.wp-block-button__link) {
	text-decoration: underline; text-decoration-color: rgba(188, 155, 106, .6); text-underline-offset: 3px; text-decoration-thickness: 1px;
	transition: text-decoration-color 160ms ease, color 160ms ease;
}

/* ================================================================ Survols : seulement à la souris */
@media (hover: hover) and (pointer: fine) {
	body .riwaq-card:hover, body .riwaq-card-white:hover, body .riwaq-card-library:hover, body .riwaq-bio-card:hover, body .riwaq-lib-card:hover {
		transform: translateY(-3px); box-shadow: var(--rq-shadow); border-color: #d9cdb8;
	}
	body .entries > article:hover .ct-media-container img, body .entries > article:hover .ct-image-container img,
	body [data-products] .product:hover figure img { transform: scale(1.04); }
	body .wp-block-latest-posts li:hover, body [data-products] .product:hover { transform: translateY(-3px); }
	body .entry-content p a:not(.wp-block-button__link):hover, body .entry-content li a:not(.wp-block-button__link):hover { text-decoration-color: var(--rq-ink); }
	body .ct-footer a:hover { color: var(--rq-gold-d) !important; }
}

/* ================================================================ Apparition au défilement (ajoutée par modern.js) */
.rq-reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 700ms var(--rq-ease-out); }
.rq-reveal.is-in { opacity: 1; transform: none; }

/* ================================================================ Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
	body .riwaq-card, body .riwaq-card-white, body .riwaq-card-library, body .riwaq-bio-card, body .riwaq-lib-card,
	body [data-products] .product, body .entries > article, body .wp-block-latest-posts li { transition: box-shadow 200ms ease, border-color 200ms ease; transform: none !important; }
	body .entries > article img, body [data-products] .product figure img { transition: none; transform: none !important; }
	.rq-reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================================================ Boutique : cartes produits, pastilles, prix */
body .woocommerce ul.products li.product, body [data-products] > li.product {
	background: #fff !important; border: 1px solid var(--rq-line) !important; border-radius: var(--rq-radius) !important;
	box-shadow: none !important; overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
	body .woocommerce ul.products li.product:hover, body [data-products] > li.product:hover { box-shadow: var(--rq-shadow) !important; border-color: #d9cdb8 !important; }
}
body .woocommerce ul.products li.product .woocommerce-loop-product__title, body [data-products] .woocommerce-loop-product__title { font-size: 18px !important; font-weight: 600; line-height: 1.3; }
body .product-level .level-badge {
	border-radius: 999px !important; padding: 4px 10px !important; font-size: 12px !important; letter-spacing: .08em !important;
	background: rgba(17, 28, 24, .72) !important; color: #faf6ef !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
body .woocommerce ul.products li.product .ct-woo-card-actions .riwaq-price-link {
	box-shadow: none !important; border: 1px solid var(--rq-line) !important; border-radius: 999px !important; padding: 2px 14px !important;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms var(--rq-ease-out) !important;
}
body .woocommerce ul.products li.product .ct-woo-card-actions .riwaq-price-link:active { transform: scale(0.97); }

/* Barre de filtres de la boutique (remplace YITH) */
.rq-shopbar { max-width: 1180px; margin: 6px auto 26px; text-align: center; }
.rq-shopbar-head { margin-bottom: 18px; }
.rq-shopbar .rq-hero-eyebrow { margin: 0 0 6px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--rq-gold-d); }
.rq-shopbar-title { margin: 0 0 16px !important; font-size: clamp(30px, 3.8vw, 44px) !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: -0.01em !important; }
.rq-search { position: relative; display: block; max-width: 460px; margin: 0 auto; color: var(--rq-muted); }
.rq-search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; pointer-events: none; }
.rq-search input { width: 100%; min-height: 48px !important; padding: 0 18px 0 44px !important; border-radius: 999px !important; border: 1px solid var(--rq-line) !important; background: #fff !important; font: inherit; font-size: 15px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.rq-search input:focus { border-color: var(--rq-gold) !important; box-shadow: 0 0 0 3px rgba(188, 155, 106, .22) !important; outline: none; }
.rq-shopbar .rq-cat-filters { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 10px; }
.rq-shopbar .rq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rq-shopbar .rq-chip { appearance: none; font: inherit; font-size: 15px; padding: 8px 16px; border-radius: 999px; cursor: pointer; background: #fff; border: 1px solid var(--rq-line); color: var(--rq-ink); transition: transform 160ms var(--rq-ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.rq-shopbar .rq-chip:active { transform: scale(0.97); }
.rq-shopbar .rq-chip.is-on { background: var(--rq-ink); border-color: var(--rq-ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .rq-shopbar .rq-chip:not(.is-on):hover { border-color: var(--rq-gold); } }
.rq-shopbar .rq-cat-count { margin: 4px 0 0; font-size: 14px; color: var(--rq-muted); }
.rq-shopbar .rq-cat-empty { padding: 24px; color: var(--rq-muted); }
.rq-shopbar .rq-link { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--rq-ink); text-decoration: underline; text-decoration-color: var(--rq-gold); text-underline-offset: 3px; cursor: pointer; }
body.rq-has-shopbar .woocommerce-pagination, body.rq-has-shopbar .ct-pagination { display: none; }
@media (max-width: 600px) {
	.rq-shopbar .rq-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
	.rq-shopbar .rq-chips::-webkit-scrollbar { display: none; }
	.rq-shopbar .rq-chip { flex: none; }
	/* Les pastilles qui ne tiennent pas s'effacent à droite : on comprend qu'il y en a d'autres (comme les onglets de Mon espace). */
	.rq-shopbar .rq-chips { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
	.rq-shopbar .rq-chips::after { content: ""; flex: none; width: 28px; }
}

/* ================================================================ Fiche cours (produit) */
body.single-product .product_title { font-size: clamp(30px, 3.4vw, 42px) !important; font-weight: 500 !important; letter-spacing: -0.01em; text-transform: none !important; }
body.single-product .course-description-short, body.single-product form.variations_form, body.single-product .product-custom-calculator, body.single-product .product-info-box {
	border: 1px solid var(--rq-line) !important; border-radius: var(--rq-radius) !important; background: #fff !important; box-shadow: none !important;
}
body.single-product .product-custom-calculator .info-box { border-radius: 12px !important; border-color: var(--rq-line) !important; background: var(--rq-soft) !important; }
body.single-product .woocommerce-product-gallery img, body.single-product .ct-product-gallery-container img, body.single-product .woocommerce-product-gallery .ct-media-container { border-radius: var(--rq-radius); }
body.single-product .single_add_to_cart_button, body.single-product .riwaq-cta-button {
	width: 100%; justify-content: center; text-align: center; border-radius: 999px !important; min-height: 52px; font-size: 16px !important; font-weight: 600 !important;
	box-shadow: 0 8px 22px rgba(17, 28, 24, .14); transition: background-color 180ms ease, box-shadow 180ms ease, transform 160ms var(--rq-ease-out) !important;
}
body.single-product .riwaq-cta-button { display: flex !important; align-items: center; margin-top: 10px; background: var(--rq-gold) !important; border-color: var(--rq-gold) !important; color: var(--rq-ink) !important; box-shadow: 0 8px 22px rgba(188, 155, 106, .28); }
body.single-product .single_add_to_cart_button:active, body.single-product .riwaq-cta-button:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
	body.single-product .single_add_to_cart_button:hover { background: var(--rq-ink-2) !important; }
	body.single-product .riwaq-cta-button:hover { background: #cdb07f !important; }
}
body.single-product .woocommerce-tabs ul.tabs li a { border-radius: 999px; transition: background-color 160ms ease, color 160ms ease; }
body.single-product .variations select { border-radius: 10px !important; border-color: var(--rq-line) !important; min-height: 46px; }
body.single-product .product-custom-calculator, body.single-product .product-custom-calculator *:not(i):not(.fa):not([class*="fa-"]) { font-family: inherit !important; }
body.single-product .summary select, body.single-product .summary input[type=text], body.single-product .summary input[type=email], body.single-product .summary input[type=tel] {
	min-height: 44px !important; border-radius: 10px !important; border: 1px solid var(--rq-line) !important; background-color: #fff !important; padding-left: 12px !important;
}
body.single-product .summary select:focus, body.single-product .summary input:focus { border-color: var(--rq-gold) !important; box-shadow: 0 0 0 3px rgba(188, 155, 106, .22) !important; outline: none; }
body.single-product .calculator-results > * { border-radius: 12px !important; }

/* Bouton placé juste après une section : même fond que la section, sans bande blanche. */
body .riwaq-sec-hero + .wp-block-buttons, body .riwaq-sec-cream + .wp-block-buttons {
	background: var(--rq-soft); margin: 0 !important; padding: 0 20px clamp(48px, 6vw, 80px); max-width: none !important; width: 100%;
}
body .riwaq-sec-hero:has(+ .wp-block-buttons) { padding-bottom: 8px !important; }

/* Citation sur fond sombre : carte translucide, texte clair. */
body .riwaq-sec-dark blockquote.wp-block-quote, body .riwaq-sec-dark .riwaq-quote-dark {
	background: rgba(250, 246, 239, .05) !important; border: 1px solid rgba(188, 155, 106, .28) !important; box-shadow: none !important;
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
body .riwaq-sec-dark blockquote.wp-block-quote::before { background: var(--rq-gold) !important; color: var(--rq-ink) !important; }
body .riwaq-sec-dark blockquote.wp-block-quote p, body .riwaq-sec-dark .riwaq-quote-dark p { color: #f1ebe0 !important; }
body .riwaq-sec-dark blockquote.wp-block-quote cite { color: var(--rq-gold-l) !important; }

/* Arabe : police calligraphique (Amiri, licence libre, déjà dans le dépôt). */
@font-face { font-family: 'Amiri'; font-weight: 400; font-display: swap; src: url('../../academie/assets/fonts/amiri-arabic-400-normal.woff2') format('woff2'); }
body .riwaq-arabic, body .riwaq-arabic-dark, body [lang="ar"] { font-family: 'Amiri', serif !important; line-height: 1.9; }
body .riwaq-arabic-dark { color: var(--rq-gold-l) !important; font-size: clamp(22px, 2.4vw, 28px) !important; }

/* Bandeau auteur / date des articles et des pages : blanc, filet fin (plus de gris). */
body .hero-section[data-type="type-2"], body .hero-section { background-color: #fff !important; border-bottom: 1px solid var(--rq-line); }
body .hero-section .entry-meta, body .hero-section .ct-meta-element { color: var(--rq-muted); }

/* Bouton « Réserver » de la fiche cours : un mot, une icône. */
body.single-product .riwaq-cta { margin: 14px 0 6px; }
body.single-product .riwaq-cta-button { gap: 10px; }
body.single-product .riwaq-cta-button svg { flex: none; }
body.single-product .riwaq-cta-note { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--rq-muted); }

/* Survol des boutons or : le fond devient vert nuit (règle du thème), le texte doit passer en blanc. */
body .riwaq-btn-gold .wp-block-button__link:hover, body .riwaq-btn-gold .wp-block-button__link:focus-visible { color: #fff !important; }
/* Survol des boutons sombres : fond or, texte vert nuit (plus lisible que le blanc sur l'or). */
body .riwaq-btn-dark .wp-block-button__link:hover, body .riwaq-btn-dark .wp-block-button__link:focus-visible { color: var(--rq-ink) !important; }
/* Tous les boutons qui passent en or au survol : texte vert nuit (le blanc sur l'or se lit mal). */
body .wp-block-button:not(.riwaq-btn-gold) .wp-block-button__link:hover,
body .wp-block-button:not(.riwaq-btn-gold) .wp-block-button__link:focus-visible { color: var(--rq-ink) !important; }
/* Panier latéral : boutons « Voir le panier » / « Commander » en or au survol → texte vert nuit. */
body .woocommerce-mini-cart__buttons .button:hover, body .woocommerce-mini-cart__buttons .button:focus-visible { color: var(--rq-ink) !important; }
/* À la source : le thème passe tous ses boutons en or au survol avec un texte blanc (2,6:1).
   On fixe la couleur de texte au survol du thème en vert nuit, pour tous les boutons, même futurs. */
:root, body { --theme-button-text-hover-color: #111c18; }
/* Survol cohérent (fiche cours) : « Réserver » or -> vert nuit ; « Ajouter au panier » sombre -> or. */
@media (hover: hover) and (pointer: fine) {
	body.single-product .riwaq-cta-button:hover { background: var(--rq-ink) !important; border-color: var(--rq-ink) !important; color: #fff !important; box-shadow: 0 10px 24px rgba(17, 28, 24, .20); }
	body.single-product .single_add_to_cart_button:not(.disabled):hover { background: var(--rq-gold) !important; color: var(--rq-ink) !important; }
}

/* Formations (lot 11) : encadré « Prérequis » avant l'inscription, description lisible. */
body.single-product .rq-prereq { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--rq-line); border-radius: 12px; background: var(--rq-soft); font-size: 14px; line-height: 1.5; }
body.single-product .rq-prereq label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
body.single-product .rq-prereq input { margin-top: 3px; accent-color: var(--rq-ink); width: 18px; height: 18px; flex: none; }
body.single-product .woocommerce-Tabs-panel h3 { margin-top: 1.4em; font-size: 20px; }

/* ================================================================ Coupons : carte moderne, type de coupon lisible à droite du code
   coupon-icon = coupon individuel ; coupon-multi-icon = coupon de groupe (ex. 1 homme + 1 enfant). */
body .coupon.coupon-background { background: #fff; border: 1px solid var(--rq-line) !important; border-radius: var(--rq-radius) !important; padding: 22px !important;
	transition: transform 220ms var(--rq-ease-out), box-shadow 220ms ease, border-color 220ms ease; }
@media (hover: hover) and (pointer: fine) { body .coupon.coupon-background:hover { transform: translateY(-3px); box-shadow: var(--rq-shadow); border-color: #d9cdb8 !important; } }
body .coupon-icon::before, body .coupon-multi-icon::before { display: none !important; }
body .coupon .riwaq-coupon-code {
	display: flex !important; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
	padding: 10px 14px !important; border-radius: 10px !important; font-size: 15px; letter-spacing: .08em; position: relative; z-index: 2;
}
body .coupon .riwaq-coupon-code::after {
	flex: none; padding: 3px 10px 3px 26px; border-radius: 999px; background-color: var(--rq-soft); background-repeat: no-repeat; background-position: 8px center; background-size: 14px;
	font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--rq-gold-d);
}
body .coupon-icon .riwaq-coupon-code::after {
	content: "Individuel";
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c7d4f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
}
body .coupon-multi-icon .riwaq-coupon-code::after {
	content: "En groupe";
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c7d4f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/%3E%3Ccircle cx='17' cy='9' r='2.6'/%3E%3Cpath d='M16 14.2c3 .2 5.5 2.4 5.5 5.8'/%3E%3C/svg%3E");
}
body .coupon .riwaq-body-small { position: relative; z-index: 2; }

/* Espace avant le pied de page, partout : sauf si la page finit par une section pleine largeur
   (fond coloré collé au pied de page, voulu). */
body .entry-content:has(> :last-child:not(.alignfull)) { padding-bottom: clamp(48px, 6vw, 96px); }
body .entry-content > :last-child:not(.alignfull) { margin-bottom: 0 !important; }


/* Bouton « haut de page » du thème : rond, vert nuit et or, comme les flèches de l'accueil. */
body .ct-back-to-top { width: 46px !important; height: 46px !important; padding: 0 !important; display: grid; place-items: center; border-radius: 50% !important; background: #111c18 !important; color: #e2c799 !important; --theme-icon-color: #e2c799; --theme-icon-hover-color: #111c18; border: 1px solid rgba(226, 199, 153, .4) !important; box-shadow: 0 6px 18px rgba(17, 28, 24, .22) !important; transition: opacity 200ms ease, visibility 200ms ease, transform 200ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms ease, color 160ms ease !important; }
body .ct-back-to-top svg { width: 15px !important; height: 15px !important; fill: currentColor; }
body .ct-back-to-top:active { transform: scale(0.94); }
body .ct-back-to-top:focus-visible { outline: 2px solid #bc9b6a; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { body .ct-back-to-top:hover { background: #bc9b6a !important; color: #111c18 !important; } }

/* « À partir de » toujours avant le prix. */
body .price .prix-personnalise { order: -1 !important; margin-right: 6px; }


/* Fiche d'un cours : l'image garde son format 4:3, jamais recadrée ni étirée. */
body.single-product .ct-product-gallery-container .ct-media-container { aspect-ratio: 4 / 3 !important; }
body.single-product .ct-product-gallery-container .ct-media-container img { aspect-ratio: 4 / 3 !important; width: 100%; height: 100%; object-fit: cover; }


/* ---------------------------------------------------------------- Motif du site
   Une seule règle : section sable = étoile à 8 branches, fondue en blanc en haut et en bas.
   Section blanche = rien, pour laisser respirer. Section sombre = étoile or discrète (plus haut). */
body .riwaq-sec-hero, body .riwaq-sec-cream, body .rq-flow-sec, body .riwaq-lang-hero { position: relative; isolation: isolate; background: linear-gradient(180deg, #ffffff 0%, #faf6ef 18%, #faf6ef 78%, #ffffff 100%) !important; }
body .riwaq-sec-hero::before, body .riwaq-sec-cream::before, body .rq-flow-sec::before, body .riwaq-lang-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23bc9b6a' stroke-opacity='.2' stroke-width='.7'%3E%3Cpath d='M48 0l14.1 14.1h19.8v19.8L96 48 81.9 62.1v19.8H62.1L48 96 33.9 81.9H14.1V62.1L0 48l14.1-14.1V14.1h19.8z'/%3E%3Cpath d='M48 0l14.1 14.1h19.8v19.8L96 48 81.9 62.1v19.8H62.1L48 96 33.9 81.9H14.1V62.1L0 48l14.1-14.1V14.1h19.8z' transform='translate(26.4 26.4) scale(.45)' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 144px 144px;
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .8) 20%, rgba(0, 0, 0, .8) 76%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .8) 20%, rgba(0, 0, 0, .8) 76%, transparent 100%);
}


/* ---------------------------------------------------------------- Téléphone : la largeur va au contenu.
   Une marge de section ou une marge de carte, jamais les deux qui s'additionnent. */
@media (max-width: 600px) {
	body .riwaq-sec-hero, body .riwaq-sec-cream, body .riwaq-sec-white, body .riwaq-sec-dark, body .rq-flow-sec { padding-left: 14px !important; padding-right: 14px !important; }
	body .riwaq-card, body .riwaq-card-white, body .riwaq-card-library, body .riwaq-bio-card, body .riwaq-lib-card { padding-left: 16px !important; padding-right: 16px !important; }
	/* Une carte qui ne contient qu'une liste (radios) s'efface : la liste a déjà ses cartes. */
	body .riwaq-card-white:has(> .rq-wrap), body .riwaq-card-white:has(.rq-wrap) { padding-left: 0 !important; padding-right: 0 !important; background: transparent; border: 0; box-shadow: none; }
	body .rq-wrap, body .rq-toolbar, body .rq-search { width: 100%; max-width: none; margin-left: 0; margin-right: 0; box-sizing: border-box; }
	body .rq-search input { width: 100%; box-sizing: border-box; }
	/* Trois boutons courts : sur une seule ligne. */
	body .wp-block-buttons:has(> .wp-block-button:nth-child(3):last-child) { flex-wrap: nowrap; gap: 6px; justify-content: center; }
	body .wp-block-buttons:has(> .wp-block-button:nth-child(3):last-child) .wp-block-button__link { padding-left: 14px; padding-right: 14px; font-size: 15px; white-space: nowrap; }
	/* Fiche d'un cours : les encadrés ne s'empilent plus. */
	body.single-product .course-description-short, body.single-product form.variations_form, body.single-product .product-custom-calculator, body.single-product .product-info-box { padding-left: 14px !important; padding-right: 14px !important; }
	body.single-product .product-custom-calculator .input-group, body.single-product .riwaq-private-course-note, body.single-product .calculator-header, body.single-product .info-header { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
	body.single-product .product-custom-calculator, body.single-product .product-info-box { margin-left: 0 !important; margin-right: 0 !important; }
}


/* Téléphone : formulaires à pleine largeur, un seul niveau de marge. */
@media (max-width: 600px) {
	body .rfm-form-container, body .rin-form-container, body .rin-form-wrapper, body .wpforms-container { width: 100%; max-width: none; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; box-sizing: border-box; background: transparent; border: 0; box-shadow: none; }
	body .rfm-fieldset, body .rin-fieldset { margin-left: 0; margin-right: 0; padding-left: 14px !important; padding-right: 14px !important; min-width: 0; }
	body .riwaq-card-white:has(.rfm-form-container), body .riwaq-card-white:has(.rin-form-container), body .riwaq-card-white:has(.rin-form-wrapper), body .riwaq-card-white:has(.wpforms-container) { padding-left: 0 !important; padding-right: 0 !important; background: transparent; border: 0; box-shadow: none; }
	body .rq-wrap [class*="rq-card"]:not(.rq-card-bottom) { padding-left: 14px; padding-right: 14px; }
	body .rq-wrap .rq-card-bottom { padding-left: 0; padding-right: 0; }
}


/* ---------------------------------------------------------------- Fiche d'un cours : une colonne, une lecture
   Niveau, formule, élève, prix, bouton. Plus de cadres dans les cadres. */
body.single-product form.variations_form { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
body.single-product form.variations_form .variations { margin: 0 0 8px; }
body.single-product form.variations_form .variations th, body.single-product form.variations_form .variations td { display: block; width: auto; padding: 0; text-align: left; border: 0; }
body.single-product form.variations_form .variations label { font-weight: 600; }
body.single-product .rq-buy-step { margin: 22px 0 0 !important; padding: 22px 0 0 !important; border: 0 !important; border-top: 1px solid var(--rq-line) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
body.single-product .rq-buy-step h3 { margin: 0 0 14px; font-size: 20px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--rq-ink); }
body.single-product .rq-buy-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.single-product .rq-buy-field { display: grid; gap: 5px; margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--rq-ink); }
body.single-product .rq-buy-two .rq-buy-field { margin-bottom: 0; }
body.single-product .rq-buy-field input { width: 100%; min-height: 46px; box-sizing: border-box; font-weight: 400; border-radius: 14px !important; }
body.single-product .rq-buy-hint { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: #6f6f6a; }
body.single-product .rq-buy-total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 22px 0 0; padding: 16px 18px; color: var(--rq-ink); background: var(--rq-soft); border-radius: 16px; }
body.single-product .rq-buy-total > div { font-size: 15px; line-height: 1.4; }
body.single-product .rq-buy-total strong { flex: none; font-size: 28px; font-weight: 500; line-height: 1.1; color: var(--rq-ink); }
body.single-product .rq-buy-off b { font-weight: 600; color: #1f6b4a; }
body.single-product form.cart:has(.rq-buy-step) .quantity { display: none !important; }
body.single-product form.cart:has(.rq-buy-step) .single_add_to_cart_button { width: 100%; margin-top: 14px; }
body.single-product form.cart:has(.rq-buy-step) .woocommerce-variation-add-to-cart { display: block; }
body.single-product form.cart:has(.rq-buy-step) .woocommerce-variation-price:empty, body.single-product form.cart:has(.rq-buy-step) .single_variation { display: none; }

/* Bibliothèque : les pages de langue et les fiches de livres au style du site. */
body .riwaq-lang-hero .wp-block-cover__background { display: none !important; }
body .riwaq-lang-hero { padding: clamp(56px, 8vw, 104px) 20px clamp(32px, 4vw, 48px) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.rq-books-n { margin: 0 0 14px; font-size: 14px; color: #6f6f6a; text-align: center; }
#free-books > h2 { display: none; }
#free-books ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
#free-books ul li { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0 !important; padding: 12px !important; background: #fff; border: 1px solid #efe7da !important; border-radius: 16px; }
#free-books ul li div.image { float: none !important; margin: 0 0 6px !important; text-align: center; }
#free-books ul li div.image img, #free-books .riwaq-book-cover { float: none !important; width: 100% !important; max-width: 130px; height: auto !important; aspect-ratio: 11 / 15; margin: 0 auto !important; object-fit: cover; border-radius: 8px; }
#free-books ul li p { margin: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
#free-books ul li p.title { font-weight: 600; }
#free-books ul li p.title a { color: #111c18; text-decoration: none; }
#free-books ul li p.author, #free-books ul li p.author a, #free-books ul li p.author span { color: #6f6f6a !important; font-size: 13px; text-decoration: none; }
#free-books ul li p.download { margin-top: auto; padding-top: 8px; }
#free-books .rq-book-dl { display: grid; place-items: center; min-height: 40px; font-size: 14px; font-weight: 600; color: #faf6ef; text-decoration: none; background: #111c18; border-radius: 999px; transition: background-color 160ms ease; }
#free-books .perpage { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 8px; }
#free-books .perpage a, #free-books .perpage .is-on { display: grid; place-items: center; min-width: 40px; min-height: 40px; color: #111c18; text-decoration: none; background: #fff; border: 1px solid #efe7da; border-radius: 999px; }
#free-books .perpage .is-on { color: #faf6ef; background: #111c18; border-color: #111c18; }
body .riwaq-library-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-width: 1040px; margin-inline: auto; }
.riwaq-lib-card::before { display: none !important; }
.riwaq-library-list > .riwaq-lib-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; margin: 0 !important; padding: 16px !important; background-image: none !important; background-color: #fff !important; border: 1px solid #efe7da !important; border-radius: 16px !important; box-shadow: none !important; }
.riwaq-lib-card h4 { margin: 0 !important; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.riwaq-lib-card .wp-block-button__link::after { content: ""; position: absolute; inset: 0; }
.riwaq-lib-card .wp-block-button__link { padding: 8px 14px !important; font-size: 13px; white-space: nowrap; }
.rq-lib-search { display: block; width: min(420px, 100%); margin: 0 auto 18px; }
.rq-lib-search input { box-sizing: border-box; width: 100%; min-height: 46px; padding: 0 18px; font: inherit; font-size: 16px; color: #111c18; background: #fff; border: 1px solid #efe7da; border-radius: 999px; }
.rq-lib-none { grid-column: 1 / -1; text-align: center; color: #6f6f6a; }
.ct-load-more { min-height: 46px; padding: 0 26px !important; border-radius: 999px !important; }
@media (hover: hover) and (pointer: fine) {
	#free-books .rq-book-dl:hover { background: #8a6d3f; }
	#free-books .perpage a:hover { border-color: #bc9b6a; }
}

/* Bandeaux de titre, panier et page d'erreur. */
body .rq-band { text-align: center; }
body .rq-band p { max-width: 620px; margin: 10px auto 0; color: #6f6f6a; }
.rq-page-h1 { margin: 0 0 18px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; }
.rq-404-in { display: grid; justify-items: center; gap: 22px; width: min(620px, 100%); margin: 8px auto 72px; padding: 0 16px; box-sizing: border-box; }
.rq-404-in form { display: flex; gap: 8px; width: 100%; }
.rq-404-in input { flex: 1; min-width: 0; min-height: 46px; padding: 0 18px; font: inherit; font-size: 16px; background: #fff; border: 1px solid #efe7da; border-radius: 999px; }
.rq-404-in button { flex: none; min-height: 46px; padding: 0 22px; font: inherit; font-weight: 600; color: #faf6ef; background: #111c18; border: 0; border-radius: 999px; cursor: pointer; }
.rq-404-in nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rq-404-in nav a { display: grid; place-items: center; min-height: 40px; padding: 0 16px; color: #111c18; text-decoration: none; background: #fff; border: 1px solid #efe7da; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) {
	.rq-404-in nav a:hover { border-color: #bc9b6a; }
	.rq-404-in button:hover { background: #8a6d3f; }
}

/* Bibliothèque : deux livres par ligne sur téléphone, cartes de langue plus simples. */
@media (max-width: 640px) {
	#free-books ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#free-books .riwaq-book-cover { max-width: 150px; }
.riwaq-library-list > .riwaq-lib-card { justify-content: center; gap: 2px; min-height: 76px; padding: 14px 16px !important; transition: border-color 160ms ease, transform 160ms ease; }
.riwaq-lib-card .wp-block-button__link { padding: 0 !important; font-size: 13px; font-weight: 500; color: #8a6d3f !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.riwaq-lib-card .wp-block-button__link::before { content: none; }
@media (hover: hover) and (pointer: fine) {
	.riwaq-library-list > .riwaq-lib-card:hover { border-color: #bc9b6a !important; transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
	.riwaq-library-list > .riwaq-lib-card:hover { transform: none; }
}

/* ================================================================ Écart sous le header : une seule règle
   Page avec bandeau : le bandeau touche le header. Page sans bandeau : --rq-top, partout pareil. */
:root { --rq-top: clamp(24px, 3.2vw, 44px); }
body.rq-plain main#main > .ct-container-full, body.rq-plain main#main > .ct-container { padding-top: var(--rq-top) !important; }
body.rq-plain .entry-content > :first-child, body.rq-plain .woocommerce > :first-child, body.rq-plain .riwaq-booking:first-child { margin-top: 0 !important; }
body.rq-plain .woocommerce-MyAccount-navigation, body.rq-plain .woocommerce-MyAccount-content { margin-top: 0 !important; }

/* Étapes de l'achat. */
.rq-steps { display: flex; align-items: center; gap: 10px; margin-block: 0 24px !important; padding: 0; list-style: none; font-size: 14px; color: #8b8b84; }
.rq-steps li { display: flex; align-items: center; gap: 8px; margin: 0; }
.rq-steps li + li::before { content: ""; width: clamp(14px, 4vw, 44px); height: 1px; background: #e2c999; }
.rq-steps span { display: grid; place-items: center; width: 24px; height: 24px; font-size: 13px; color: #6f6f6a; background: #f3ece0; border-radius: 50%; }
.rq-steps .is-on { font-weight: 600; color: #111c18; }
.rq-steps .is-on span { color: #faf6ef; background: #111c18; }
.rq-steps .is-done { color: #8a6d3f; }
.rq-steps .is-done span { color: #111c18; background: #e2c999; }

/* Les étapes disent où on en est : le titre reste pour les moteurs et les lecteurs d'écran, pas à l'écran. */
.rq-steps + .rq-page-h1 { position: absolute; width: 1px; height: 1px; margin: 0 !important; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Survol de l'icône panier : même carte que le reste du site. */
.ct-header-cart .ct-cart-content { width: 340px; padding: 18px; border: 1px solid #e9dfcb; border-radius: 18px; box-shadow: 0 18px 40px rgba(17, 28, 24, .16); }
.ct-cart-content .woocommerce-mini-cart { margin: 0; padding: 0; }
.ct-cart-content ul.woocommerce-mini-cart li.mini_cart_item { padding: 12px 28px 12px 14px; margin: 0 0 8px; background: #faf6ef; border: 0; border-radius: 14px; }
.ct-cart-content ul.woocommerce-mini-cart li.mini_cart_item a:not(.remove) { font-size: 15px; font-weight: 600; color: #111c18; }
.ct-cart-content ul.woocommerce-mini-cart li.mini_cart_item .quantity { margin-top: 4px; font-size: 14px; color: #8a6d3f; }
.ct-cart-content ul.woocommerce-mini-cart li.mini_cart_item a.remove { top: 12px; right: 10px; color: #8b8b84; }
.ct-cart-content .woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 2px; padding: 0; font-size: 15px; color: #6f6f6a; border: 0; }
.ct-cart-content .woocommerce-mini-cart__total strong { font-weight: 400; text-transform: none; letter-spacing: 0; }
.ct-cart-content .woocommerce-mini-cart__total .amount { font-size: 22px; font-weight: 500; color: #111c18; }
.ct-cart-content .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.ct-cart-content .woocommerce-mini-cart__buttons .button { display: flex; align-items: center; justify-content: center; min-height: 46px; margin: 0; padding: 0 12px; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; border-radius: 999px; transition: background-color 160ms ease, color 160ms ease; }
.ct-cart-content .woocommerce-mini-cart__buttons .button:not(.checkout) { color: #111c18; background: #fff; border: 1px solid #111c18; }
.ct-cart-content .woocommerce-mini-cart__buttons .button.checkout { color: #111c18; background: #bc9b6a; border: 1px solid #bc9b6a; }
.ct-cart-content .woocommerce-mini-cart__empty-message { margin: 0; padding: 14px; font-size: 15px; text-align: center; color: #6f6f6a; background: #faf6ef; border-radius: 14px; }
@media (hover: hover) and (pointer: fine) {
	.ct-cart-content .woocommerce-mini-cart__buttons .button:not(.checkout):hover { color: #faf6ef !important; background: #111c18; }
	.ct-cart-content .woocommerce-mini-cart__buttons .button.checkout:hover { color: #faf6ef !important; background: #111c18; border-color: #111c18; }
}

/* Accueil d'un élève connecté : sa prochaine séance, sans chercher. */
.rq-home-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; padding: 10px 16px; font-size: 15px; color: #faf6ef !important; text-decoration: none; background: #111c18; transition: background-color 160ms ease; }
.rq-home-bar .rq-home-left { color: #e2c999; }
.rq-home-bar b { font-weight: 600; color: #e2c999; }
.rq-home-bar b::after { content: " →"; font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .rq-home-bar:hover { background: #1e2d27; } }

/* Cartes de livres : larges, la mosaïque prend toute la carte, le titre est dessous. */
#free-books ul { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
#free-books ul li { gap: 0; padding: 0 !important; overflow: hidden; border-radius: 18px; }
#free-books ul li div.image { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
#free-books ul li div.image a { display: block; }
#free-books ul li div.image img, #free-books .riwaq-book-cover { display: block; width: 100% !important; max-width: none; aspect-ratio: 16 / 11; border-radius: 0; }
#free-books ul li p.title { padding: 14px 16px 0; font-size: 16px; line-height: 1.35; }
#free-books ul li p.author { padding: 4px 16px 0; }
#free-books ul li p.download { padding: 12px 16px 16px; }
@media (max-width: 640px) {
	#free-books ul { grid-template-columns: minmax(0, 1fr); }
}

/* Cartes de langue : le même schéma que les cartes de livres. */
body .riwaq-library-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; max-width: 1290px; margin-inline: auto; }
body .riwaq-library-list > .riwaq-lib-card.riwaq-lib-card { display: block; min-height: 0; margin: 0 !important; padding: 0 !important; overflow: hidden; background: #fff !important; border: 1px solid #efe7da !important; border-radius: 18px !important; box-shadow: none; }
.rq-lang-link { display: flex; flex-direction: column; height: 100%; color: #111c18; text-decoration: none; }
.rq-lang-link:focus-visible { outline: 2px solid #bc9b6a; outline-offset: -2px; }
.rq-lang-cover { flex: 1 1 auto; display: flex; flex-direction: column; margin: 0 !important; }
.rq-lang-cover img { order: -1; display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; }
body .riwaq-lib-card .rq-lang-cover h4 { order: 0; margin: 0 !important; padding: 14px 16px 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: #111c18; }
.rq-lang-own { order: 1; padding: 2px 16px 0; font-size: 15px; line-height: 1.35; color: #8a6d3f; }
.rq-lang-own[dir="rtl"] { font-family: 'Amiri', serif; font-size: 18px; text-align: left; }
.rq-lang-go { display: grid; place-items: center; min-height: 40px; margin: auto 16px 16px; font-size: 14px; font-weight: 600; color: #faf6ef; background: #111c18; border: 1px solid #bc9b6a; border-radius: 999px; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.rq-lang-cover + .rq-lang-go { margin-top: 12px; }
@media (hover: hover) and (pointer: fine) {
	.rq-lang-link:hover .rq-lang-go { color: #e2c999; background: #1f2f29; border-color: #e2c999; }
}
@media (max-width: 640px) {
	body .riwaq-library-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	body .riwaq-lib-card .rq-lang-cover h4 { padding: 10px 12px 0; font-size: 15px; }
	.rq-lang-own { padding: 2px 12px 0; font-size: 14px; }
	.rq-lang-go { min-height: 38px; margin: 10px 12px 12px !important; font-size: 13px; }
}

/* Publications : cartes d'articles au style du site. Deux colonnes, le dernier article en grand. */
body.rq-articles .entries { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
body.rq-articles .entries > .entry-card { position: relative; display: flex !important; flex-direction: column; margin: 0 !important; padding: 0 !important; overflow: hidden; background: #fff; border: 1px solid #efe7da; border-radius: 20px; box-shadow: none; transition: border-color 160ms ease; }
body.rq-articles .entries > .entry-card > .ct-media-container { width: 100% !important; max-width: none !important; aspect-ratio: 4 / 3; margin: 0 !important; border-radius: 0 !important; }
body.rq-articles .entries > .entry-card > .ct-media-container img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
body.rq-articles .entries > .entry-card .card-content { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px !important; }
body.rq-articles .entries > .entry-card .entry-title { margin: 0; font-size: 21px; line-height: 1.3; }
body.rq-articles .entries > .entry-card .entry-title a { color: #111c18; text-decoration: none; }
body.rq-articles .entries > .entry-card .entry-title a::after { content: ""; position: absolute; inset: 0; }
body.rq-articles .entry-excerpt { margin: 0; font-size: 15px; line-height: 1.55; color: #4c4c47; }
body.rq-articles .entry-excerpt p { margin: 0; }
.rq-art-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px !important; }
.rq-art-sci { padding: 3px 12px; font-size: 13px; font-weight: 600; color: #8a6d3f; background: #f6ecd8; border-radius: 999px; }
.rq-art-time { font-size: 13px; color: #8b8b84; }
body.rq-articles .entries > .entry-card .entry-meta { margin-top: auto; font-size: 13px; letter-spacing: 0; text-transform: none; color: #8b8b84; }
body.rq-articles .entries > .entry-card .entry-meta .meta-author { display: none; }
body.rq-articles .entries > .entry-card .card-content::after { content: "Lire l'article →"; font-size: 15px; font-weight: 600; color: #111c18; }
@media (min-width: 900px) {
	body.rq-articles.blog:not(.paged) .entries > .entry-card:first-child { grid-column: 1 / -1; display: grid !important; grid-template-columns: 1.2fr 1fr; }
	body.rq-articles.blog:not(.paged) .entries > .entry-card:first-child > .ct-media-container { height: 100%; aspect-ratio: auto; min-height: 320px; }
	body.rq-articles.blog:not(.paged) .entries > .entry-card:first-child .entry-title { font-size: 28px; }
}
@media (hover: hover) and (pointer: fine) {
	body.rq-articles .entries > .entry-card:hover { border-color: #bc9b6a; }
	body.rq-articles .entries > .entry-card:hover .card-content::after { color: #8a6d3f; }
}
@media (max-width: 760px) {
	body.rq-articles .entries { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Accueil, Derniers articles : même carte que la page Publications. */
.riwaq-latest-posts.wp-block-latest-posts > li { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0 0 20px; overflow: hidden; background: #fff; border: 1px solid #efe7da; border-radius: 20px; transition: border-color 160ms ease; }
.riwaq-latest-posts .wp-block-latest-posts__featured-image { margin: 0 0 8px !important; }
.riwaq-latest-posts .wp-block-latest-posts__featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0 !important; }
.riwaq-latest-posts > li > .rq-art-tags, .riwaq-latest-posts > li > .wp-block-latest-posts__post-title, .riwaq-latest-posts > li > time, .riwaq-latest-posts > li > .rq-art-more { margin-inline: 20px !important; }
.riwaq-latest-posts .wp-block-latest-posts__post-title { font-size: 19px; font-weight: 500; line-height: 1.3; color: #111c18 !important; text-decoration: none !important; background: none !important; }
.riwaq-latest-posts .wp-block-latest-posts__post-title::after { content: ""; position: absolute; inset: 0; }
.riwaq-latest-posts .wp-block-latest-posts__post-date { font-size: 13px; color: #8b8b84; }
.rq-art-more { margin-top: 4px; font-size: 15px; font-weight: 600; color: #111c18; }
@media (hover: hover) and (pointer: fine) {
	.riwaq-latest-posts.wp-block-latest-posts > li:hover { border-color: #bc9b6a; }
	.riwaq-latest-posts.wp-block-latest-posts > li:hover .rq-art-more { color: #8a6d3f; }
}

/* Accueil, Offres : des tickets. La réduction en grand sur une bande en mosaïque, le code et le bouton sur une ligne. */
.rq-tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
body .riwaq-card.rq-ticket { display: flex !important; flex-direction: column; margin: 0 !important; padding: 0 !important; overflow: hidden; container-type: inline-size; }
.rq-ticket-off { flex: 0 0 auto; display: flex; align-items: baseline; gap: 8px; padding: 12px 18px; background: #111c18 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12 2l2.6 6.4L21 11l-6.4 2.6L12 20l-2.6-6.4L3 11l6.4-2.6z' fill='none' stroke='%23bc9b6a' stroke-opacity='.22'/%3E%3C/svg%3E"); border-bottom: 2px dashed #e2c999; }
.rq-ticket-off b { font-size: 26px; font-weight: 600; line-height: 1; color: #faf6ef; white-space: nowrap; }
.rq-ticket-off span { font-size: 13px; letter-spacing: .04em; color: #e2c999; }
.rq-ticket-off { flex-wrap: wrap; }
.rq-ticket-off .rq-ticket-kind { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; align-self: center; padding: 3px 10px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: #e2c999; border: 1px solid rgba(226, 201, 153, .45); border-radius: 999px; white-space: nowrap; }
.rq-ticket-kind svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* Page Coupons : les mêmes tickets, rangés en groupes. */
.rq-coupons { max-width: var(--wp--style--global--wide-size, 1200px); margin: 0 auto; }
.rq-coupons-group + .rq-coupons-group { margin-top: 56px; }
.rq-tickets.is-one { grid-template-columns: minmax(0, 380px); justify-content: center; }
.rq-coupons-h { margin: 0 0 6px !important; text-align: center; font-size: clamp(24px, 3vw, 30px); }
.rq-coupons-sub { margin: 0 auto 24px !important; max-width: 560px; text-align: center; color: #4c4c47; }
.rq-ticket-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.rq-ticket-body > h3, .rq-ticket-body > p { margin: 0 !important; }
.rq-ticket-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.rq-ticket .riwaq-coupon-code { display: inline-block; margin: 0; padding: 6px 12px; font-size: 14px; letter-spacing: .08em; color: #111c18; background: #faf6ef; border: 1px dashed #bc9b6a; border-radius: 10px; }
.rq-ticket-go { display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; font-size: 14px; font-weight: 600; color: #111c18 !important; text-decoration: none !important; background: #fff; border: 1px solid #bc9b6a; border-radius: 999px; transition: background-color 160ms ease; }
.rq-tickets-more { margin: 24px auto 0 !important; text-align: center; }
.rq-tickets-more a { font-weight: 600; color: #111c18 !important; text-decoration: underline; text-decoration-color: #bc9b6a; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
	.rq-ticket-go:hover { background: #f3ece0; }
	body .riwaq-card.rq-ticket:hover, body .riwaq-card-library.rq-res:hover { transform: none !important; }
	.rq-tickets-more a:hover { text-decoration-color: #111c18; }
}
@media (max-width: 999px) {
	.rq-tickets { grid-template-columns: minmax(0, 1fr); max-width: 600px !important; margin-left: auto !important; margin-right: auto !important; }
}
@container (max-width: 350px) {
	.rq-ticket-off > span:not(.rq-ticket-kind) { display: none; }
}
@media (max-width: 640px) {
	.rq-ticket-off { padding: 12px 16px; }
	.rq-ticket-off b { font-size: 24px; }
	.rq-ticket-body { padding: 14px 16px 16px; }
}
/* Accueil, Ressources : même carte que les articles. */
body .riwaq-card-library.rq-res { display: flex !important; flex-direction: column; gap: 10px; padding: 0 0 20px !important; overflow: hidden; background: #fff; border: 1px solid #efe7da !important; border-radius: 20px !important; }
.rq-res-img { display: block; margin: 0 0 4px; }
.rq-res-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.rq-res > h3, .rq-res > p { margin: 0 20px !important; }
.rq-res > h3 a, .rq-res > p, .rq-res > p a { color: #111c18 !important; text-decoration: none !important; background: none !important; }
.rq-res > p { font-size: 15px; line-height: 1.55; color: #4c4c47 !important; }
.rq-res-go { display: inline-flex; align-self: flex-start; align-items: center; min-height: 42px; margin: auto 20px 0; padding: 0 22px; font-size: 15px; font-weight: 600; color: #111c18 !important; text-decoration: none; background: #fff; border: 1px solid #bc9b6a; border-radius: 999px; transition: background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) {
	.rq-res-go:hover { background: #f3ece0; }
	body .riwaq-card-library.rq-res:hover { border-color: #bc9b6a !important; }
}
@media (max-width: 640px) {
	.rq-res-img img { aspect-ratio: 16 / 9; }
}

/* Article : carte vers le cours de la même science, en bas de l'article. */
.rq-art-course { margin: 48px 0 8px; padding: 26px 28px; background: #f3ece0; border: 1px solid #e6dac6; border-radius: 20px; }
.rq-art-course-eyebrow { margin: 0 0 6px !important; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9c7d4f; }
.rq-art-course-title { margin: 0 0 6px !important; font-size: 24px; line-height: 1.25; color: #111c18; }
.rq-art-course-text { margin: 0 0 18px !important; color: #4c4c47; }
.rq-art-course-go { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; font-weight: 600; color: #faf6ef !important; text-decoration: none !important; background: #111c18; border: 1px solid #bc9b6a; border-radius: 999px; transition: background-color 160ms ease, color 160ms ease; }
.rq-art-course-act { display: flex; flex-wrap: wrap; gap: 10px; }
.rq-art-course-alt { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; font-weight: 600; color: #111c18 !important; text-decoration: none !important; background: #fff; border: 1px solid #bc9b6a; border-radius: 999px; transition: background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) {
	.rq-art-course-go:hover { background: #1f2f29; color: #e2c999 !important; border-color: #e2c999; }
	.rq-art-course-alt:hover { background: #faf6ef; }
}
/* Essai gratuit : comment se passe l'essai, sous le parcours. */
.rq-trial-info { max-width: 720px; margin: 40px auto 0; padding: 26px 28px; background: #fff; border: 1px solid #efe7da; border-radius: 20px; }
.rq-trial-info h2 { margin: 0 0 12px !important; font-size: 24px; }
.rq-trial-info ol { margin: 0; padding-left: 1.3em; }
.rq-trial-info li { margin: 0 0 8px; line-height: 1.55; color: #4c4c47; }
/* Pages « Livres en … » : phrase de présentation. */
.rq-books-intro { max-width: 720px; margin: 0 auto 14px !important; text-align: center; color: #4c4c47; }

/* Téléphone et ordinateur : pas de mot seul en fin de paragraphe ou de titre (règle du 12/11/2026). */
.entry-content p, .entry-content li, .entry-content h2, .entry-content h3, .entry-content label, .rq-ui p, .rq-ui li, .rq-ui label, .rq-ui h2, .rq-ui h3, .woocommerce p { text-wrap: pretty; }
main :is(div, span, strong, summary, dd, td, small, figcaption), .rq-f-lead { text-wrap: pretty; }
/* Titres et questions : lignes de longueur égale. */
:is(main, .entry-content, .rq-ui) :is(h1, h2, h3, h4, summary) { text-wrap: balance; }


/* ---------------------------------------------------------------- Téléphone : une seule marge de 16 px (13/11/2026).
   Blocksy réduit le contenu à 88 % de l'écran ; nos sections ajoutaient leur marge, les cartes la leur.
   Désormais : 16 px du bord partout ; une carte devient un bandeau blanc bord à bord, texte à 16 px. */
@media (max-width: 600px) {
	html:root { --theme-container-edge-spacing: calc(100% - 32px); } /* Pas 100vw : sur ordinateur il compte la barre de défilement. */
	body :is(.riwaq-sec-hero, .riwaq-sec-cream, .riwaq-sec-white, .riwaq-sec-dark) { padding-left: 0 !important; padding-right: 0 !important; }
	/* Tout ce qui n'est pas une carte garde 16 px de chaque côté, qu'il soit resserré par le thème ou non
	   (paragraphes d'en-tête, formulaires posés dans la section : régressions corrigées). */
	body :is(.riwaq-sec-hero, .riwaq-sec-cream, .riwaq-sec-white, .riwaq-sec-dark) > :not(.riwaq-card):not(.riwaq-card-white):not(.riwaq-bio-card):not(.riwaq-card-library):not(.is-layout-grid):not(.alignfull):not(.rq-trial-info):not(hr) { margin-left: 16px !important; margin-right: 16px !important; }
	/* (:not(hr) le 21/11/2026 : le trait doré de séparation partait à gauche ; il garde son centrage.) */
	body :is(.riwaq-sec-hero, .riwaq-sec-cream, .riwaq-sec-white, .riwaq-sec-dark) > :is(.rfm-form-container, .rin-form-container, .rin-form-wrapper, .wpforms-container) { width: auto !important; }
	/* L'animation « Comment ça marche » n'a pas de contenu centré par le thème : elle garde ses 16 px (régression corrigée). */
	body .rq-flow-sec { padding-left: 16px !important; padding-right: 16px !important; }
	body :is(.riwaq-sec-hero, .riwaq-sec-cream, .riwaq-sec-white, .riwaq-sec-dark) > :is(.riwaq-card, .riwaq-card-white, .riwaq-bio-card, .riwaq-card-library) { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 16px !important; padding-right: 16px !important; border-left: 0 !important; border-right: 0 !important; border-radius: 0 !important; box-sizing: border-box; }
	/* Grille de cartes (professeurs, étapes) : les cartes deviennent des bandeaux bord à bord. */
	body :is(.riwaq-sec-hero, .riwaq-sec-cream, .riwaq-sec-white, .riwaq-sec-dark) > .is-layout-grid:has(> :is(.riwaq-card, .riwaq-card-white, .riwaq-bio-card, .riwaq-card-library)) { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; gap: 8px !important; }
	body .is-layout-grid > :is(.riwaq-card, .riwaq-card-white, .riwaq-bio-card, .riwaq-card-library) { padding-left: 16px !important; padding-right: 16px !important; border-left: 0 !important; border-right: 0 !important; border-radius: 0 !important; }
	.rq-trial-info { width: auto; max-width: none; margin-left: -16px; margin-right: -16px; padding: 20px 16px; border-radius: 0; border-left: 0; border-right: 0; box-sizing: border-box; }
	body.rq-articles .entries > .entry-card .card-content { padding: 16px 14px 18px !important; }
}


/* ---------------------------------------------------------------- Revue du 13/11/2026 (ordinateur et téléphone). */
/* Bouton « Menu » de l'en-tête : 40 px au doigt (il faisait 24). */
.ct-header-trigger { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
/* Cases Homme / Femme et cases à cocher des formulaires : la ligne entière se touche, 40 px. */
.rfm-radio-group label, .rfm-form-container label:has(> input[type=checkbox]), .rin-form-container label:has(> input[type=radio]), .rin-form-container label:has(> input[type=checkbox]), .rin-form-wrapper label:has(> input[type=radio]), .rin-form-wrapper label:has(> input[type=checkbox]) { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
/* Badges de la page Coran (extension tierce) : 12 px au moins. */
.rq-badge.traduction, .rq-badge.recitation, .rq-badge.qiraat { font-size: 12px !important; }
.rq-flow-pause { min-height: 36px; }
@media (max-width: 760px) {
	/* Champs en 16 px : en dessous, l'iPhone zoome dès qu'on les touche. */
	body input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=submit]):not([type=button]), body select, body textarea { font-size: 16px !important; }
	/* Colonnes (image + texte) empilées : une colonne sans fond ne garde pas sa marge intérieure. */
	body .entry-content .wp-block-columns > .wp-block-column:not(.has-background):not([class*="riwaq-card"]):not(.riwaq-col-bordered) { padding-left: 0 !important; padding-right: 0 !important; }
	/* Colonne à filet doré : le texte garde son écart avec le filet (régression corrigée). */
	body .riwaq-col-bordered { padding-left: 14px !important; }
	/* Carte qui ne contient qu'un formulaire : elle reste bord à bord, mais le formulaire garde 16 px (régression corrigée). */
	body :is(.riwaq-sec-hero, .riwaq-sec-cream, .riwaq-sec-white, .riwaq-sec-dark) > .riwaq-card-white:is(:has(.rfm-form-container), :has(.rin-form-container), :has(.rin-form-wrapper), :has(.wpforms-container)) { padding-left: 16px !important; padding-right: 16px !important; }
	.rq-art-course { padding: 20px 16px; margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
	/* Les trois actions sur une ligne (WhatsApp ne part plus seul dessous). */
	.rq-art-course-act { flex-wrap: nowrap; gap: 8px; }
	.rq-art-course-go, .rq-art-course-alt:not(.rq-ico-only) { flex: 1 1 auto; justify-content: center; padding: 0 14px; white-space: nowrap; }
	.rq-art-course-alt.rq-ico-only { flex: none; }
	/* Liens de titre et de citation : assez hauts pour le doigt (44 px environ). */
	body .riwaq-h3-library a, body .riwaq-quote cite a { display: inline-block; padding-block: 8px; }
}
