{"id":34189,"date":"2026-09-16T15:35:49","date_gmt":"2026-09-16T13:35:49","guid":{"rendered":"https:\/\/www.vigiclim.exelys.io\/?page_id=34189"},"modified":"2026-10-21T11:28:19","modified_gmt":"2026-10-21T09:28:19","slug":"vigilances-marines","status":"publish","type":"page","link":"https:\/\/www.vigiclim.exelys.io\/index.php\/vigilances-marines\/","title":{"rendered":"Vigilances marines"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container has-pattern-background has-mask-background nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1256.6px;margin-left: calc(-3% \/ 2 );margin-right: calc(-3% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-spacing-right-large:1.455%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.455%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.455%;--awb-spacing-left-medium:1.455%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.455%;--awb-spacing-left-small:1.455%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><iframe id=\"sodexam-marine-widget-iframe\" \n    class=\"darkify_ignore\"\n    allow=\"fullscreen\"\n    allowfullscreen=\"true\"\n    webkitallowfullscreen=\"true\"\n    mozallowfullscreen=\"true\"\n    style=\"width: 100%; min-height: 900px; border: none; overflow: hidden;\" \n    scrolling=\"no\" \n    srcdoc='\n<html class=\"ion-palette-dark\">\n<head>\n    <script>\n        window.WIDGET_ASSETS_BASE_URL = \"\/wp-content\/uploads\/widgets\/ivory-coast\/\";\n    <\/script>\n    <link rel=\"stylesheet\" href=\"\/wp-content\/uploads\/widgets\/ivory-coast\/styles.css\">\n    <style>\n        html, body {\n            margin: 0;\n            padding: 0;\n            width: 100%;\n            height: 100%;\n            display: flex;\n            align-items: flex-start;\n            justify-content: center;\n            background: transparent;\n        }\n        .container {\n            width: 100%;\n            margin: 0;\n            background: transparent;\n            height: auto; \n            box-sizing: border-box;\n        }\n\n        ivory-coast-marine {\n            display: block;\n            height: auto;\n            min-height: 600px;\n            width: 100%;\n            background-color: transparent;\n        }\n    <\/style>\n<\/head>\n<body>\n    <div class=\"container\" id=\"widget-container\">\n        <ivory-coast-marine \n              id=\"my-marine-widget\" \n              mode=\"widget\"\n              zone-id=\"-1\" \n              period=\"d+0\"\n              lang=\"fr\" \n              assets-base-url=\"\/wp-content\/uploads\/widgets\/ivory-coast\/\"\n              style=\"display: block;\">\n        <\/ivory-coast-marine>\n    <\/div>\n\n\t<img class=\"lazyload\" decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-orig-src=\"https:\/\/api.vigiclim.exelys.io\/storage\/products\/plage.png\" alt=\"meteo-marine-plage\">\n\n    <script>\n        try {\n            const urlParams = new URLSearchParams(window.parent.location.search);\n            \n            \/\/ R\u00e9cup\u00e9ration de la zone pass\u00e9e dans l URL (?idZone=... ou ?zone=...)\n            const idZoneFromUrl = urlParams.get(\"idZone\") || urlParams.get(\"zone\") || urlParams.get(\"idArea\");            \n            if (idZoneFromUrl) {\n                const widgetEl = document.getElementById(\"my-marine-widget\");\n                if (widgetEl) widgetEl.setAttribute(\"zone-id\", idZoneFromUrl);\n            }\n\n            \/\/ R\u00e9cup\u00e9ration du jour \/ p\u00e9riode (?period=d+1 ou ?day=demain)\n            const periodFromUrl = urlParams.get(\"period\") || urlParams.get(\"day\");\n            if (periodFromUrl) {\n                const targetPeriod = (periodFromUrl === \"d+1\" || periodFromUrl === \"demain\" || periodFromUrl === \"tomorrow\") ? \"d+1\" : \"d+0\";\n                const widgetEl = document.getElementById(\"my-marine-widget\");\n                if (widgetEl) widgetEl.setAttribute(\"period\", targetPeriod);\n            }\n        } catch(e) {}\n\n        try {\n            const container = document.getElementById(\"widget-container\") || document.body;\n            \n            if (container && window.ResizeObserver) {\n                let lastHeight = 0;\n                \n                const observer = new ResizeObserver((entries) => {\n                    for (let entry of entries) {\n                        const currentHeight = entry.target.offsetHeight || (entry.contentRect && entry.contentRect.height);\n                        \n                        if (currentHeight && Math.abs(currentHeight - lastHeight) > 5) {\n                            lastHeight = currentHeight;\n                            \n                            window.parent.postMessage({\n                                type: \"resize-sodexam-marine-iframe\",\n                                height: currentHeight - 40\n                            }, \"*\");\n                        }\n                    }\n                });\n                \n                observer.observe(container);\n            }\n        } catch(e) {\n            console.warn(\"ResizeObserver non support\u00e9 ou erreur\", e);\n        }\n\n        \/\/ R\u00e9ception du th\u00e8me\n        window.addEventListener(\"message\", function(event) {\n            if (event.data && event.data.type === \"set-theme\") {\n                const isDark = event.data.theme === \"dark\";\n                document.documentElement.classList.toggle(\"ion-palette-dark\", isDark);\n                document.body.classList.toggle(\"ion-palette-dark\", isDark);\n            }\n        });\n\n        \/\/ Demande imm\u00e9diate du th\u00e8me actuel au parent\n        window.parent.postMessage({ type: \"widget-ready\" }, \"*\");\n    <\/script>\n    <script src=\"\/wp-content\/uploads\/widgets\/ivory-coast\/ivory-coast-widgets.js\"><\/script>\n<\/body>\n<\/html>'><\/iframe>\n\n<script>\n    function syncMarineTheme() {\n        const isDark = document.documentElement.classList.contains(\"darkify_dark_mode_enabled\")\n            || document.body.classList.contains(\"darkify_dark_mode_enabled\");\n\n        const iframe = document.getElementById(\"sodexam-marine-widget-iframe\");\n        if (iframe && iframe.contentWindow) {\n            iframe.contentWindow.postMessage({\n                type: \"set-theme\",\n                theme: isDark ? \"dark\" : \"light\"\n            }, \"*\");\n        }\n    }\n\n    window.addEventListener(\"message\", function(event) {\n        if (!event.data) return;\n\n        const iframe = document.getElementById(\"sodexam-marine-widget-iframe\");\n\n        \/\/ 1. Redimensionnement dynamique (uniquement hors plein \u00e9cran)\n        if (event.data.type === \"resize-sodexam-marine-iframe\") {\n            if (iframe && !iframe.classList.contains(\"iframe-modal-fullscreen\")) {\n                iframe.style.height = (event.data.height + 25) + \"px\";\n            }\n        }\n\n        \/\/ 2. Basculement plein \u00e9cran (secours \/ calage)\n        if (event.data.type === \"bulletin-fullscreen-open\") {\n            if (iframe) {\n                iframe.classList.add(\"iframe-modal-fullscreen\");\n                document.body.style.overflow = \"hidden\"; \/\/ Bloque le scroll WordPress en arri\u00e8re-plan\n            }\n        }\n\n        \/\/ 3. Sortie du plein \u00e9cran\n        if (event.data.type === \"bulletin-fullscreen-close\") {\n            if (iframe) {\n                iframe.classList.remove(\"iframe-modal-fullscreen\");\n                document.body.style.overflow = \"\"; \/\/ Restaure le scroll WordPress\n            }\n        }\n\n        if (event.data.type === \"widget-ready\") {\n            syncMarineTheme();\n        }\n    });\n\n    const marineBodyObserver = new MutationObserver(syncMarineTheme);\n    marineBodyObserver.observe(document.documentElement, { attributes: true, attributeFilter: ['class'] });\n    marineBodyObserver.observe(document.body, { attributes: true, attributeFilter: ['class'] });\n\n    const marineIframe = document.getElementById(\"sodexam-marine-widget-iframe\");\n    if (marineIframe) {\n        marineIframe.addEventListener(\"load\", syncMarineTheme);\n    }\n<\/script>\n\n<style>\n    #sodexam-marine-widget-iframe {\n        width: 90vw;\n        transition: opacity 0.2s ease;\n    }\n\n    \/* Style Plein \u00c9cran (couvre tout le site WordPress, y compris le menu sticky Avada) *\/\n    #sodexam-marine-widget-iframe.iframe-modal-fullscreen {\n        position: fixed !important;\n        top: 0 !important;\n        left: 0 !important;\n        width: 100vw !important;\n        height: 100vh !important;\n        min-height: 100vh !important;\n        max-height: 100vh !important;\n        z-index: 99999999 !important;\n        margin: 0 !important;\n        padding: 0 !important;\n        background: #020617 !important;\n    }\n\n    html, body {\n        margin: 0;\n        padding: 0;   \n    }\n<\/style><div class=\"fusion-separator fusion-full-width-sep\" style=\"align-self: center;margin-left: auto;margin-right: auto;margin-top:15px;margin-bottom:15px;width:100%;\"><\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"100-width.php","meta":{"footnotes":""},"class_list":["post-34189","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/pages\/34189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/comments?post=34189"}],"version-history":[{"count":5,"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/pages\/34189\/revisions"}],"predecessor-version":[{"id":34225,"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/pages\/34189\/revisions\/34225"}],"wp:attachment":[{"href":"https:\/\/www.vigiclim.exelys.io\/index.php\/wp-json\/wp\/v2\/media?parent=34189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}