<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dr Pierre Decazes</title>
	<atom:link href="https://drpierredecazes.com/en/feed/" rel="self" type="application/rss+xml" />
	<link>https://drpierredecazes.com/en/accueil-english/</link>
	<description>Dr Pierre Decazes website</description>
	<lastBuildDate>Wed, 12 Feb 2025 16:40:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.4</generator>

<image>
	<url>https://drpierredecazes.com/wp-content/uploads/2024/12/cropped-cropped-picsvg_download_mod2-32x32.png</url>
	<title>Dr Pierre Decazes</title>
	<link>https://drpierredecazes.com/en/accueil-english/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Towards a new definition of obesity</title>
		<link>https://drpierredecazes.com/en/2025/02/12/towards-a-new-definition-of-obesity/</link>
					<comments>https://drpierredecazes.com/en/2025/02/12/towards-a-new-definition-of-obesity/#respond</comments>
		
		<dc:creator><![CDATA[drdecazes]]></dc:creator>
		<pubDate>Wed, 12 Feb 2025 16:24:19 +0000</pubDate>
				<category><![CDATA[Body composition]]></category>
		<guid isPermaLink="false">https://drpierredecazes.com/?p=414</guid>

					<description><![CDATA[<p>The body mass index is outdated We saw in a previous article that, while the World Health Organization (WHO) uses the Body Mass Index (BMI) to define obesity when the BMI exceeds 30 kg/m2, this parameter can be misleading, as some people above this threshold may have normal body fat (such as athletes with high [&#8230;]</p>
<p>The post <a href="https://drpierredecazes.com/en/2025/02/12/towards-a-new-definition-of-obesity/">Towards a new definition of obesity</a> appeared first on <a href="https://drpierredecazes.com/en/accueil-english/">Dr Pierre Decazes</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="414" class="elementor elementor-414">
				<div class="elementor-element elementor-element-e8c36fc e-flex e-con-boxed e-con e-parent" data-id="e8c36fc" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-1b61e8d elementor-widget elementor-widget-heading" data-id="1b61e8d" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">The body mass index is outdated</h2>				</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-5fa6410 e-flex e-con-boxed e-con e-parent" data-id="5fa6410" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-24edd58 elementor-widget elementor-widget-text-editor" data-id="24edd58" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									We saw in a <a href="https://drpierredecazes.com/fr/2025/01/08/choisissez-votre-poids-ideal/">previous article</a> that, while the World Health Organization (WHO) uses the Body Mass Index (BMI) to define obesity when the BMI exceeds 30 kg/m2, this parameter can be misleading, as some people above this threshold may have normal body fat (such as athletes with high muscle mass) and, conversely, others with a BMI below this threshold may have significant body fat.

<br /><br />

On the other hand, many people with excess adipose tissue show no signs of disease.

<br /><br />

So, while BMI is useful at the population level, its ability to predict health status at the individual level is more limited.								</div>
				</div>
				<div class="elementor-element elementor-element-20dc626 elementor-widget elementor-widget-heading" data-id="20dc626" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Anthropometry is now preferred</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-b0043dd elementor-widget elementor-widget-text-editor" data-id="b0043dd" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Rather than using BMI alone to define obesity, anthropometric measurements of body fat are now used to diagnose obesity [1].
<br /><br />

These measurements can be indirect (such as waist circumference, which reflects visceral fat mass within the abdominal cavity) or direct (such as biphotonic absorptiometry, which uses X-rays to measure the fat compartment).
<br /><br />

Thus, for Caucasians, the diagnosis of obesity can now be made when a BMI greater than 30 kg/m2 is combined with a waist circumference ≥ 102 cm for men and ≥ 88 cm for women.
<br /><br />

If the BMI is less than 30 kg/m2 or is unknown, the diagnosis of obesity can still be made by combining two of the following three anthropometric parameters:
<ul>
 	<li>Waist circumference ≥ 102 cm for men and ≥ 88 cm for women (for Caucasians)</li>
 	<li>Waist/hip circumference ratio &gt; 0.90 for men and &gt; 0.85 for women</li>
 	<li>Waist/height ratio &gt; 0.50 for both men and women.</li>
</ul>
<br />
Finally, independently of BMI and other simple clinical measurements, the diagnosis can be made by direct measurement of body fat (DEXA or CT scan, for example).
<br /><br />

Thanks to these anthropometric measurements, muscular people with a high BMI but low body fat will not be wrongly diagnosed as obese.								</div>
				</div>
				<div class="elementor-element elementor-element-7fcaf57 elementor-widget elementor-widget-image" data-id="7fcaf57" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img fetchpriority="high" width="300" height="300"  class="attachment-medium size-medium wp-image-380 lws-optimize-lazyload" alt="Homme musclé" srcset="https://drpierredecazes.com/wp-content/uploads/2025/01/homme_muscle-300x300.webp 300w, https://drpierredecazes.com/wp-content/uploads/2025/01/homme_muscle-150x150.webp 150w, https://drpierredecazes.com/wp-content/uploads/2025/01/homme_muscle-768x768.webp 768w, https://drpierredecazes.com/wp-content/uploads/2025/01/homme_muscle-600x600.webp 600w, https://drpierredecazes.com/wp-content/uploads/2025/01/homme_muscle.webp 1024w" sizes="(max-width: 300px) 100vw, 300px" / data-src="https://drpierredecazes.com/wp-content/uploads/2025/01/homme_muscle-300x300.webp">											<figcaption class="widget-image-caption wp-caption-text">A muscular man with a high BMI, but not obese because of limited body fat.</figcaption>
										</figure>
									</div>
				</div>
				<div class="elementor-element elementor-element-e7b0ec9 elementor-widget elementor-widget-heading" data-id="e7b0ec9" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Pre-clinical or clinical obesity?</h2>				</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-43c8c54 e-flex e-con-boxed e-con e-parent" data-id="43c8c54" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-1baf985 elementor-widget elementor-widget-text-editor" data-id="1baf985" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									A diagnosis of obesity (excess body fat) does not, however, imply disease.
<br /><br />

Indeed, while obesity is a risk factor for the development of diseases (cardiovascular, type 2 diabetes, etc.), not all obese people suffer from symptoms or illnesses linked to their obesity. They may even experience no discomfort in their daily activities. In this case, we speak of preclinical obesity.
<br /><br />

If, on the other hand, there are limitations to daily activities, or symptoms or illnesses linked to obesity, we speak of clinical obesity.

People suffering from clinical obesity have a variety of impairments, including :
<ul>
 	<li>Shortness of breath due to the effects of obesity on the heart or lungs,</li>
 	<li>Knee or hip pain accompanied by joint stiffness and reduced range of motion.</li>
 	<li>A range of metabolic abnormalities (diabetes, etc.)</li>
 	<li>Dysfunction of other organs, including the kidneys, upper respiratory tract, nervous, urinary and reproductive systems.</li>
</ul>
<br />
It is important to ensure, however, that the symptoms/signs of organ dysfunction and/or reduced daily 
activities are consequences of obesity, if the diagnosis of clinical obesity is to be retained.								</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-b72da42 e-flex e-con-boxed e-con e-parent" data-id="b72da42" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-b4f47c8 elementor-widget elementor-widget-image" data-id="b4f47c8" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img width="1024" height="1024"  class="attachment-large size-large wp-image-400 lws-optimize-lazyload" alt="" srcset="https://drpierredecazes.com/wp-content/uploads/2025/02/obesite_preclinique.webp 1024w, https://drpierredecazes.com/wp-content/uploads/2025/02/obesite_preclinique-300x300.webp 300w, https://drpierredecazes.com/wp-content/uploads/2025/02/obesite_preclinique-150x150.webp 150w, https://drpierredecazes.com/wp-content/uploads/2025/02/obesite_preclinique-768x768.webp 768w, https://drpierredecazes.com/wp-content/uploads/2025/02/obesite_preclinique-600x600.webp 600w" sizes="(max-width: 1024px) 100vw, 1024px" / data-src="https://drpierredecazes.com/wp-content/uploads/2025/02/obesite_preclinique.webp">											<figcaption class="widget-image-caption wp-caption-text">Obésité préclinique, sans symptôme lié à l'obésité</figcaption>
										</figure>
									</div>
				</div>
				<div class="elementor-element elementor-element-7338216 elementor-widget elementor-widget-image" data-id="7338216" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img width="1024" height="1024"  class="attachment-large size-large wp-image-401 lws-optimize-lazyload" alt="" srcset="https://drpierredecazes.com/wp-content/uploads/2025/02/obesite_clinique.webp 1024w, https://drpierredecazes.com/wp-content/uploads/2025/02/obesite_clinique-300x300.webp 300w, https://drpierredecazes.com/wp-content/uploads/2025/02/obesite_clinique-150x150.webp 150w, https://drpierredecazes.com/wp-content/uploads/2025/02/obesite_clinique-768x768.webp 768w, https://drpierredecazes.com/wp-content/uploads/2025/02/obesite_clinique-600x600.webp 600w" sizes="(max-width: 1024px) 100vw, 1024px" / data-src="https://drpierredecazes.com/wp-content/uploads/2025/02/obesite_clinique.webp">											<figcaption class="widget-image-caption wp-caption-text">Obésité clinique, avec des symptômes et gêne liés à l'obésité</figcaption>
										</figure>
									</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-f9b1568 e-flex e-con-boxed e-con e-parent" data-id="f9b1568" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-f278928 elementor-widget elementor-widget-heading" data-id="f278928" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">What about you?</h2>				</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-e100966 e-flex e-con-boxed e-con e-parent" data-id="e100966" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-57550e4 elementor-widget elementor-widget-shortcode" data-id="57550e4" data-element_type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">    <!-- Introduction text -->
    <p>Modify the values below to customize the article:</p>

    <!-- User data input form -->
    <form id="userDataForm">
        <!-- Gender selection -->
        <div class="form-group">
            <label for="gender">Gender:</label>
            <select id="gender" name="gender" required>
                <option value="">Select</option>
                <option value="M" selected>Male</option> <!-- Default value: Male -->
                <option value="F">Female</option>
            </select>
        </div>

        <!-- Flex container for Height, Weight, and other measurements -->
        <div class="flex-container">
            <!-- Field for entering height in centimeters -->
            <div class="form-group">
                <label for="height">Height (cm)</label>
                <input type="number" id="height" name="height" min="120" max="250" step="1" value="175" required>
            </div>

            <!-- Field for entering weight in kilograms -->
            <div class="form-group">
                <label for="weight">Weight (kg)</label>
                <input type="number" id="weight" name="weight" min="30" max="200" step="1" value="75" required>
            </div>

            <!-- Field for entering waist circumference in centimeters -->
            <div class="form-group">
                <label for="waist">Waist (cm)</label>
                <input type="number" id="waist" name="waist" min="50" max="200" step="1" value="80" required>
            </div>

            <!-- Field for entering hip circumference in centimeters -->
            <div class="form-group">
                <label for="hip">Hip (cm)</label>
                <input type="number" id="hip" name="hip" min="50" max="200" step="1" value="100" required>
            </div>
        </div>

        <!-- Submit button -->
        <button type="submit">Update</button>
    </form>

    <div id="obesityDiagnostic"></div> <!-- Display the diagnostic -->

    <!-- CSS Styles -->
    <style>
        p { font-size: 18px; margin-bottom: 20px; font-weight: bold; color: #333; }

        .flex-container { 
            display: flex; 
            justify-content: space-between; 
            gap: 20px; 
            flex-wrap: wrap; 
            margin-bottom: 15px; 
        }

        .form-group { 
            flex: 1; 
            display: flex; 
            flex-direction: column; 
            margin-bottom: 10px; 
            min-width: 120px; 
        }

        /* Enlarge input fields */
        .form-group input, .form-group select {
            width: 100%; /* Fields take the full available width */
            padding: 25px; /* Increase inner padding */
            font-size: 18px; /* Increase text size */
            border: 1px solid #ccc;
            border-radius: 4px;
            height: 50px; /* Increase the height of input fields */
        }

        .form-group select {
            font-size: 25px; /* Increase font size for the dropdown */
        }

        #userDataForm button {
            width: 100%;
            padding: 12px;
            font-size: 16px;
            background-color: #0073aa;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        #userDataForm button:hover {
            background-color: #005f7a;
        }
    </style>

    <!-- JavaScript -->
    <script>
        document.addEventListener('DOMContentLoaded', function () {
            // Function to calculate BMI
            function calculateBMI(weight, height) {
                return weight / Math.pow(height / 100, 2);
            }

            // Function to calculate ratios
            function calculateRatios(height, waist, hip) {
                let waistHipRatio = waist / hip;
                let waistHeightRatio = waist / height;
                return { waistHipRatio, waistHeightRatio };
            }

            // Function to diagnose obesity
            function diagnoseObesity(gender, height, weight, waist, hip) {
                const bmi = calculateBMI(weight, height);
                const { waistHipRatio, waistHeightRatio } = calculateRatios(height, waist, hip);
                let diagnostic = "You are not obese based on the given criteria.";

                let maleReasons = [];
                let femaleReasons = [];

                // Diagnostic criteria for males
                if (gender === "M") {
                    if (bmi > 30) {
                        // Only one additional parameter is sufficient if BMI > 30
                        if (waist >= 102) {
                            maleReasons.push("BMI greater than 30 and waist circumference of at least 102 cm.");
                        }
                        if (waistHipRatio > 0.90) {
                            maleReasons.push("BMI greater than 30 and waist-to-hip ratio greater than 0.90.");
                        }
                        if (waistHeightRatio > 0.50) {
                            maleReasons.push("BMI greater than 30 and waist-to-height ratio greater than 0.50.");
                        }
                        if (maleReasons.length > 0) {
                            diagnostic = "Based on the entered values, obesity should be considered for the following reasons (males): " + maleReasons.join(" ") + " Please consult your doctor, especially to check for signs of clinical obesity.";
                        }
                    } else {
                        // If BMI <= 30, at least two anthropometric criteria are required
                        let maleCriteriaCount = 0;

                        if (waist >= 102) {
                            maleCriteriaCount++;
                            maleReasons.push("Waist circumference of at least 102 cm.");
                        }
                        if (waistHipRatio > 0.90) {
                            maleCriteriaCount++;
                            maleReasons.push("Waist-to-hip ratio greater than 0.90.");
                        }
                        if (waistHeightRatio > 0.50) {
                            maleCriteriaCount++;
                            maleReasons.push("Waist-to-height ratio greater than 0.50.");
                        }

                        if (maleCriteriaCount >= 2) {
                            diagnostic = "Based on the entered values, obesity should be considered for the following reasons (males): " + maleReasons.join(" ") + " Please consult your doctor, especially to check for signs of clinical obesity.";
                        }
                    }
                }

                // Diagnostic criteria for females
                if (gender === "F") {
                    if (bmi > 30) {
                        // Only one additional parameter is sufficient if BMI > 30
                        if (waist >= 88) {
                            femaleReasons.push("BMI greater than 30 and waist circumference of at least 88 cm.");
                        }
                        if (waistHipRatio > 0.85) {
                            femaleReasons.push("BMI greater than 30 and waist-to-hip ratio greater than 0.85.");
                        }
                        if (waistHeightRatio > 0.50) {
                            femaleReasons.push("BMI greater than 30 and waist-to-height ratio greater than 0.50.");
                        }
                        if (femaleReasons.length > 0) {
                            diagnostic = "Based on the entered values, obesity should be considered for the following reasons (females): " + femaleReasons.join(" ") + " Please consult your doctor, especially to check for signs of clinical obesity.";
                        }
                    } else {
                        // If BMI <= 30, at least two anthropometric criteria are required
                        let femaleCriteriaCount = 0;

                        if (waist >= 88) {
                            femaleCriteriaCount++;
                            femaleReasons.push("Waist circumference of at least 88 cm.");
                        }
                        if (waistHipRatio > 0.85) {
                            femaleCriteriaCount++;
                            femaleReasons.push("Waist-to-hip ratio greater than 0.85.");
                        }
                        if (waistHeightRatio > 0.50) {
                            femaleCriteriaCount++;
                            femaleReasons.push("Waist-to-height ratio greater than 0.50.");
                        }

                        if (femaleCriteriaCount >= 2) {
                            diagnostic = "Based on the entered values, obesity should be considered for the following reasons (females): " + femaleReasons.join(" ") + " Please consult your doctor, especially to check for signs of clinical obesity.";
                        }
                    }
                }

                return diagnostic;
            }

            // Handle form submission
            document.getElementById('userDataForm').addEventListener('submit', function (e) {
                e.preventDefault();

                // Retrieve the entered values
                const gender = document.getElementById('gender').value;
                const height = parseInt(document.getElementById('height').value, 10);
                const weight = parseInt(document.getElementById('weight').value, 10);
                const waist = parseInt(document.getElementById('waist').value, 10);
                const hip = parseInt(document.getElementById('hip').value, 10);

                // Validate the data
                if (!gender || isNaN(height) || isNaN(weight) || isNaN(waist) || isNaN(hip)) {
                    alert("Please fill in all fields correctly.");
                    return;
                }

                // Display the diagnostic
                const diagnostic = diagnoseObesity(gender, height, weight, waist, hip);
                document.getElementById('obesityDiagnostic').innerHTML = "<p><strong>Diagnostic:</strong> " + diagnostic + "</p>";
            });
        });
    </script>
    </div>
						</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-fe0bf3e e-flex e-con-boxed e-con e-parent" data-id="fe0bf3e" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-ce3ac4a elementor-widget elementor-widget-heading" data-id="ce3ac4a" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">References</h2>				</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-c0577d2 e-flex e-con-boxed e-con e-parent" data-id="c0577d2" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-21975ff elementor-widget elementor-widget-text-editor" data-id="21975ff" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<div class="csl-bib-body"><div class="csl-entry"><div class="csl-left-margin"><a href="https://linkinghub.elsevier.com/retrieve/pii/S2213-8587(24)00316-4">1. Rubino F, Cummings DE, Eckel RH, Cohen RV, Wilding JPH, Brown WA, et al. Definition and diagnostic criteria of clinical obesity. The Lancet Diabetes &amp; Endocrinology. janv 2025</a></div></div></div>								</div>
				</div>
					</div>
				</div>
				</div>
		<p>The post <a href="https://drpierredecazes.com/en/2025/02/12/towards-a-new-definition-of-obesity/">Towards a new definition of obesity</a> appeared first on <a href="https://drpierredecazes.com/en/accueil-english/">Dr Pierre Decazes</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://drpierredecazes.com/en/2025/02/12/towards-a-new-definition-of-obesity/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Choose your ideal weight</title>
		<link>https://drpierredecazes.com/en/2025/01/09/choose-your-ideal-weight/</link>
					<comments>https://drpierredecazes.com/en/2025/01/09/choose-your-ideal-weight/#respond</comments>
		
		<dc:creator><![CDATA[drdecazes]]></dc:creator>
		<pubDate>Thu, 09 Jan 2025 21:37:59 +0000</pubDate>
				<category><![CDATA[Body composition]]></category>
		<guid isPermaLink="false">https://drpierredecazes.com/?p=317</guid>

					<description><![CDATA[<p>What is the ideal weight? Ideal weight refers to a body weight considered optimal for an individual&#8217;s health, based on various criteria such as height, age, sex, muscle mass, body composition, and activities. Ideal weight also depends on personal aspirations and what one aims to achieve with their body. For instance, a study conducted by [&#8230;]</p>
<p>The post <a href="https://drpierredecazes.com/en/2025/01/09/choose-your-ideal-weight/">Choose your ideal weight</a> appeared first on <a href="https://drpierredecazes.com/en/accueil-english/">Dr Pierre Decazes</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="317" class="elementor elementor-317">
				<div class="elementor-element elementor-element-8f4f0dc e-flex e-con-boxed e-con e-parent" data-id="8f4f0dc" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-3fa63e6 elementor-widget elementor-widget-shortcode" data-id="3fa63e6" data-element_type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">    <!-- Introduction Text -->
    <p>Modify the values below to personalize the article:</p>

    <!-- User Data Input Form -->
    <form id="formulaireDonneesUtilisateur">
        <!-- Gender Selection -->
        <div class="form-group">
            <label for="sexe">Gender:</label>
            <select id="sexe" name="sexe" required>
                <option value="">Select</option>
                <option value="H" selected>Male</option> <!-- Default value: Male -->
                <option value="F">Female</option>
            </select>
        </div>

        <!-- Flex Container for Height, Weight, and Age -->
        <div class="flex-container">
            <!-- Height field (in centimeters) -->
            <div class="form-group">
                <label for="taille">Height (cm):</label>
                <input type="number" id="taille" name="taille" min="120" max="250" step="1" value="175" required> <!-- Default value: 175 -->
            </div>

            <!-- Weight field (in kilograms) -->
            <div class="form-group">
                <label for="poids">Weight (kg):</label>
                <input type="number" id="poids" name="poids" min="30" max="200" step="1" value="75" required> <!-- Default value: 75 -->
            </div>

            <!-- Age field (in years) -->
            <div class="form-group">
                <label for="age">Age:</label>
                <input type="number" id="age" name="age" min="0" max="120" step="1" value="40" required> <!-- Default value: 40 -->
            </div>
        </div>

        <!-- Submit Button -->
        <button type="submit">Update</button>
    </form>

    <!-- CSS Styles -->
    <style>
        /* Introduction Text */
        p {
            font-size: 18px;
            margin-bottom: 20px;
            font-weight: bold;
            color: #333;
        }

        .flex-container {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap; /* Fields wrap to the next line if space is insufficient */
            margin-bottom: 15px;
        }

        .form-group {
            flex: 1; /* Allows each group to expand evenly */
            display: flex;
            flex-direction: column;
            margin-bottom: 10px;
            min-width: 120px; /* Minimum width to avoid fields becoming too small */
        }

        .form-group input,
        .form-group select {
            width: 100%; /* Takes up full container width */
            padding: 12px;
            font-size: 16px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        .form-group label {
            font-weight: bold;
            margin-bottom: 5px;
        }

        /* Increase width for the height field */
        .form-group input#taille {
            width: auto; /* Allows width to be defined based on content */
            max-width: 100px; /* Limits the maximum width of the field to 100px */
        }

        #formulaireDonneesUtilisateur button {
            width: 100%; /* Button takes full width */
            padding: 12px;
            font-size: 16px;
            background-color: #0073aa;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        #formulaireDonneesUtilisateur button:hover {
            background-color: #005f7a;
        }

        @media (max-width: 600px) {
            .flex-container {
                flex-direction: column;
            }

            .form-group input#taille {
                max-width: none; /* On small screens, the field will take full width */
            }
        }
    </style>

    <!-- JS Script -->
    <script>
        document.addEventListener('DOMContentLoaded', function () {
            // Initialize default data in a global variable
            window.userData = {
                sexe: "H",       // Default: Male
                taille: 175,     // Default: 175 cm
                poids: 75,       // Default: 75 kg
                age: 40          // Default: 40 years
            };

            // Trigger an event to notify that initial data is ready
            const initialEvent = new CustomEvent('userDataUpdated', { detail: window.userData });
            window.dispatchEvent(initialEvent);

            // Handle form submission
            document.getElementById('formulaireDonneesUtilisateur').addEventListener('submit', function (e) {
                e.preventDefault();

                // Retrieve input values
                const sexe = document.getElementById('sexe').value;
                const taille = parseInt(document.getElementById('taille').value, 10);
                const poids = parseInt(document.getElementById('poids').value, 10);
                const age = parseInt(document.getElementById('age').value, 10);

                // Data validation
                if (!sexe || isNaN(taille) || isNaN(poids) || isNaN(age)) {
                    alert("Please fill in all fields correctly.");
                    return;
                }

                if (taille < 120 || taille > 250 || poids < 30 || poids > 200 || age < 0 || age > 120) {
                    alert("Please enter valid values.");
                    return;
                }

                // Update data in the global variable
                window.userData = { sexe, taille, poids, age };

                // Trigger a custom event to notify other scripts
                const event = new CustomEvent('userDataUpdated', { detail: window.userData });
                window.dispatchEvent(event);

                // Display a confirmation (optional)
                console.log(`Updated data:`, window.userData);
            });
        });
    </script>
    </div>
						</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-0cca75a e-flex e-con-boxed e-con e-parent" data-id="0cca75a" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-68a39b6 elementor-widget elementor-widget-heading" data-id="68a39b6" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>What is the ideal weight?<br></h2>				</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-d753943 e-flex e-con-boxed e-con e-parent" data-id="d753943" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-1eea11c elementor-widget elementor-widget-text-editor" data-id="1eea11c" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<div class="markdown prose w-full">

<strong>Ideal weight</strong> refers to a body weight considered optimal for an individual&#8217;s health, based on various criteria such as height, age, sex, muscle mass, body composition, and activities.

<strong>Ideal weight</strong> also depends on personal aspirations and what one aims to achieve with their body. For instance, a study conducted by Sedeaud et al. analyzed the BMI of athletes based on running events and showed that marathon runners tend to have a lower body mass compared to 100-meter sprinters, even at the same height. [1]

</div>								</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-7035348 e-flex e-con-boxed e-con e-parent" data-id="7035348" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-b169d97 elementor-widget elementor-widget-image" data-id="b169d97" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" width="1024" height="563"  class="attachment-large size-large wp-image-297 lws-optimize-lazyload" alt="" srcset="https://drpierredecazes.com/wp-content/uploads/2025/01/BMI_according_sport-1024x563.png 1024w, https://drpierredecazes.com/wp-content/uploads/2025/01/BMI_according_sport-300x165.png 300w, https://drpierredecazes.com/wp-content/uploads/2025/01/BMI_according_sport-768x422.png 768w, https://drpierredecazes.com/wp-content/uploads/2025/01/BMI_according_sport-1536x845.png 1536w, https://drpierredecazes.com/wp-content/uploads/2025/01/BMI_according_sport-1320x726.png 1320w, https://drpierredecazes.com/wp-content/uploads/2025/01/BMI_according_sport.png 1602w" sizes="(max-width: 1024px) 100vw, 1024px" / data-src="https://drpierredecazes.com/wp-content/uploads/2025/01/BMI_according_sport-1024x563.png">											<figcaption class="widget-image-caption wp-caption-text">BMI distribution of all athletes by running event. Marathon runners have the lowest BMI (19.5 kg/m2 ± 1.29 kg/m2) and 100 m runners the highest (23.3 kg/m2 ± 1.67 kg/m2). Sedeaud A. et al. Plos One February 2014. DOI : 10.1371/journal.pone.0090183</figcaption>
										</figure>
									</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-b7d5c5d e-flex e-con-boxed e-con e-parent" data-id="b7d5c5d" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-2306b09 elementor-widget elementor-widget-heading" data-id="2306b09" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>Mathematical formulas: variable and limited results<br>
</h2>				</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-6790c55 e-flex e-con-boxed e-con e-parent" data-id="6790c55" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-274e432 elementor-widget elementor-widget-text-editor" data-id="274e432" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Ideal weight formulas aim to estimate a theoretical weight based on parameters such as height, sex, age, or body type. However, their results often vary depending on the approach and have certain limitations.

For example, the <strong>Broca formula</strong>, simple and easy to remember, relies solely on height. It is often cited as the basis for other formulas, even though its results can sometimes be too approximate.
<blockquote><strong>Ideal weight (kg) = Height (cm) – 100</strong></blockquote>
Example: For a person measuring 170 cm, the ideal weight would be 70 kg.

The <strong>Lorentz formula</strong> improves upon Broca&#8217;s by introducing an additional adjustment based on sex. It is particularly popular in countries using the metric system.
<ul>
 	<li>
<ul>
 	<li><strong>For men</strong>:
<blockquote><strong>Ideal weight (kg) = Height (cm) – 100 – (Height (cm) – 150) ÷ 4</strong></blockquote>
</li>
 	<li><strong>For women</strong>:
<blockquote><strong>Ideal weight (kg) = Height (cm) – 100 – (Height (cm) – 150) ÷ 2.5</strong></blockquote>
</li>
</ul>
</li>
</ul>
Example:
A man measuring 170 cm would have an ideal weight of 65 kg.
A woman measuring 170 cm would have an ideal weight of 62 kg.

As for the <strong>Devine formula</strong>, originally developed to adjust medical dosages, it is expressed in inches and remains popular in English-speaking countries.
<ul>
 	<li><strong>For men</strong>:
<blockquote><strong>Ideal weight (kg) = 50 [kg] + 2.3 × {Height (in inches) – 60}</strong></blockquote>
</li>
 	<li><strong>For women</strong>:
<blockquote><strong>Ideal weight (kg) = 45.5 [kg] + 2.3 × {Height (in inches) – 60}</strong></blockquote>
</li>
</ul>
To convert centimeters to inches: <strong>1 cm = 0.3937 inches</strong>.

Example: A woman measuring 170 cm (equivalent to 66.93 inches) would have an ideal weight of 61 kg.								</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-868c530 e-flex e-con-boxed e-con e-parent" data-id="868c530" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-9adf9b2 elementor-widget elementor-widget-shortcode" data-id="9adf9b2" data-element_type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">    <div class="combined-chart-wrapper">
        <p>Ideal weight according to the Broca, Lorentz, and Devine formulas:</p>
        <ul id="combined_result">
            <li><strong>Broca Formula:</strong> <span id="broca_result">Calculating...</span></li>
            <li><strong>Lorentz Formula:</strong> <span id="lorentz_result">Calculating...</span></li>
            <li><strong>Devine Formula:</strong> <span id="devine_result">Calculating...</span></li>
        </ul>
        <div class="chart-container">
            <canvas id="combined_chart"></canvas>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script>
        (function () {
            let combinedChartInstance = null;

            function destroyCombinedChart() {
                if (combinedChartInstance) {
                    combinedChartInstance.destroy();
                    combinedChartInstance = null;
                }
            }

            function updateResults(brocaWeight, lorentzWeight, devineWeight) {
                document.getElementById('broca_result').textContent = `${brocaWeight.toFixed(2)} kg`;
                document.getElementById('lorentz_result').textContent = `${lorentzWeight.toFixed(2)} kg`;
                document.getElementById('devine_result').textContent = `${devineWeight.toFixed(2)} kg`;
            }

            function drawCombinedChart() {
                if (!window.userData || !window.userData.taille || !window.userData.sexe || !window.userData.age) {
                    document.getElementById('broca_result').textContent = 'No data available';
                    document.getElementById('lorentz_result').textContent = 'No data available';
                    document.getElementById('devine_result').textContent = 'No data available';
                    destroyCombinedChart();
                    return;
                }

                const canvas = document.getElementById('combined_chart');
                const ctx = canvas.getContext('2d');

                const heightInCm = parseFloat(window.userData.taille);
                const sexe = window.userData.sexe;

                // Calculate the ideal weights
                const brocaWeight = heightInCm - 100;
                const lorentzWeight = sexe === 'H'
                    ? heightInCm - 100 - (heightInCm - 150) / 4
                    : heightInCm - 100 - (heightInCm - 150) / 2.5;
                const devineWeight = sexe === 'H'
                    ? 50 + 2.3 * ((heightInCm / 2.54) - 60)
                    : 45.5 + 2.3 * ((heightInCm / 2.54) - 60);

                updateResults(brocaWeight, lorentzWeight, devineWeight);

                // Data for the chart
                const heights = [150, 160, 170, 180, 190]; // Heights in cm
                const brocaWeights = heights.map(h => h - 100);
                const lorentzWeights = heights.map(h =>
                    sexe === 'H'
                        ? h - 100 - (h - 150) / 4
                        : h - 100 - (h - 150) / 2.5
                );
                const devineWeights = heights.map(h =>
                    sexe === 'H'
                        ? 50 + 2.3 * ((h / 2.54) - 60)
                        : 45.5 + 2.3 * ((h / 2.54) - 60)
                );

                destroyCombinedChart();

                combinedChartInstance = new Chart(ctx, {
                    type: 'line',
                    data: {
                        labels: heights,
                        datasets: [
                            {
                                label: `Broca Formula`,
                                data: brocaWeights,
                                borderColor: 'rgba(75, 192, 192, 1)',
                                borderWidth: 2,
                                fill: false
                            },
                            {
                                label: `Lorentz Formula`,
                                data: lorentzWeights,
                                borderColor: 'rgba(255, 165, 0, 1)',
                                borderWidth: 2,
                                fill: false
                            },
                            {
                                label: `Devine Formula`,
                                data: devineWeights,
                                borderColor: 'rgba(54, 162, 235, 1)',
                                borderWidth: 2,
                                fill: false
                            },
                            {
                                label: 'Point - Broca',
                                data: [{ x: heightInCm, y: brocaWeight }],
                                borderColor: 'rgba(75, 192, 192, 1)',
                                pointBackgroundColor: 'rgba(75, 192, 192, 1)',
                                pointRadius: 6,
                                showLine: false
                            },
                            {
                                label: 'Point - Lorentz',
                                data: [{ x: heightInCm, y: lorentzWeight }],
                                borderColor: 'rgba(255, 165, 0, 1)',
                                pointBackgroundColor: 'rgba(255, 165, 0, 1)',
                                pointRadius: 6,
                                showLine: false
                            },
                            {
                                label: 'Point - Devine',
                                data: [{ x: heightInCm, y: devineWeight }],
                                borderColor: 'rgba(54, 162, 235, 1)',
                                pointBackgroundColor: 'rgba(54, 162, 235, 1)',
                                pointRadius: 6,
                                showLine: false
                            }
                        ]
                    },
                    options: {
                        responsive: true,
                        maintainAspectRatio: false,
                        plugins: {
                            title: {
                                display: true,
                                text: `Comparison of Broca, Lorentz, and Devine Formulas`,
                                font: { size: 16 }
                            },
                            legend: {
                                labels: { font: { size: 12 } }
                            }
                        },
                        scales: {
                            x: {
                                type: 'linear',
                                title: {
                                    display: true,
                                    text: 'Height (cm)'
                                },
                                ticks: {
                                    callback: function (value) {
                                        return `${value} cm`;
                                    }
                                }
                            },
                            y: {
                                title: {
                                    display: true,
                                    text: 'Ideal Weight (kg)'
                                }
                            }
                        }
                    }
                });
            }

            document.addEventListener('DOMContentLoaded', function () {
                if (window.userData && window.userData.taille && window.userData.sexe) {
                    drawCombinedChart();
                } else {
                    document.getElementById('broca_result').textContent = 'No data available';
                    document.getElementById('lorentz_result').textContent = 'No data available';
                    document.getElementById('devine_result').textContent = 'No data available';
                }
            });

            window.addEventListener('userDataUpdated', function () {
                drawCombinedChart();
            });
        })();
    </script>

    <style>
        .combined-chart-wrapper {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
            padding: 10px;
        }

        ul#combined_result {
            list-style-type: none;
            padding: 0;
            margin: 0 0 20px;
        }

        ul#combined_result li {
            margin-bottom: 10px;
        }

        .chart-container {
            position: relative;
            width: 100%;
            height: 400px;
        }

        @media (max-width: 600px) {
            .chart-container {
                height: 500px;
            }

            .combined-chart-wrapper {
                padding: 5px;
            }

            ul#combined_result li {
                font-size: 14px;
            }
        }
    </style>
    </div>
						</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-5f84f4b e-flex e-con-boxed e-con e-parent" data-id="5f84f4b" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-2638a65 elementor-widget elementor-widget-text-editor" data-id="2638a65" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									The <strong>Perrault formula</strong> introduces age as a parameter to reflect body changes associated with aging, resulting in an ideal weight that increases with age.
<blockquote><strong>Ideal weight (kg) = Height (cm) – 100 + (Age (years) ÷ 10 × 0.9)</strong></blockquote>
Example: A person measuring 170 cm and aged 30 years would have an ideal weight of 72.7 kg, while at 70 years old, their ideal weight would be 76.3 kg.								</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-1c6319a e-flex e-con-boxed e-con e-parent" data-id="1c6319a" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-ddd3cde elementor-widget elementor-widget-shortcode" data-id="ddd3cde" data-element_type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">    <div class="perrault-chart-wrapper">
        <p>
            Ideal weight according to the Perrault formula: 
            <span id="perrault_result">Calculating...</span>
        </p>
        <div class="chart-container">
            <canvas id="perrault_chart"></canvas>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script>
        function drawPerraultChart() {
            // Check if user data exists
            if (!window.userData || !window.userData.taille) {
                document.getElementById('perrault_result').textContent = 'No data available';
                return;
            }

            const ctx = document.getElementById('perrault_chart').getContext('2d');
            const heightInCm = window.userData.taille; // Height in cm
            const currentAge = window.userData.age || 40; // Current age (default value: 40 years)

            // Generate ages (from 0 to 120 years) for the X-axis
            const ages = Array.from({ length: 121 }, (_, i) => i); // From 0 to 120 years

            // Calculate ideal weights for each age
            const weights = ages.map(age => heightInCm - 100 + (age / 10) * 0.9);

            // Ideal weight for the current age
            const perraultWeight = heightInCm - 100 + (currentAge / 10) * 0.9;

            // Update the result displayed
            document.getElementById('perrault_result').textContent = `${perraultWeight.toFixed(2)} kg`;

            // Remove the previous chart if it exists
            if (window.perraultChart) {
                window.perraultChart.destroy();
            }

            // Create the chart
            window.perraultChart = new Chart(ctx, {
                type: 'line',
                data: {
                    labels: ages, // Ages
                    datasets: [
                        {
                            label: `Ideal Weight According to Perrault Formula (Height: ${heightInCm} cm)`,
                            data: weights,
                            borderColor: 'rgba(75, 192, 192, 1)',
                            borderWidth: 2,
                            fill: false
                        },
                        {
                            label: 'Your Ideal Weight',
                            data: [{ x: currentAge, y: perraultWeight }], // Single point
                            borderColor: 'red',
                            backgroundColor: 'red',
                            pointBackgroundColor: 'red',
                            pointBorderColor: 'red',
                            pointRadius: 6,
                            pointHoverRadius: 8,
                            showLine: false
                        }
                    ]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false, // Makes the chart responsive
                    plugins: {
                        title: {
                            display: true,
                            text: `Perrault Formula: Ideal Weight by Age`,
                            font: {
                                size: 14
                            }
                        },
                        legend: {
                            labels: {
                                font: {
                                    size: 12
                                }
                            }
                        },
                    },
                    scales: {
                        x: {
                            type: 'linear',
                            title: {
                                display: true,
                                text: 'Age (Years)'
                            },
                            ticks: {
                                callback: function (value) {
                                    return `${value} years`;
                                }
                            }
                        },
                        y: {
                            title: {
                                display: true,
                                text: 'Ideal Weight (kg)'
                            },
                            beginAtZero: true
                        }
                    }
                }
            });
        }

        // Initialize the chart if the data is available on page load
        document.addEventListener('DOMContentLoaded', function () {
            if (window.userData && window.userData.taille) {
                drawPerraultChart();
            } else {
                document.getElementById('perrault_result').textContent = 'Please enter your data.';
            }
        });

        // Update the chart when user data changes via the form
        window.addEventListener('userDataUpdated', function () {
            drawPerraultChart();
        });
    </script>

    <style>
        .perrault-chart-wrapper {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
            padding: 10px;
        }

        .chart-container {
            position: relative;
            height: 400px;
            width: 100%;
        }

        @media (max-width: 600px) {
            .chart-container {
                height: 300px;
            }

            .perrault-chart-wrapper {
                padding: 5px;
            }

            #perrault_result {
                font-size: 14px;
            }
        }
    </style>
    </div>
						</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-186d561 e-flex e-con-boxed e-con e-parent" data-id="186d561" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-162c351 elementor-widget elementor-widget-text-editor" data-id="162c351" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Finally, the <strong>Creff formula</strong> goes a step further by taking into account an individual&#8217;s body type (normal, large, or slender-gracile).
<ul>
 	<li><strong>Normal body type</strong>:
<blockquote><strong>Ideal weight (kg) = Height (cm) – 100 + (Age (years) ÷ 10 × 0.9)</strong></blockquote>
</li>
 	<li><strong>Large body type</strong>:
<blockquote><strong>Ideal weight (kg) = Height (cm) – 100 + (Age (years) ÷ 10 × 0.9 × 1.1)</strong></blockquote>
</li>
 	<li><strong>Slender-gracile body type</strong>:
<blockquote><strong>Ideal weight (kg) = Height (cm) – 100 + (Age (years) ÷ 10 × 0.9 × 0.9)</strong></blockquote>
</li>
</ul>
Example: A person measuring 170 cm, aged 30 years, and with a &#8220;gracile&#8221; body type would have an ideal weight of 72.4 kg.								</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-0ef2717 e-flex e-con-boxed e-con e-parent" data-id="0ef2717" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-3fc47b2 elementor-widget elementor-widget-shortcode" data-id="3fc47b2" data-element_type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">    <div class="creff-chart-wrapper">
        <p>Ideal weight according to Creff formulas:</p>
        <ul id="creff_result">
            <li><strong>Normal morphology:</strong> <span id="creff_normal_result">Calculating...</span></li>
            <li><strong>Large morphology:</strong> <span id="creff_large_result">Calculating...</span></li>
            <li><strong>Gracile morphology:</strong> <span id="creff_gracile_result">Calculating...</span></li>
        </ul>
        <div class="chart-container">
            <canvas id="creff_chart"></canvas>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script>
        (function () {
            let creffChartInstance = null;

            function destroyCreffChart() {
                if (creffChartInstance) {
                    creffChartInstance.destroy();
                    creffChartInstance = null;
                }
            }

            function drawCreffChart() {
                if (!window.userData || !window.userData.taille || !window.userData.age) {
                    document.getElementById('creff_normal_result').textContent = 'No data available';
                    document.getElementById('creff_large_result').textContent = 'No data available';
                    document.getElementById('creff_gracile_result').textContent = 'No data available';
                    destroyCreffChart();
                    return;
                }

                const canvas = document.getElementById('creff_chart');
                const ctx = canvas.getContext('2d');

                const heightInCm = window.userData.taille; // Height in cm
                const age = window.userData.age; // Age in years

                const creffNormal = heightInCm - 100 + (age / 10) * 0.9; // Normal morphology
                const creffLarge = creffNormal * 1.1; // Large morphology
                const creffGracile = creffNormal * 0.9; // Gracile morphology

                document.getElementById('creff_normal_result').textContent = `${creffNormal.toFixed(2)} kg`;
                document.getElementById('creff_large_result').textContent = `${creffLarge.toFixed(2)} kg`;
                document.getElementById('creff_gracile_result').textContent = `${creffGracile.toFixed(2)} kg`;

                const heights = [150, 160, 170, 180, 190]; // Heights in cm
                const normalWeights = heights.map(h => h - 100 + (age / 10) * 0.9);
                const largeWeights = normalWeights.map(w => w * 1.1);
                const gracileWeights = normalWeights.map(w => w * 0.9);

                destroyCreffChart();

                creffChartInstance = new Chart(ctx, {
                    type: 'line',
                    data: {
                        labels: heights,
                        datasets: [
                            {
                                label: `Normal morphology (Age: ${age} years)`,
                                data: normalWeights,
                                borderColor: 'rgba(75, 192, 192, 1)',
                                borderWidth: 2,
                                fill: false
                            },
                            {
                                label: `Large morphology (Age: ${age} years)`,
                                data: largeWeights,
                                borderColor: 'rgba(255, 165, 0, 1)',
                                borderWidth: 2,
                                fill: false
                            },
                            {
                                label: `Gracile morphology (Age: ${age} years)`,
                                data: gracileWeights,
                                borderColor: 'rgba(54, 162, 235, 1)',
                                borderWidth: 2,
                                fill: false
                            },
                            {
                                label: 'Ideal weight - Normal',
                                data: [{ x: heightInCm, y: creffNormal }],
                                borderColor: 'rgba(75, 192, 192, 1)',
                                backgroundColor: 'rgba(75, 192, 192, 1)',
                                pointRadius: 6,
                                pointHoverRadius: 8,
                                showLine: false
                            },
                            {
                                label: 'Ideal weight - Large',
                                data: [{ x: heightInCm, y: creffLarge }],
                                borderColor: 'rgba(255, 165, 0, 1)',
                                backgroundColor: 'rgba(255, 165, 0, 1)',
                                pointRadius: 6,
                                pointHoverRadius: 8,
                                showLine: false
                            },
                            {
                                label: 'Ideal weight - Gracile',
                                data: [{ x: heightInCm, y: creffGracile }],
                                borderColor: 'rgba(54, 162, 235, 1)',
                                backgroundColor: 'rgba(54, 162, 235, 1)',
                                pointRadius: 6,
                                pointHoverRadius: 8,
                                showLine: false
                            }
                        ]
                    },
                    options: {
                        responsive: true,
                        maintainAspectRatio: false,
                        plugins: {
                            title: {
                                display: true,
                                text: `Creff Formulas: Ideal Weight`,
                                font: {
                                    size: 16
                                }
                            },
                            legend: {
                                labels: {
                                    font: {
                                        size: 12
                                    }
                                }
                            }
                        },
                        scales: {
                            x: {
                                type: 'linear',
                                title: {
                                    display: true,
                                    text: 'Height (cm)'
                                },
                                ticks: {
                                    callback: function (value) {
                                        return `${value} cm`;
                                    }
                                }
                            },
                            y: {
                                title: {
                                    display: true,
                                    text: 'Ideal Weight (kg)'
                                },
                                beginAtZero: false
                            }
                        }
                    }
                });
            }

            document.addEventListener('DOMContentLoaded', function () {
                if (window.userData && window.userData.taille && window.userData.age) {
                    drawCreffChart();
                } else {
                    document.getElementById('creff_normal_result').textContent = 'No data available';
                    document.getElementById('creff_large_result').textContent = 'No data available';
                    document.getElementById('creff_gracile_result').textContent = 'No data available';
                }
            });

            window.addEventListener('userDataUpdated', function () {
                drawCreffChart();
            });
        })();
    </script>

    <style>
        .creff-chart-wrapper {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
            padding: 10px;
        }

        ul#creff_result {
            list-style-type: none;
            padding: 0;
            margin: 0 0 20px;
        }

        ul#creff_result li {
            margin-bottom: 10px;
        }

        .chart-container {
            position: relative;
            width: 100%;
            height: 400px;
        }

        @media (max-width: 600px) {
            .chart-container {
                height: 500px; /* Augmente la hauteur sur les petits écrans */
            }

            .creff-chart-wrapper {
                padding: 5px;
            }

            ul#creff_result li {
                font-size: 14px;
            }
        }
    </style>
    </div>
						</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-4982350 e-flex e-con-boxed e-con e-parent" data-id="4982350" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-6405bea elementor-widget elementor-widget-heading" data-id="6405bea" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>Towards body mass index (BMI)<br></h2>				</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-5ff1264 e-flex e-con-boxed e-con e-parent" data-id="5ff1264" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-4b67b0a elementor-widget elementor-widget-text-editor" data-id="4b67b0a" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									Mathematical formulas, useful but imperfect, have been supplanted by the Body Mass Index (BMI), which today assesses corpulence by comparing height and weight to standardized thresholds, rather than calculating an “ideal” weight.

BMI calculation:
<blockquote><strong>BMI (kg/m²) = Weight (kg) ÷ Height² (m²)</strong></blockquote>
BMI is a standardized measurement recognized by the World Health Organization (WHO) for determining health risks. It is calculated by dividing weight (in kilograms) by the square of height (in meters). The WHO has defined categories for interpreting BMI: a BMI below 18.5 is considered underweight, between 18.5 and 24.9 normal weight, between 25 and 29.9 overweight, and 30 or more obese (with varying degrees). These thresholds raise awareness of health risks, such as malnutrition for low BMIs, or chronic diseases like diabetes and cardiovascular disease for high BMIs.								</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-c60a353 e-flex e-con-boxed e-con e-parent" data-id="c60a353" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-f0febba elementor-widget elementor-widget-shortcode" data-id="f0febba" data-element_type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">    <div id="heatmapContainer" style="position: relative; max-width: 800px; height: 500px; margin: 0 auto;">
        <canvas id="heatmapChart" style="max-width: 100%; height: 100%;"></canvas>
    </div>
    <div id="imcLegend" style="margin-top: 20px; text-align: center;">
        <strong>Legend:</strong>
        <div style="display: flex; justify-content: center; gap: 15px; margin-top: 10px; flex-wrap: wrap;">
            <div style="display: flex; align-items: center;">
                <div style="background-color: rgba(135, 206, 250, 0.7); width: 20px; height: 20px; display: inline-block;"></div>&nbsp;Underweight
            </div>
            <div style="display: flex; align-items: center;">
                <div style="background-color: rgba(144, 238, 144, 0.7); width: 20px; height: 20px; display: inline-block;"></div>&nbsp;Normal weight
            </div>
            <div style="display: flex; align-items: center;">
                <div style="background-color: rgba(255, 223, 0, 0.7); width: 20px; height: 20px; display: inline-block;"></div>&nbsp;Overweight
            </div>
            <div style="display: flex; align-items: center;">
                <div style="background-color: rgba(255, 165, 0, 0.7); width: 20px; height: 20px; display: inline-block;"></div>&nbsp;Mild obesity
            </div>
            <div style="display: flex; align-items: center;">
                <div style="background-color: rgba(255, 99, 71, 0.7); width: 20px; height: 20px; display: inline-block;"></div>&nbsp;Moderate obesity
            </div>
            <div style="display: flex; align-items: center;">
                <div style="background-color: rgba(139, 0, 0, 0.7); width: 20px; height: 20px; display: inline-block;"></div>&nbsp;Severe obesity
            </div>
            <div style="display: flex; align-items: center;">
                <div style="background-color: rgba(0, 0, 0, 1); width: 20px; height: 20px; display: inline-block; border: 1px solid white;"></div>&nbsp;Selected point
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/chartjs-chart-matrix"></script>
    <script>
        (function () {
            let heatmapChartInstance;

            const addPointLabelPlugin = {
                id: 'addPointLabel',
                afterDatasetsDraw(chart) {
                    const { ctx, scales: { x, y } } = chart;
                    const dataset = chart.data.datasets[0];
                    const selectedPoint = dataset.data.find(point => point.v === 7);

                    if (selectedPoint) {
                        const xPos = x.getPixelForValue(selectedPoint.x);
                        const yPos = y.getPixelForValue(selectedPoint.y);

                        const height = (120 + selectedPoint.x).toFixed(0); // Height in cm
                        const mass = (30 + (170 - selectedPoint.y)).toFixed(0); // Mass in kg
                        const bmi = (mass / Math.pow(height / 100, 2)).toFixed(1); // Calculated BMI

                        ctx.save();
                        ctx.font = '12px Arial';
                        ctx.fillStyle = 'black';
                        ctx.textAlign = 'left';
                        ctx.textBaseline = 'middle';

                        const labelLines = [
                            `Height: ${height} cm`,
                            `Mass: ${mass} kg`,
                            `BMI: ${bmi}`,
                        ];

                        labelLines.forEach((line, index) => {
                            ctx.fillText(line, xPos + 10, yPos + index * 15);
                        });

                        ctx.restore();
                    }
                },
            };

            const renderHeatmap = (height, mass) => {
                const container = document.getElementById('heatmapContainer');
                const canvas = document.getElementById('heatmapChart');
                const ctx = canvas.getContext('2d');

                if (heatmapChartInstance) {
                    heatmapChartInstance.destroy();
                }

                canvas.width = container.clientWidth;
                canvas.height = container.clientHeight;

                const heights = Array.from({ length: 101 }, (_, i) => 120 + i);
                const masses = Array.from({ length: 171 }, (_, i) => 30 + i);

                const pointX = Math.round(height - 120);
                const pointY = 170 - Math.round(mass - 30);

                const data = [];
                masses.forEach((m, i) => {
                    heights.forEach((t, j) => {
                        const bmi = m / Math.pow(t / 100, 2);
                        const isPointSelected = j === pointX && (170 - i) === pointY;

                        let value;
                        if (isPointSelected) {
                            value = 7;
                        } else if (bmi < 18.5) {
                            value = 1;
                        } else if (bmi >= 18.5 && bmi < 25) {
                            value = 2;
                        } else if (bmi >= 25 && bmi < 30) {
                            value = 3;
                        } else if (bmi >= 30 && bmi < 35) {
                            value = 4;
                        } else if (bmi >= 35 && bmi < 40) {
                            value = 5;
                        } else {
                            value = 6;
                        }

                        data.push({
                            x: j,
                            y: 170 - i,
                            v: value,
                        });
                    });
                });

                const colors = [
                    "rgba(135, 206, 250, 0.7)", // Underweight
                    "rgba(144, 238, 144, 0.7)", // Normal weight
                    "rgba(255, 223, 0, 0.7)",   // Overweight
                    "rgba(255, 165, 0, 0.7)",   // Mild obesity
                    "rgba(255, 99, 71, 0.7)",   // Moderate obesity
                    "rgba(139, 0, 0, 0.7)",     // Severe obesity
                    "rgba(0, 0, 0, 1)",         // Selected point
                ];

                heatmapChartInstance = new Chart(ctx, {
                    type: 'matrix',
                    data: {
                        datasets: [
                            {
                                label: 'BMI Heatmap',
                                data: data,
                                backgroundColor(ctx) {
                                    const value = ctx.dataset.data[ctx.dataIndex].v;
                                    return colors[value - 1];
                                },
                                width: ({ chart, dataIndex }) => {
                                    const value = data[dataIndex].v;
                                    return value === 7
                                        ? (chart.scales.x.width / heights.length) * 1.5
                                        : chart.scales.x.width / heights.length;
                                },
                                height: ({ chart, dataIndex }) => {
                                    const value = data[dataIndex].v;
                                    return value === 7
                                        ? (chart.scales.y.height / masses.length) * 3
                                        : chart.scales.y.height / masses.length;
                                },
                            }
                        ]
                    },
                    options: {
                        responsive: true,
                        maintainAspectRatio: false,
                        scales: {
                            x: {
                                type: 'linear',
                                position: 'bottom',
                                title: { display: true, text: "Height (cm)" },
                                ticks: {
                                    callback: (value) => (120 + value).toFixed(0),
                                }
                            },
                            y: {
                                type: 'linear',
                                position: 'left',
                                title: { display: true, text: "Mass (kg)" },
                                ticks: {
                                    callback: (value) => (30 + (170 - value)).toFixed(0),
                                }
                            }
                        },
                        plugins: {
                            tooltip: {
                                callbacks: {
                                    label: function (context) {
                                        const xIndex = context.raw.x;
                                        const yIndex = 170 - context.raw.y;
                                        const t = (120 + xIndex).toFixed(0);
                                        const m = (30 + yIndex).toFixed(0);
                                        const bmi = (m / Math.pow(t / 100, 2)).toFixed(1);
                                        return `Height: ${t} cm, Mass: ${m} kg, BMI: ${bmi}`;
                                    }
                                }
                            },
                            legend: { display: false }
                        }
                    },
                    plugins: [addPointLabelPlugin],
                });
            };

            window.addEventListener('userDataUpdated', (event) => {
                const { taille, poids } = event.detail;
                renderHeatmap(taille, poids);
            });

            document.addEventListener('DOMContentLoaded', function () {
                if (window.userData) {
                    renderHeatmap(window.userData.taille, window.userData.poids);
                } else {
                    console.warn("User data is not available.");
                }
            });
        })();
    </script>
    <style>
        #heatmapContainer {
            position: relative;
            max-width: 800px;
            height: 500px;
            margin: 0 auto;
        }

        canvas#heatmapChart {
            display: block;
            width: 100%;
            height: 100%;
        }

        @media (max-width: 600px) {
            #heatmapContainer {
                height: 400px;
            }
        }
    </style>
    </div>
						</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-90abbc8 e-flex e-con-boxed e-con e-parent" data-id="90abbc8" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-705c49b elementor-widget elementor-widget-text-editor" data-id="705c49b" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									The BMI limits set by the WHO are highly standardized, which means that individual variability cannot be taken into account. For example, the natural tendency of BMI to be higher in men than in women is not incorporated into these thresholds. What&#8217;s more, these categories do not always reflect a precise correlation with survival rates, as demonstrated by the curve of mortality risk as a function of BMI, derived from recent data from the vast American NHANES cohort [2]. Furthermore, mortality is generally higher for low BMIs, often associated with insufficient muscle mass, and for high BMIs, where excessive accumulation of fat mass can increase the risk of cardiovascular and metabolic diseases.

This analysis underlines the limitations of the standardized approach, and highlights the importance of contextualizing BMI interpretations according to individual characteristics and study populations.								</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-c16a5f8 e-flex e-con-boxed e-con e-parent" data-id="c16a5f8" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-794aadb elementor-widget elementor-widget-shortcode" data-id="794aadb" data-element_type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">    <div class="mortality-chart-wrapper">
        <!-- Display BMI and HR -->
        <div id="bmiDisplay" class="bmi-display">
            <!-- Calculated BMI and HR will be displayed here -->
        </div>
        <!-- Container for the chart -->
        <div class="chart-container">
            <canvas id="mortalityChart"></canvas>
        </div>
    </div>

    <script>
        document.addEventListener("DOMContentLoaded", function () {
            let mortalityChart = null;

            const bmiCategories = [
                "<18.5", "18.5-19.9", "20.0-22.4", "22.5-24.9", "25.0-27.4",
                "27.5-29.9", "30.0-34.9", "35.0-39.9", "≥40.0"
            ];

            const bmiValues = [
                18.5, 20.0, 22.5, 25.0, 27.5, 30.0, 32.5, 35.0, 40.0
            ];

            const allSubjects = [2.20, 1.45, 1.21, 1.00, 0.95, 0.93, 1.05, 1.26, 1.70];

            function updateChart(userData) {
                if (!userData) {
                    console.error("User data not available.");
                    document.getElementById('bmiDisplay').innerText = "Error: User data not available.";
                    return;
                }

                const { taille, poids } = userData;

                if (!taille || !poids) {
                    console.error("Incomplete user data.");
                    document.getElementById('bmiDisplay').innerText = "Error: Incomplete user data.";
                    return;
                }

                // Calculate user's BMI
                const userBMI = (poids / Math.pow(taille / 100, 2)).toFixed(1);

                // Find the closest BMI category
                let closestIndex = 0;
                let minDiff = Infinity;
                bmiValues.forEach((val, i) => {
                    const diff = Math.abs(val - userBMI);
                    if (diff < minDiff) {
                        minDiff = diff;
                        closestIndex = i;
                    }
                });

                const userHazardRatio = allSubjects[closestIndex] || 1;

                // Display BMI and HR above the chart
                const bmiDisplay = document.getElementById('bmiDisplay');
                bmiDisplay.innerText = `Your BMI: ${userBMI}, Hazard Ratio: ${userHazardRatio}`;

                // Prepare the chart data
                const userDataArray = new Array(bmiValues.length).fill(null);
                userDataArray[closestIndex] = userHazardRatio;

                // Update or create the chart
                const ctx = document.getElementById('mortalityChart').getContext('2d');
                if (mortalityChart) {
                    // Update existing chart
                    mortalityChart.data.datasets[1].data = userDataArray;
                    mortalityChart.update();
                } else {
                    // Create new chart
                    mortalityChart = new Chart(ctx, {
                        type: 'line',
                        data: {
                            labels: bmiValues,
                            datasets: [
                                {
                                    label: "All Subjects",
                                    data: allSubjects,
                                    borderColor: "rgba(0, 0, 255, 1)",
                                    borderWidth: 2,
                                    pointRadius: 5,
                                    fill: false,
                                },
                                {
                                    label: "Your BMI",
                                    data: userDataArray,
                                    borderColor: "rgba(255, 255, 0, 1)",
                                    borderWidth: 2,
                                    pointRadius: 12,
                                    fill: false,
                                    pointBackgroundColor: "rgba(255, 255, 0, 1)",
                                },
                            ],
                        },
                        options: {
                            responsive: true,
                            maintainAspectRatio: false, // Allows chart to adjust height on mobile
                            plugins: {
                                legend: {
                                    display: true,
                                    position: 'top', // Place legend at the top
                                },
                                tooltip: {
                                    callbacks: {
                                        label: function (context) {
                                            const bmiCategory = bmiCategories[context.dataIndex];
                                            const hr = context.raw;
                                            return `BMI: ${bmiCategory}, HR: ${hr}`;
                                        }
                                    }
                                },
                            },
                            scales: {
                                x: {
                                    title: {
                                        display: true,
                                        text: "BMI Category",
                                    },
                                    ticks: {
                                        callback: function (value, index) {
                                            return window.innerWidth < 600 && index % 2 !== 0
                                                ? ""
                                                : bmiCategories[index];
                                        },
                                        maxRotation: window.innerWidth < 600 ? 45 : 0,
                                        minRotation: window.innerWidth < 600 ? 45 : 0,
                                    },
                                },
                                y: {
                                    title: {
                                        display: true,
                                        text: "All-Cause Mortality Hazard Ratio",
                                    },
                                    min: 0.5,
                                    max: 3.0,
                                    ticks: {
                                        stepSize: 0.5,
                                    },
                                },
                            },
                        },
                    });
                }
            }

            // Update chart when userData changes
            window.addEventListener('userDataUpdated', function (event) {
                const userData = event.detail || {
                    taille: 170, // Default height for testing
                    poids: 70,   // Default weight for testing
                };
                updateChart(userData);
            });

            // Initialize with current window.userData if available
            if (window.userData) {
                updateChart(window.userData);
            }
        });
    </script>

    <style>
        .mortality-chart-wrapper {
            max-width: 800px;
            margin: 0 auto;
            padding: 10px;
        }

        .bmi-display {
            text-align: center;
            font-size: 16px;
            margin-bottom: 10px;
            font-weight: bold;
        }

        .chart-container {
            position: relative;
            height: 400px;
            width: 100%;
        }

        @media (max-width: 600px) {
            .bmi-display {
                font-size: 14px;
            }

            .chart-container {
                height: 300px;
            }

            .mortality-chart-wrapper {
                padding: 5px;
            }
        }
    </style>
    </div>
						</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-a70c6a0 e-flex e-con-boxed e-con e-parent" data-id="a70c6a0" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-5a4281f elementor-widget elementor-widget-text-editor" data-id="5a4281f" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									In this way, the risk of death can be further personalized by taking into account gender, age and BMI.								</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-d4e875e e-flex e-con-boxed e-con e-parent" data-id="d4e875e" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-93d4459 elementor-widget elementor-widget-shortcode" data-id="93d4459" data-element_type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">    <div class="mortality-chart-wrapper">
        <!-- Display BMI, HR, and Category -->
        <div id="bmiDisplayCombined" class="bmi-display">
            <!-- Calculated BMI, HR, and Category will be displayed here -->
        </div>
        <div id="categoryDisplayCombined" class="category-display">
            <!-- Category (e.g., Female <65 years) will be displayed here -->
        </div>
        <!-- Container for the chart -->
        <div class="chart-container">
            <canvas id="mortalityChartCombined"></canvas>
        </div>
    </div>

    <script>
        document.addEventListener("DOMContentLoaded", function () {
            let mortalityChartCombined = null;

            const dataCombined = {
                womenUnder65: [2.21, 1.30, 1.09, 1.00, 0.95, 1.10, 1.22, 1.59, 2.87],
                women65Plus: [1.63, 1.34, 1.11, 1.00, 0.98, 0.96, 1.07, 1.42, 1.60],
                menUnder65: [1.77, 1.60, 1.33, 1.00, 0.98, 0.93, 1.04, 1.43, 2.32],
                men65Plus: [1.81, 1.27, 1.12, 1.00, 0.94, 0.94, 1.01, 1.19, 1.71],
            };

            const bmiCategoriesCombined = [
                "<18.5", "18.5-19.9", "20.0-22.4", "22.5-24.9", "25.0-27.4",
                "27.5-29.9", "30.0-34.9", "35.0-39.9", "≥40.0"
            ];

            const bmiValuesCombined = [
                18.5, 20.0, 22.5, 25.0, 27.5, 30.0, 32.5, 35.0, 40.0
            ];

            function updateChartCombined(userData) {
                if (!userData) {
                    console.error("Missing user data.");
                    document.getElementById('bmiDisplayCombined').innerText = "Error: User data not available.";
                    document.getElementById('categoryDisplayCombined').innerText = "";
                    return;
                }

                const { sexe, taille, poids, age } = userData;

                if (!taille || !poids || !sexe || age === undefined) {
                    console.error("Incomplete user data.");
                    document.getElementById('bmiDisplayCombined').innerText = "Error: Incomplete user data.";
                    document.getElementById('categoryDisplayCombined').innerText = "";
                    return;
                }

                const userBMI = (poids / Math.pow(taille / 100, 2)).toFixed(1);

                let selectedData = [];
                let category = "";
                if (sexe === "F" && age < 65) {
                    selectedData = dataCombined.womenUnder65;
                    category = "Female <65 years";
                } else if (sexe === "F" && age >= 65) {
                    selectedData = dataCombined.women65Plus;
                    category = "Female ≥65 years";
                } else if (sexe === "H" && age < 65) {
                    selectedData = dataCombined.menUnder65;
                    category = "Male <65 years";
                } else if (sexe === "H" && age >= 65) {
                    selectedData = dataCombined.men65Plus;
                    category = "Male ≥65 years";
                } else {
                    console.error("Unable to determine the group.");
                    document.getElementById('bmiDisplayCombined').innerText = "Error: Group not determined.";
                    document.getElementById('categoryDisplayCombined').innerText = "";
                    return;
                }

                let closestIndex = 0;
                let minDiff = Infinity;
                bmiValuesCombined.forEach((val, i) => {
                    const diff = Math.abs(val - userBMI);
                    if (diff < minDiff) {
                        minDiff = diff;
                        closestIndex = i;
                    }
                });

                const userHazardRatio = selectedData[closestIndex] || 1;

                // Display calculated information
                const bmiDisplayCombined = document.getElementById('bmiDisplayCombined');
                bmiDisplayCombined.innerText = `Your BMI: ${userBMI}, Hazard Ratio: ${userHazardRatio}`;

                // Display category
                const categoryDisplayCombined = document.getElementById('categoryDisplayCombined');
                categoryDisplayCombined.innerText = `Category: ${category}`;

                const userDataArray = new Array(bmiValuesCombined.length).fill(null);
                userDataArray[closestIndex] = userHazardRatio;

                const ctx = document.getElementById('mortalityChartCombined').getContext('2d');
                if (mortalityChartCombined) {
                    mortalityChartCombined.data.datasets[0].data = selectedData;
                    mortalityChartCombined.data.datasets[1].data = userDataArray;
                    mortalityChartCombined.update();
                } else {
                    mortalityChartCombined = new Chart(ctx, {
                        type: 'line',
                        data: {
                            labels: bmiValuesCombined,
                            datasets: [
                                {
                                    label: "All Subjects",
                                    data: selectedData,
                                    borderColor: "rgba(0, 0, 255, 1)",
                                    borderWidth: 2,
                                    pointRadius: 5,
                                    fill: false,
                                },
                                {
                                    label: "Your BMI",
                                    data: userDataArray,
                                    borderColor: "rgba(255, 255, 0, 1)",
                                    borderWidth: 2,
                                    pointRadius: 12,
                                    fill: false,
                                    pointBackgroundColor: "rgba(255, 255, 0, 1)",
                                },
                            ],
                        },
                        options: {
                            responsive: true,
                            maintainAspectRatio: false,
                            plugins: {
                                legend: {
                                    display: true,
                                    position: 'top',
                                },
                                tooltip: {
                                    callbacks: {
                                        label: function (context) {
                                            const bmiCategory = bmiCategoriesCombined[context.dataIndex];
                                            const hr = context.raw;
                                            return `BMI: ${bmiCategory}, HR: ${hr}`;
                                        }
                                    }
                                },
                            },
                            scales: {
                                x: {
                                    title: {
                                        display: true,
                                        text: "BMI Category",
                                    },
                                    ticks: {
                                        callback: function (value, index) {
                                            return window.innerWidth < 600 && index % 2 !== 0
                                                ? ""
                                                : bmiCategoriesCombined[index];
                                        },
                                        maxRotation: window.innerWidth < 600 ? 45 : 0,
                                        minRotation: window.innerWidth < 600 ? 45 : 0,
                                    },
                                },
                                y: {
                                    title: {
                                        display: true,
                                        text: "All-Cause Mortality Hazard Ratio",
                                    },
                                    min: 0.5,
                                    max: 3.0,
                                    ticks: {
                                        stepSize: 0.5,
                                    },
                                },
                            },
                        },
                    });
                }
            }

            // Update the chart when user data is modified
            window.addEventListener('userDataUpdated', function (event) {
                const userData = event.detail || {
                    sexe: "F",
                    taille: 160,
                    poids: 60,
                    age: 30,
                }; // Default data for testing
                updateChartCombined(userData);
            });

            // Initialize with current window.userData if available
            if (window.userData) {
                updateChartCombined(window.userData);
            }
        });
    </script>

    <style>
        .mortality-chart-wrapper {
            max-width: 800px;
            margin: 0 auto;
            padding: 10px;
        }

        .bmi-display, .category-display {
            text-align: center;
            font-size: 16px;
            margin-bottom: 10px;
        }

        .chart-container {
            position: relative;
            height: 400px;
            width: 100%;
        }

        @media (max-width: 600px) {
            .bmi-display, .category-display {
                font-size: 14px;
            }

            .chart-container {
                height: 300px;
            }

            .mortality-chart-wrapper {
                padding: 5px;
            }
        }
    </style>
    </div>
						</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-811cb2b e-flex e-con-boxed e-con e-parent" data-id="811cb2b" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-051d2da elementor-widget elementor-widget-text-editor" data-id="051d2da" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									However, while BMI is an indicator of corpulence, it does not distinguish between muscle mass and fat mass. So, for athletes or very muscular people, BMI may not be a reliable indicator of health risk.								</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-05ca7bd e-flex e-con-boxed e-con e-parent" data-id="05ca7bd" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-d43d7e5 elementor-widget elementor-widget-heading" data-id="d43d7e5" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>Summary<br></h2>				</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-402c5dd e-flex e-con-boxed e-con e-parent" data-id="402c5dd" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-3f54199 elementor-widget elementor-widget-text-editor" data-id="3f54199" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<div>You&#8217;ve seen various formulas for estimating ideal weight, all of which take more or less information as input to the calculation.</div>

<div>This approach has now been replaced by BMI. According to the WHO, a normal BMI is between 20 and 25 kg/m2.</div>

<div>This definition has the advantage of simplicity, but if you want the “ideal weight” to reflect a mortality risk, larger intervals can be used, particularly according to recent cohorts.</div>								</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-177beca e-flex e-con-boxed e-con e-parent" data-id="177beca" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-4058288 elementor-widget elementor-widget-heading" data-id="4058288" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">References
</h2>				</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-570aa7f e-flex e-con-boxed e-con e-parent" data-id="570aa7f" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-d740c1f elementor-widget elementor-widget-text-editor" data-id="d740c1f" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<div>1. <a href="https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0090183">Sedeaud A, Marc A, Marck A, Dor F, Schipman J, Dorsey M, et al. BMI, a Performance Parameter for Speed Improvement. PLOS ONE. 25 févr 2014;9(2):e90183.</a></div><div>2. <a href="https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0287218">Visaria A, Setoguchi S. Body mass index and all-cause mortality in a 21st century U.S. population: A National Health Interview Survey analysis. PLOS ONE. 5 juill 2023;18(7):e0287218.</a></div>								</div>
				</div>
					</div>
				</div>
				</div>
		<p>The post <a href="https://drpierredecazes.com/en/2025/01/09/choose-your-ideal-weight/">Choose your ideal weight</a> appeared first on <a href="https://drpierredecazes.com/en/accueil-english/">Dr Pierre Decazes</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://drpierredecazes.com/en/2025/01/09/choose-your-ideal-weight/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is sarcopenia?</title>
		<link>https://drpierredecazes.com/en/2024/12/16/what-is-sarcopenia/</link>
					<comments>https://drpierredecazes.com/en/2024/12/16/what-is-sarcopenia/#respond</comments>
		
		<dc:creator><![CDATA[drdecazes]]></dc:creator>
		<pubDate>Mon, 16 Dec 2024 17:51:23 +0000</pubDate>
				<category><![CDATA[Body composition]]></category>
		<guid isPermaLink="false">https://drpierredecazes.com/?p=254</guid>

					<description><![CDATA[<p>Sarcopenia: an under-recognized disease despite its major clinical implications Sarcopenia, characterized by age-related loss of muscle mass and reduced muscle strength and function, is associated with increased risk of falls, disability and mortality. However, this condition remains poorly recognized in clinical practice, and no pharmacological treatment is currently available. Despite the existence of an ICD10-CM [&#8230;]</p>
<p>The post <a href="https://drpierredecazes.com/en/2024/12/16/what-is-sarcopenia/">What is sarcopenia?</a> appeared first on <a href="https://drpierredecazes.com/en/accueil-english/">Dr Pierre Decazes</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Sarcopenia: an under-recognized disease despite its major clinical implications</h2>
<p>Sarcopenia, characterized by age-related loss of muscle mass and reduced muscle strength and function, is associated with <strong>increased risk of falls, disability and mortality.</strong></p>
<p>However, this condition remains poorly recognized in clinical practice, and no pharmacological treatment is currently available. Despite the existence of an ICD10-CM code, sarcopenia <strong>lacks a comprehensive and universally accepted definition</strong>, limiting its systematic use in medical practice.</p>
<p>A key challenge for better management of this pathology remains the establishment of a standardized, operational definition.</p>
<h2>Development of a global definition</h2>
<p>Until now, there has been no universal definition of sarcopenia. The Global Sarcopenia Leadership Initiative (GLIS) was created to solve this problem. 107 professionals from 29 countries took part in a Delphi study to establish a consensus, with publication of their initial findings in 2024 [1].</p>
<h2>Key points of the definition</h2>
<ul>
<li><strong>Essential components</strong>: Sarcopenia is characterized by a combination of reduced muscle mass, reduced muscle strength and, potentially, reduced specific muscle strength (strength standardized by muscle size).</li>
<li><strong>Health consequences</strong>: This disease is associated with impaired physical performance, mobility limitations, increased risk of falls, fractures, hospitalizations, nursing home admissions, and reduced quality of life.</li>
<li><strong>Reversible disease</strong>: Sarcopenia is considered a treatable condition, paving the way for nutritional, physical and pharmacological interventions.</li>
</ul>
<p>													<img loading="lazy" width="433" height="978"  alt="Figure of general aspects and outcome of sarcopenia" srcset="https://drpierredecazes.com/wp-content/uploads/2024/12/Figure_Sarcopenia2.png 433w, https://drpierredecazes.com/wp-content/uploads/2024/12/Figure_Sarcopenia2-133x300.png 133w" sizes="(max-width: 433px) 100vw, 433px" / class="lws-optimize-lazyload" data-src="https://drpierredecazes.com/wp-content/uploads/2024/12/Figure_Sarcopenia2.png">													</p>
<h2>Challenges and next steps:</h2>
<p>The transition to a practical definition of sarcopenia is underway. This involves determining how to effectively measure muscle mass and strength, as well as specific muscle force, while taking into account measurement validity, clinical feasibility and normative data across populations.</p>
<p>Multidisciplinary working groups will collaborate to define harmonized criteria, comparable to advances made in the fields of osteopenia and osteoporosis.</p>
<p>A global pratical definition will enable :</p>
<ul>
<li>Harmonization of research on an international scale.</li>
<li>Identification of sufferers for better screening.</li>
<li>Development and evaluation of targeted therapeutic interventions.</li>
</ul>
<h2>Conclusion:</h2>
<p>This new conceptual definition marks a major advance in the understanding and management of sarcopenia. By bringing together experts from diverse backgrounds, GLIS is paving the way for essential clinical and scientific innovations to meet this major challenge of aging.</p>
<h2>Référence</h2>
<p><a href="https://pmc.ncbi.nlm.nih.gov/articles/PMC10960072/">1: Kirk B, Cawthon PM, Arai H, Ávila-Funes JA, Barazzoni R, Bhasin S, Binder EF, Bruyere O, Cederholm T, Chen LK, Cooper C, Duque G, Fielding RA, Guralnik J, Kiel DP, Landi F, Reginster JY, Sayer AA, Visser M, von Haehling S, Woo J, Cruz- Jentoft AJ; Global Leadership Initiative in Sarcopenia (GLIS) group. The Conceptual Definition of Sarcopenia: Delphi Consensus from the Global Leadership Initiative in Sarcopenia (GLIS). Age Ageing. 2024 Mar 1;53(3):afae052. doi: 10.1093/ageing/afae052.</a></p>


<p></p>
<p>The post <a href="https://drpierredecazes.com/en/2024/12/16/what-is-sarcopenia/">What is sarcopenia?</a> appeared first on <a href="https://drpierredecazes.com/en/accueil-english/">Dr Pierre Decazes</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://drpierredecazes.com/en/2024/12/16/what-is-sarcopenia/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>(When) will you become sarcopenic?</title>
		<link>https://drpierredecazes.com/en/2024/12/10/when-will-you-become-sarcopenic/</link>
					<comments>https://drpierredecazes.com/en/2024/12/10/when-will-you-become-sarcopenic/#respond</comments>
		
		<dc:creator><![CDATA[drdecazes]]></dc:creator>
		<pubDate>Tue, 10 Dec 2024 14:30:05 +0000</pubDate>
				<category><![CDATA[Body composition]]></category>
		<guid isPermaLink="false">https://drpierredecazes.com//?p=184</guid>

					<description><![CDATA[<p>Sarcopenia: What is it and how can it be prevented? Sarcopenia is a little-known term that affects a significant proportion of the aging population. It refers to a progressive loss of muscle mass, strength and function, generally associated with advancing age. This condition has consequences for mobility, autonomy and overall quality of life. In particular, [&#8230;]</p>
<p>The post <a href="https://drpierredecazes.com/en/2024/12/10/when-will-you-become-sarcopenic/">(When) will you become sarcopenic?</a> appeared first on <a href="https://drpierredecazes.com/en/accueil-english/">Dr Pierre Decazes</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="184" class="elementor elementor-184">
				<div class="elementor-element elementor-element-c6e7347 e-flex e-con-boxed e-con e-parent" data-id="c6e7347" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-57b3f33 elementor-widget elementor-widget-shortcode" data-id="57b3f33" data-element_type="widget" data-widget_type="shortcode.default">
				<div class="elementor-widget-container">
							<div class="elementor-shortcode">    <!-- Formulaire de saisie des données utilisateur -->
    <form id="calculateurMasseMusculaire">
        <!-- Sélection du sexe -->
		<div class="form-group">
            <label for="sex">Sex :</label>
            <select id="sex" name="sex" required>
                <option value="">Select</option>
                <option value="homme">Man</option>
                <option value="femme">Woman</option>
            </select>
        </div>

		 <!-- Conteneur Flex pour Poids, Taille et Âge -->
        <div class="flex-container">
            <!-- Champ pour saisir le poids en kilogrammes -->
            <div class="form-group">
                <label for="weight">Weight (kg) :</label>
                <input type="number" id="weight" name="weight" min="0" required>
            </div>

            <!-- Champ pour saisir la taille en centimètres -->
            <div class="form-group">
                <label for="height">Height (cm) :</label>
                <input type="number" id="height" name="height" min="0" required>
            </div>

            <!-- Champ pour saisir l'âge en années -->
            <div class="form-group">
                <label for="age">Age (years) :</label>
                <input type="number" id="age" name="age" min="0" max="120" required>
            </div>
        </div>
        <!-- Fin du conteneur Flex -->
		
        <!-- Sélecteur pour choisir la race/ethnicité -->
        <div class="form-group">
            <label for="race">Ethnicity :</label>
            <select id="race" name="race" required>
                <option value="">Select</option>
                <option value="0">Non-hispanic white</option>
                <option value="1">Non-hispanic black</option>
            </select>
        </div>
		
		<!-- Sélection décroissance musculaire à partir de 40 ans -->
		<div class="form-group">
            <label for="decay">Estimated annual muscle decline from age 40 onwards:</label>
            <select id="decay" name="decay" required>
                <option value="">Select</option>
                <option value="0">0%/year No muscle wasting (hats off to you!)</option>
                <option value="0.5">0.5%/year Low muscle wasting</option>
                <option value="1">1%/year Average muscle wasting</option>
                <option value="1.5">1.5%/year Severe muscle wasting</option>
            </select>
        </div>
		
		<!-- Champ pour saisir la circonférence de la taille en centimètres (optionnel) -->
        <div class="form-group">
            <label for="waist">Waist circumference (cm) (more precise but optional) :</label>
            <input type="number" id="waist" name="waist" min="0">
        </div>
		

        <button type="submit">Calculate</button>
    </form>
    <!-- Fin du formulaire -->

	<!-- Message pour afficher les résultats -->
	<div id="smMessage" style="display:none; margin-top:20px; font-size: 18px; font-weight: bold;"></div>

    <!-- Canvas pour afficher le graphique -->
    <canvas id="graphMasse" width="800" height="400" style="display:none; margin-top:20px;"></canvas>

    <!-- Script JavaScript pour gérer le formulaire et générer le graphique -->
    <script>
        document.getElementById('calculateurMasseMusculaire').addEventListener('submit', function(e) {
            e.preventDefault();

            // Récupérer les valeurs saisies
            var sex = document.getElementById('sex').value;
            var W = parseFloat(document.getElementById('weight').value);
            var H = parseFloat(document.getElementById('height').value);
            var A = parseFloat(document.getElementById('age').value);
            var WC_input = document.getElementById('waist').value;
            var WC = WC_input ? parseFloat(WC_input) : null; // WC peut être null
            var R = parseInt(document.getElementById('race').value);
			var D = parseFloat(document.getElementById('decay').value) / 100; // Convertir en fraction

            // Validation des entrées
            if(sex === "") {
                alert("Please select your gender.");
                return;
            }

            if(isNaN(W) || isNaN(H) || isNaN(A) || isNaN(R) || isNaN(D)) {
                alert("Please fill in all mandatory fields with valid values.");
                return;
            }

            if(A < 18 || A > 120) {
                alert("Please enter an age between 18 and 120.");
                return;
            }
			
			if(H < 150 || H > 250) {
                alert("Please enter a height between 150 and 250 cm.");
                return;
            }
			
			if(W < 30 || W > 250) {
                alert("Please enter a weight between 30 and 250 kg.");
                return;
            }

            // Déterminer la formule à utiliser en fonction du sexe et de la présence de WC
            var SM;
            var labels = [];
            var dataSM = [];
			var ageSarco = null;

            // Définir la plage d'âge pour la projection
            var startAge = A;
            var maxAge = 120; // Vous pouvez ajuster cette valeur si nécessaire
			
			//Var seuils
			var varSeuilHomme = 11*(H/100)^2;
			var varSeuilFemme = 9*(H/100)^2
			
            for(var i = startAge; i <= maxAge; i++) {
                var SM_i;
				var SM_sup40;

                if(sex === 'homme') {
                    if(WC !== null) {
                        // Formule pour les hommes avec WC
                        SM_i = 0.47 * W + 0.03 * H + 0.012 * i - 0.001 * Math.pow(i, 2) - 0.29 * WC + 1.6 * R + 13.5;
						if(startAge < 40) {
							SM_sup40 =  0.47 * W + 0.03 * H + 0.012 * 40 - 0.001 * Math.pow(40, 2) - 0.29 * WC + 1.6 * R + 13.5;
						} else {
							SM_sup40 =  0.47 * W + 0.03 * H + 0.012 * 40 - 0.001 * Math.pow(startAge, 2) - 0.29 * WC + 1.6 * R + 13.5;
						}
                    } else {
                        // Formule pour les hommes sans WC
                        SM_i = 0.24 * W + 0.15 * H - 0.071 * i - 0.0004 * Math.pow(i, 2) + 2.7 * R - 14.2;
						if(startAge < 40) {
							SM_sup40 = 0.24 * W + 0.15 * H - 0.071 * 40 - 0.0004 * Math.pow(40, 2) + 2.7 * R - 14.2;
						} else {
							SM_sup40 = 0.24 * W + 0.15 * H - 0.071 * 40 - 0.0004 * Math.pow(startAge, 2) + 2.7 * R - 14.2;
						}	
                    }
                } else if(sex === 'femme') {
                    if(WC !== null) {
                        // Formule pour les femmes avec WC
                        SM_i = 0.25 * W + 0.09 * H - 0.111 * i + 0.0005 * Math.pow(i, 2) - 0.06 * WC + 2.0 * R - 4.5;
						if(startAge < 40) {
							SM_sup40 = 0.25 * W + 0.09 * H - 0.111 * 40 + 0.0005 * Math.pow(40, 2) - 0.06 * WC + 2.0 * R - 4.5;
						} else {
							SM_sup40 = 0.25 * W + 0.09 * H - 0.111 * 40 + 0.0005 * Math.pow(startAge, 2) - 0.06 * WC + 2.0 * R - 4.5;
						}
                    } else {
                        // Formule pour les femmes sans WC
                        SM_i = 0.20 * W + 0.11 * H - 0.113 * i + 0.0004 * Math.pow(i, 2) + 2.0 * R - 9.8;
						if(startAge < 40) {
							SM_sup40 = 0.20 * W + 0.11 * H - 0.113 * 40 + 0.0004 * Math.pow(40, 2) + 2.0 * R - 9.8;
						} else {
							SM_sup40 = 0.20 * W + 0.11 * H - 0.113 * 40 + 0.0004 * Math.pow(startAge, 2) + 2.0 * R - 9.8;
						}				
                    }
                }
				
                // Appliquer une décroissance à partir de l'âge de 40 ans
                if(i >= 40) {
                    var yearsAfter40 = i - 40;
                    SM_i = SM_sup40 * Math.pow(1-D, yearsAfter40);
                }
				  	 
				if (sex === 'homme' && SM_i < varSeuilHomme && ageSarco === null) {
					//alert(SM_i)
					//alert(i)
					//alert(varSeuilHomme)
    				ageSarco = i;
				} else if (sex === 'femme' && SM_i < varSeuilFemme && ageSarco === null) {
				    ageSarco = i;
				}
				
                labels.push(i);
                dataSM.push(parseFloat(SM_i.toFixed(2)));
            }

            // Calcul de SM actuel (à l'âge saisi)
            // SM actuel est la première valeur de la projection
            SM = dataSM[0];

            // Afficher le graphique
            var ctx = document.getElementById('graphMasse').getContext('2d');
            document.getElementById('graphMasse').style.display = 'block';

            // Détruire le graphique précédent s'il existe pour éviter les doublons
            if(window.chartMasseInstance) {
                window.chartMasseInstance.destroy();
            }

            // Définir la valeur de la ligne rouge constante
            var constanteRed;
            if(sex === 'homme') {
                //constanteRed = 20;
				constanteRed = 11*(H/100)^2;
            } else if(sex === 'femme') {
                //constanteRed = 15;
                constanteRed = 9*(H/100)^2;
            }

            // Initialiser le graphique Chart.js
            window.chartMasseInstance = new Chart(ctx, {
                type: 'line',
                data: {
                    labels: labels,
                    datasets: [
                        {
                            label: 'Projected Skeletal Muscle Mass (SM) (kg)',
                            data: dataSM,
                            borderColor: 'rgba(75, 192, 192, 1)',
                            backgroundColor: 'rgba(75, 192, 192, 0.2)',
                            fill: true,
                            tension: 0.1,
							pointRadius : 0,
                            yAxisID: 'y'
                        },
                        {
                            label: 'Low muscle mass threshold',
                            data: Array(labels.length).fill(constanteRed),
                            borderColor: 'rgba(255, 0, 0, 1)',
                            borderWidth: 2, // Epaisseur de ligne
                            borderDash: [10,10], // Style de tirets
                            fill: false, //Pas de remplissage
							pointRadius : 0,// Désactive les points
                            yAxisID: 'y'
                        }
                    ]
                },
                options: {
                    responsive: true,
                    scales: {
                        x: {
                            title: {
                                display: true,
                                text: 'Age (years)'
                            },
                            ticks: {
                                stepSize: 5
                            }
                        },
                        y: {
                            title: {
                                display: true,
                                text: 'Skeletal muscle mass (kg)'
                            },
                            beginAtZero: true
                        }
                    },
                    plugins: {
                        tooltip: {
                            callbacks: {
                                label: function(context) {
                                    if(context.dataset.label === 'Projected Skeletal Muscle Mass (SM) (kg)') {
                                        return 'SM: ' + context.parsed.y + ' kg';
                                    } else if(context.dataset.label === 'SM threshold') {
                                        return 'SM threshold: ' + context.parsed.y + ' kg';
                                    }
                                }
                            }
                        }
                    }
                }
            });
			
			 // Afficher le message au lieu des alertes
            var messageDiv = document.getElementById('smMessage');
            if (ageSarco === null) {
                messageDiv.innerHTML = "Your current Skeletal Muscle Mass (SM) is " + 
                    SM + 
                    " kg, and there's no risk of low muscle mass according to the data provided today.";
            } else {
                messageDiv.innerHTML = "Your current Skeletal Muscle Mass (SM) is " + 
                    SM + 
                    " kg. You risk low muscle mass at the age of " + ageSarco + " years according to the data provided today.";
            }
            messageDiv.style.display = 'block';
        });
    </script>

    <!-- Styles CSS pour le formulaire et le graphique -->
    <style>
        /* Conteneur Flex pour aligner Poids, Taille et Âge sur une même ligne */
        .flex-container {
            display: flex;
            justify-content: space-between;
            gap: 20px; /* Espacement entre les groupes */
            flex-wrap: wrap; /* Permet aux éléments de passer à la ligne suivante si l'espace est insuffisant */
			margin-bottom: 10px; /* Ajoute de l'espace entre chaque champ */
        }

        /* Groupe de formulaire individuel */
        .form-group {
            display: flex;
            flex-direction: column;
            flex: 1; /* Permet aux groupes de s'étendre également */
            min-width: 150px; /* Largeur minimale pour éviter que les champs ne deviennent trop petits */
			margin-bottom: 10px; /* Ajoute de l'espace entre chaque champ */
        }

        /* Ajuster la taille des champs de saisie */
        .form-group input,
        .form-group select {
            padding: 10px;
            margin-top: 5px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px; /* Augmenter la taille de la police pour une meilleure lisibilité */
            width: 100%; /* Prend toute la largeur disponible dans le groupe */
            box-sizing: border-box; /* Inclut le padding et la bordure dans la largeur totale */
        }

        /* Styliser les labels */
        .form-group label {
            font-weight: bold;
            margin-bottom: 5px;
        }

        /* Styliser le bouton de soumission */
        #calculateurMasseMusculaire button {
            margin-top: 20px;
            padding: 12px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 18px; /* Augmenter la taille de la police pour le bouton */
        }

        #calculateurMasseMusculaire button:hover {
            background-color: #45a049;
        }
		
		#weight, #height, #age {
    		padding: 14px;
    		font-size: 18px;
   		 	max-width: 100px;
		}
		
		#waist {
    		padding: 14px;
    		font-size: 18px;
   		 	max-width: 100px;
		}

        /* Styliser le canvas du graphique */
        #graphMasse {
            max-width: 800px;
            margin: 40px auto;
        }

        /* Réagir aux petits écrans */
        @media (max-width: 600px) {
            .flex-container {
                flex-direction: column;
                gap: 10px;
            }

            #calculateurMasseMusculaire button {
                font-size: 16px;
                padding: 10px;
            }
        }
		
		/* Styliser le message des résultats */
        #smMessage {
            text-align: center;
            color: #333;
        }
    </style>
    </div>
						</div>
				</div>
				<div class="elementor-element elementor-element-dc9cf9a elementor-widget elementor-widget-heading" data-id="dc9cf9a" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Sarcopenia: What is it and how can it be prevented?</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-e7a324d elementor-widget elementor-widget-text-editor" data-id="e7a324d" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Sarcopenia is a little-known term that affects a significant proportion of the aging population. It refers to a progressive loss of muscle mass, strength and function, generally associated with advancing age. This condition has consequences for mobility, autonomy and overall quality of life. In particular, it increases the risk of falls and fractures.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-4e22f5b elementor-widget elementor-widget-heading" data-id="4e22f5b" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Causes of sarcopenia</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-69db625 elementor-widget elementor-widget-text-editor" data-id="69db625" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Sarcopenia is not a fatality of aging, but the result of a combination of factors. Physical inactivity, insufficient protein in the diet, and hormonal changes (such as a drop in testosterone in men and estrogen in women) can be the main causes. As the body ages, it also becomes more difficult to repair and maintain muscle mass.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-e556275 elementor-widget elementor-widget-heading" data-id="e556275" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Are you at risk?</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-e652c29 elementor-widget elementor-widget-text-editor" data-id="e652c29" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The diagnosis of sarcopenia takes into account muscle mass and function. It is not, however, a sudden onset disease, but a progressive one linked to muscle loss. Loss of muscle mass occurs as early as middle age around 40 (∼1%/year) and, in the most severe cases, can reach ∼50% in the 8th or 9th decade of life [1]. Below you&#8217;ll find a calculator to estimate your muscle mass [2] and the potential age of onset of low muscle mass (11 kg/m2 for men and 9 kg/m2 for women) [3]</p>								</div>
				</div>
				<div class="elementor-element elementor-element-ae0b486 elementor-widget elementor-widget-heading" data-id="ae0b486" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">About calculations</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-147cada elementor-widget elementor-widget-text-editor" data-id="147cada" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>The calculator uses formulas developed in a study investigating the relationships between height, age, mass, waist circumference and muscle mass [2]. This study was based on a large database of 12,330 individuals from the National Health and Nutrition Survey (NHANES). Skeletal muscle mass was measured by dual-photon absorptiometry (DXA), and an MRI-derived predictive equation was used to calculate total muscle mass from lean limb mass (arms and legs). For low muscle mass thresholds, these were determined from a base of 1293 patients with muscle mass measurement by bioimpedancemetry (BIA) and comparison to handshake strength.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-a5dae2d elementor-widget elementor-widget-heading" data-id="a5dae2d" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">References</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-29ad1b3 elementor-widget elementor-widget-text-editor" data-id="29ad1b3" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<div><div class="csl-right-inline"><a href="https://pmc.ncbi.nlm.nih.gov/articles/PMC2804956/">1. Volpi E, Nazemi R, Fujita S. Muscle tissue changes with aging. Curr Opin Clin Nutr Metab Care. juill 2004;7(4):405‑10.</a></div><div> </div><p><a href="https://www.frontiersin.org/journals/endocrinology/articles/10.3389/fendo.2020.00031/full">2. Heymsfield SB, Stanley A, Pietrobelli A, Heo M. Simple Skeletal Muscle Mass Estimation Formulas: What We Can Learn From Them. Front Endocrinol, 2020</a></p><p><a href="https://pubmed.ncbi.nlm.nih.gov/30269625/">3. Bahat G, Tufan A, Kilic C, Aydın T, Akpinar TS, Kose M, et al. Cut-off points for height, weight and body mass index adjusted bioimpedance analysis measurements of muscle mass with use of different threshold definitions. The Aging Male. 4 déc 2020;23(5):382‑7</a>.</p></div>								</div>
				</div>
					</div>
				</div>
				</div>
		<p>The post <a href="https://drpierredecazes.com/en/2024/12/10/when-will-you-become-sarcopenic/">(When) will you become sarcopenic?</a> appeared first on <a href="https://drpierredecazes.com/en/accueil-english/">Dr Pierre Decazes</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://drpierredecazes.com/en/2024/12/10/when-will-you-become-sarcopenic/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Unexpected Side Effects of GLP-1 Analogues?</title>
		<link>https://drpierredecazes.com/en/2024/12/10/unexpected-side-effects-of-glp-1-analogues/</link>
					<comments>https://drpierredecazes.com/en/2024/12/10/unexpected-side-effects-of-glp-1-analogues/#respond</comments>
		
		<dc:creator><![CDATA[drdecazes]]></dc:creator>
		<pubDate>Tue, 10 Dec 2024 14:23:00 +0000</pubDate>
				<category><![CDATA[Body composition]]></category>
		<guid isPermaLink="false">https://drpierredecazes.com//?p=175</guid>

					<description><![CDATA[<p>Today, I was reflecting on GLP-1 agonist analogues (Glucagon-Like Peptide). Doesn’t ring a bell? Sure it does! It’s that new class of drugs (like semaglutide – Wegovy – Ozempic) that create a prolonged feeling of satiety. These medications help people eat less, leading to weight loss. Initially developed for diabetes management, these treatments are increasingly [&#8230;]</p>
<p>The post <a href="https://drpierredecazes.com/en/2024/12/10/unexpected-side-effects-of-glp-1-analogues/">Unexpected Side Effects of GLP-1 Analogues?</a> appeared first on <a href="https://drpierredecazes.com/en/accueil-english/">Dr Pierre Decazes</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="175" class="elementor elementor-175">
				<div class="elementor-element elementor-element-52c7446b e-flex e-con-boxed e-con e-parent" data-id="52c7446b" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-6f92042 elementor-widget elementor-widget-text-editor" data-id="6f92042" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><strong>Today, I was reflecting on GLP-1 agonist analogues (Glucagon-Like Peptide).</strong></p><p>Doesn’t ring a bell? Sure it does! It’s that new class of drugs (like semaglutide – Wegovy – Ozempic) that create a prolonged feeling of satiety. These medications help people eat less, leading to weight loss.</p><p>Initially developed for diabetes management, these treatments are increasingly being promoted as obesity therapies. More importantly, they show promise in preventing diseases linked to obesity.</p><p>One might think that humanity has finally found a solution to a problem that never existed in nature. Nutritional energy abundance, after all, is a &#8220;modern&#8221; invention. Over the course of evolution, our bodies never needed to develop defense mechanisms against energy storage in fat.</p><p>But here’s the thing: I’m not quick to believe in “miracle” drugs and prefer to dig into potential side effects.</p><p>One potential &#8220;side effect,&#8221; a kind of unexpected &#8220;double impact&#8221; effect (a long-term secondary effect), is the decrease in both the quantity and quality of muscle mass during weight loss induced by these treatments. In fact, people naturally lose about 0.8% of muscle mass per year (8% per decade) between the ages of 40 and 70. With these drugs, muscle loss (as indicated by the reduction in lean body mass) accounts for 25 to 39% of the total weight lost! [1]</p><p>While losing fat may have its benefits, no good comes from muscle wasting.</p><p>So, if obesity is the epidemic of the century, potentially curable with these treatments, sarcopenia (the decline in muscle quantity and quality, particularly in older adults) might well become the epidemic of the next century.</p><p>1. <a href="https://pubmed.ncbi.nlm.nih.gov/39265590/">Prado CM, Phillips SM, Gonzalez MC, Heymsfield SB. Muscle matters: the effects of medically induced weight loss on skeletal muscle. The Lancet Diabetes &amp; Endocrinology. nov 2024;12(11):785‑7.</a></p>								</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-7f745de e-flex e-con-boxed e-con e-parent" data-id="7f745de" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-7dd0099 elementor-widget elementor-widget-image" data-id="7dd0099" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" width="480" height="360"  class="attachment-large size-large wp-image-176 lws-optimize-lazyload" alt="Image de deux boxeurs se donnant des coups de poing simultanément" srcset="https://drpierredecazes.com/wp-content/uploads/2024/12/Double_Impact.png 480w, https://drpierredecazes.com/wp-content/uploads/2024/12/Double_Impact-300x225.png 300w" sizes="(max-width: 480px) 100vw, 480px" / data-src="https://drpierredecazes.com/wp-content/uploads/2024/12/Double_Impact.png">															</div>
				</div>
					</div>
				</div>
				</div>
		<p>The post <a href="https://drpierredecazes.com/en/2024/12/10/unexpected-side-effects-of-glp-1-analogues/">Unexpected Side Effects of GLP-1 Analogues?</a> appeared first on <a href="https://drpierredecazes.com/en/accueil-english/">Dr Pierre Decazes</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://drpierredecazes.com/en/2024/12/10/unexpected-side-effects-of-glp-1-analogues/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
