/**
 * Marges gauche et droite des sections sur cellulaire et tablette (sous 992 px) : 1,75 rem (28 px),
 * comme toutes les maquettes mobiles du Figma (27,5 px sur 390). Les landings utilisent la même
 * valeur (assets/css/landing.css, --land-marge).
 *
 * Fichier séparé, chargé après le CSS du thème (functions.php) : theme.min.css ne peut plus être
 * régénéré (script de build absent). Seules les marges horizontales sont surchargées ; les marges
 * verticales de responsive.css restent. Préfixe « body » : theme.min.css est inséré plus loin dans la
 * page (inc/performance.php) et gagnerait à précision égale.
 */

@media only screen and (max-width: 991px) {

	:root {
		--drd-marge-mobile: 1.75rem;
	}

	/* En-tête : logo aligné sur le contenu (Figma : 26 px). */
	body header.main {
		padding-left: var(--drd-marge-mobile);
	}

	/* Héros des pages. */
	body .hero__text,
	body #tpl-chirurgie .hero__text,
	body #tpl-apropos .hero__text,
	body #tpl-medesthetique .hero__text,
	body #tpl-contact .hero__text,
	body #tpl-article .hero__text,
	body #default_page .hero__text {
		padding-left: var(--drd-marge-mobile);
		padding-right: var(--drd-marge-mobile);
	}

	/* Accueil. */
	body .home_expertise__content,
	body #home_surgery,
	body #home_injectable,
	body #home_uman,
	body #home_resources {
		padding-left: var(--drd-marge-mobile);
		padding-right: var(--drd-marge-mobile);
	}

	/* Pages de chirurgie. */
	body #tpl-chirurgie .surgery-types,
	body #tpl-chirurgie .surgery-types .surgery-tab__right,
	body #tpl-chirurgie .faq,
	body #tpl-chirurgie .steps__box {
		padding-left: var(--drd-marge-mobile);
		padding-right: var(--drd-marge-mobile);
	}

	body #tpl-chirurgie .surgery-types .surgery-tab__beforeafter {
		margin-left: var(--drd-marge-mobile);
		margin-right: var(--drd-marge-mobile);
	}

	body #tpl-chirurgie .surgery-types .surgery-tab__cta {
		margin-left: var(--drd-marge-mobile);
	}

	/* Médico-esthétique. */
	body #tpl-medesthetique .injectables,
	body #tpl-medesthetique .injectables .inj-tab__zones,
	body #tpl-medesthetique .about-surgeon {
		padding-left: var(--drd-marge-mobile);
		padding-right: var(--drd-marge-mobile);
	}

	/* À propos. */
	body #tpl-apropos .about-intro,
	body #tpl-apropos .about-surgeon,
	body #tpl-apropos .about-credentials,
	body #tpl-apropos .about-video,
	body #tpl-apropos .approach {
		padding-left: var(--drd-marge-mobile);
		padding-right: var(--drd-marge-mobile);
	}

	/* Contact. */
	body #tpl-contact .contact-form,
	body #tpl-contact .contact-info {
		padding-left: var(--drd-marge-mobile);
		padding-right: var(--drd-marge-mobile);
	}

	/* Blogue et articles. */
	body #tpl-blog .blog-listing,
	body #tpl-article .article-body {
		padding-left: var(--drd-marge-mobile);
		padding-right: var(--drd-marge-mobile);
	}

	/* Pages de contenu (pages de chirurgie détaillées, politiques) : 6vw (23 px) dans custom.css. */
	body #default_page .default_page__content {
		padding-left: var(--drd-marge-mobile);
		padding-right: var(--drd-marge-mobile);
	}

	/* Avant-après : la bande des résultats déborde de la marge pour aller pleine largeur. */
	body #tpl-avant-apres .avap-hero,
	body #tpl-avant-apres .avap-gallery,
	body .avap-results {
		padding-left: var(--drd-marge-mobile);
		padding-right: var(--drd-marge-mobile);
	}

	body .avap-results {
		margin-left: calc(-1 * var(--drd-marge-mobile));
		margin-right: calc(-1 * var(--drd-marge-mobile));
	}
}
