/* Charte Météo Pyrénées 2026 — appliquée à tout le site (mêmes polices et composants que l'appli) */
:root{
  --mpf:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --mph:'Space Grotesk','Inter',system-ui,sans-serif;
  --mp-blue:#1e73be;--mp-blue-d:#155a96;--mp-ink:#0B2238;--mp-muted:#4A5D70;--mp-bg:#F3F6F9;--mp-line:#D5DEE7;--mp-soft:#E8EEF3;
  --e-global-typography-primary-font-family:'Space Grotesk';
  --e-global-typography-secondary-font-family:'Space Grotesk';
  --e-global-typography-text-font-family:'Inter';
  --e-global-typography-accent-font-family:'Inter';
}
/* Polices : texte en Inter, titres en Space Grotesk (règles renforcées : l'ancienne charte du site est plus spécifique) */
html:root{--mpf:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;--mph:'Space Grotesk','Inter',system-ui,sans-serif}
html body *:not(i):not(svg):not(path):not(code):not(pre):not([class*="icon"]):not([class*="Icon"]):not([class*="symbol"]):not([class*="Symbol"]):not([class*="dashicon"]):not([class*="fa-"]):not(.fa):not(.fab):not(.fas):not(.far){font-family:var(--mpf) !important}
html body:not(#mpx) :is(h1,h2,h3,h4,.elementor-heading-title,.entry-title){font-family:var(--mph) !important;letter-spacing:-.015em}
html body:not(#mpx) .mpg-ft b,html body:not(#mpx) .mpcam-name,html body:not(#mpx) .mprt-row strong{font-family:var(--mpf) !important}
html body,body p,body li,body td,body th,body blockquote,body input,body select,body textarea,body button,
body .elementor-widget-text-editor,body .elementor-widget-text-editor *{font-family:var(--mpf) !important}
body h1,body h2,body h3,body h4,body .elementor-heading-title,body .entry-title,body .page-header .entry-title,
body .mps-hero h1,body .mpx-hero h1,body .mpg-ft b{font-family:var(--mph) !important;letter-spacing:-.015em}
body h1,body .entry-title{font-weight:700 !important}
body .mps-hero h1,body .mpx-hero h1{font-weight:700 !important;letter-spacing:-.025em}
/* Les icônes gardent leur police */
body .dashicons,body [class^="eicon"],body [class*=" eicon"],body .fa,body .fas,body .fab,body .far,body [class*="fa-"]{font-family:inherit}
body .dashicons{font-family:dashicons !important}

/* Contenu des pages intérieures (anciennes mises en page Elementor) */
body.page:not(.home) .elementor-widget-text-editor{font-size:16px;line-height:1.6;color:var(--mp-ink)}
body.page:not(.home) .elementor-widget-text-editor strong,body.page:not(.home) .elementor-widget-text-editor b{font-weight:600}
body.page:not(.home) .elementor-widget-text-editor a{color:var(--mp-blue);text-underline-offset:2px}
body.page:not(.home) .elementor-widget-heading .elementor-heading-title{color:var(--mp-ink)}
body.page:not(.home) .elementor-widget-image img{border-radius:14px}
body.page:not(.home) .elementor-widget-image img[src*="logo"],body.page:not(.home) .elementor-widget-image img[alt*="ogo"]{border-radius:0;max-height:110px;width:auto}
body.page:not(.home) .elementor iframe{max-width:100%;border-radius:14px;border:0}
body.page:not(.home) .elementor-widget-divider{opacity:.5}

/* Boutons et formulaires */
body .elementor-button,body .wp-block-button__link,body input[type=submit],body button[type=submit],body .button-primary{
  background:var(--mp-blue);border:0;border-radius:12px;color:#fff;font-weight:700;min-height:44px;padding:10px 18px;box-shadow:none}
body .elementor-button:hover,body .wp-block-button__link:hover,body input[type=submit]:hover,body button[type=submit]:hover{background:var(--mp-blue-d);color:#fff}
body input[type=text],body input[type=email],body input[type=password],body input[type=tel],body input[type=search],body input[type=url],body textarea,body select{
  border:1px solid var(--mp-line);border-radius:12px;min-height:44px;padding:10px 14px;background:#fff;color:var(--mp-ink);font-size:15px}
body input:focus,body textarea:focus,body select:focus{outline:2px solid var(--mp-blue);outline-offset:1px;border-color:var(--mp-blue)}
body .wpforms-container .wpforms-field-label{font-weight:600;color:var(--mp-ink)}

/* Tableaux */
body .elementor table,body .page-content table{border-collapse:collapse;width:100%;font-size:15px}
body .elementor table td,body .elementor table th,body .page-content table td,body .page-content table th{border:0;border-bottom:1px solid var(--mp-soft);padding:10px 8px;text-align:left}

/* 1.9.2 — pages de texte : colonne de lecture confortable */
body:is(.page-id-735,.page-id-3197,.page-id-65,.page-id-3,.page-id-7318,.page-id-28,.page-id-3215,.page-id-1322,.page-id-4845) .page-content .elementor-section>.elementor-container{max-width:760px!important}
body:is(.page-id-735,.page-id-3197,.page-id-65,.page-id-3,.page-id-7318,.page-id-28,.page-id-3215,.page-id-1322,.page-id-4845) .page-content .elementor-widget__width-initial{width:100%!important;max-width:100%!important}
body:is(.page-id-735,.page-id-3197,.page-id-65,.page-id-3,.page-id-7318,.page-id-28,.page-id-3215,.page-id-1322,.page-id-4845) .page-content .wp-block-themeisle-blocks-advanced-columns,
body:is(.page-id-735,.page-id-3197,.page-id-65,.page-id-3,.page-id-7318,.page-id-28,.page-id-3215,.page-id-1322,.page-id-4845) .page-content .wp-block-themeisle-blocks-advanced-column{width:100%!important;max-width:100%!important;flex-basis:100%!important}
body .page-content p{line-height:1.65}
body .page-content img{border-radius:12px}
/* formulaires : pas de fond de tableau, champs pleine largeur */
body .page-content table:has(form) td,body .page-content table:has(form){background:none!important;border:0!important;padding:0!important}
body .wpforms-container .wpforms-field input:not([type=checkbox]):not([type=radio]),body .wpforms-container .wpforms-field textarea,body .wpforms-container .wpforms-field select{max-width:100%!important;width:100%!important;border:1px solid #d5dde6!important;border-radius:10px!important;padding:10px 12px!important;background:#fff!important}
body .wpforms-container .wpforms-submit{background:#1e73be!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:12px 22px!important;font-weight:600!important}
/* Altiservice : titre en double */
body.page-id-2931 .page-content h2:first-of-type:is(.elementor-heading-title){display:none}
body:is(.page-id-735,.page-id-3197,.page-id-65,.page-id-3,.page-id-7318,.page-id-28,.page-id-3215,.page-id-1322) .page-content img{max-width:min(100%,420px)!important;height:auto!important;display:block;margin-left:auto;margin-right:auto}
