{"id":2,"date":"2025-09-22T17:57:31","date_gmt":"2025-09-22T15:57:31","guid":{"rendered":"http:\/\/vlvnuage.ddns.net\/?page_id=2"},"modified":"2026-09-24T12:02:51","modified_gmt":"2026-09-24T10:02:51","slug":"page-d-exemple","status":"publish","type":"page","link":"https:\/\/www.nuage.ooo\/","title":{"rendered":"homepage"},"content":{"rendered":"\r\n<style>\r\n\/* --- 1. REDUCTION DE L'ESPACE EN HAUT & D\u00c9BRIDAGE MARGES --- *\/\r\n.site,\r\n#page,\r\n#content,\r\n.site-content,\r\n.entry-content,\r\n.post-content,\r\n.type-page,\r\n.entry-content > * {\r\n  max-width: 1100px !important;\r\n  width: 100% !important;\r\n  margin-left: auto !important;\r\n  margin-right: auto !important;\r\n  box-sizing: border-box !important;\r\n  margin-top: 0 !important;\r\n  padding-top: 0 !important;\r\n}\r\n\r\n.entry-content, .post-content {\r\n  padding-left: 10px !important;\r\n  padding-right: 10px !important;\r\n}\r\n\r\n\/* --- 2. BARRE DE RECHERCHE --- *\/\r\n.ecosia-search-box {\r\n  text-align: center;\r\n  padding: 5px 0 15px 0;\r\n}\r\n.ecosia-search-box form {\r\n  display: flex;\r\n  justify-content: center;\r\n  gap: 8px;\r\n}\r\n.ecosia-search-box input {\r\n  padding: 8px 16px;\r\n  width: 100%;\r\n  max-width: 400px;\r\n  border-radius: 20px;\r\n  border: 1px solid #ddd;\r\n  outline: none;\r\n  font-size: 0.9em;\r\n}\r\n.ecosia-search-box button {\r\n  padding: 8px 18px;\r\n  background-color: #008069;\r\n  color: white;\r\n  border: none;\r\n  border-radius: 20px;\r\n  cursor: pointer;\r\n  font-weight: bold;\r\n  font-size: 0.9em;\r\n}\r\n\r\n\/* --- 3. BOUTONS DASHBOARD --- *\/\r\n.grid-boutons {\r\n  display: grid;\r\n  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));\r\n  gap: 12px;\r\n  margin: 5px 0 20px 0;\r\n  justify-items: center;\r\n  align-items: center;\r\n}\r\n.grid-boutons > div {\r\n  width: 100%;\r\n  text-align: center;\r\n}\r\n\r\n\/* --- 4. SECTIONS BLOCS-NOTES & LISTE DE COURSES --- *\/\r\n.dash-section {\r\n  background: #ffffff;\r\n  border: 1px solid #e0e0e0;\r\n  border-radius: 8px;\r\n  padding: 12px;\r\n  margin-bottom: 20px;\r\n  box-shadow: 0 1px 4px rgba(0,0,0,0.05);\r\n  font-family: system-ui, -apple-system, sans-serif;\r\n  color: #333;\r\n}\r\n.dash-section-title {\r\n  font-size: 0.9em;\r\n  font-weight: bold;\r\n  color: #008069;\r\n  margin-bottom: 10px;\r\n  border-bottom: 1px solid #f0f0f0;\r\n  padding-bottom: 4px;\r\n  display: flex;\r\n  justify-content: space-between;\r\n  align-items: center;\r\n}\r\n\r\n.grid-todo {\r\n  display: grid;\r\n  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));\r\n  gap: 12px;\r\n}\r\n.todo-card {\r\n  background: #f9f9f9;\r\n  border: 1px solid #eee;\r\n  border-radius: 6px;\r\n  padding: 8px 10px;\r\n  display: flex;\r\n  flex-direction: column;\r\n}\r\n.todo-card-header {\r\n  font-weight: bold;\r\n  font-size: 0.8em;\r\n  color: #444;\r\n  margin-bottom: 6px;\r\n  display: flex;\r\n  justify-content: space-between;\r\n  align-items: center;\r\n}\r\n.todo-input-group {\r\n  display: flex;\r\n  gap: 4px;\r\n  margin-bottom: 8px;\r\n}\r\n.todo-input-group input {\r\n  flex: 1;\r\n  padding: 4px 8px;\r\n  font-size: 0.78em;\r\n  border: 1px solid #ccc;\r\n  border-radius: 4px;\r\n  outline: none;\r\n}\r\n.btn-add {\r\n  background: #008069;\r\n  color: #fff;\r\n  border: none;\r\n  border-radius: 4px;\r\n  width: 26px;\r\n  height: 26px;\r\n  font-weight: bold;\r\n  font-size: 1em;\r\n  cursor: pointer;\r\n  display: flex;\r\n  align-items: center;\r\n  justify-content: center;\r\n}\r\n.btn-del {\r\n  background: #f44336;\r\n  color: #fff;\r\n  border: none;\r\n  border-radius: 3px;\r\n  width: 18px;\r\n  height: 18px;\r\n  font-size: 0.75em;\r\n  line-height: 1;\r\n  cursor: pointer;\r\n  display: flex;\r\n  align-items: center;\r\n  justify-content: center;\r\n  flex-shrink: 0;\r\n}\r\n.btn-clear-all {\r\n  background: #e0e0e0;\r\n  color: #555;\r\n  border: none;\r\n  border-radius: 3px;\r\n  padding: 2px 6px;\r\n  font-size: 0.7em;\r\n  cursor: pointer;\r\n  font-weight: bold;\r\n}\r\n.btn-clear-all:hover {\r\n  background: #f44336;\r\n  color: #fff;\r\n}\r\n\r\n.todo-list {\r\n  list-style: none;\r\n  padding: 0;\r\n  margin: 0;\r\n  font-size: 0.78em;\r\n  max-height: 180px;\r\n  overflow-y: auto;\r\n}\r\n.todo-list li {\r\n  display: flex;\r\n  justify-content: space-between;\r\n  align-items: center;\r\n  padding: 5px 6px;\r\n  word-break: break-word;\r\n}\r\n\/* Alternance des couleurs de lignes : Ligne impaire (blanche), Ligne paire (gris clair) *\/\r\n.todo-list li:nth-child(odd) {\r\n  background-color: #ffffff;\r\n}\r\n.todo-list li:nth-child(even) {\r\n  background-color: #f1f3f5;\r\n}\r\n\r\n.shopping-form {\r\n  display: flex;\r\n  flex-wrap: wrap;\r\n  gap: 8px;\r\n  margin-bottom: 12px;\r\n  align-items: center;\r\n}\r\n.shopping-form input[type=\"text\"] {\r\n  flex: 1;\r\n  min-width: 160px;\r\n  padding: 6px 10px;\r\n  font-size: 0.8em;\r\n  border: 1px solid #ccc;\r\n  border-radius: 4px;\r\n  outline: none;\r\n}\r\n.shopping-form select {\r\n  padding: 6px 8px;\r\n  font-size: 0.8em;\r\n  border: 1px solid #ccc;\r\n  border-radius: 4px;\r\n  background: #fff;\r\n  outline: none;\r\n}\r\n.grid-shopping-cols {\r\n  display: grid;\r\n  grid-template-columns: repeat(3, 1fr);\r\n  gap: 10px;\r\n}\r\n.shopping-col {\r\n  background: #f8f9fa;\r\n  border: 1px solid #e2e8f0;\r\n  border-radius: 6px;\r\n  padding: 8px;\r\n}\r\n.shopping-col-header {\r\n  font-size: 0.8em;\r\n  font-weight: bold;\r\n  text-align: center;\r\n  padding-bottom: 4px;\r\n  margin-bottom: 6px;\r\n  border-bottom: 2px solid #ddd;\r\n  display: flex;\r\n  justify-content: space-between;\r\n  align-items: center;\r\n}\r\n.col-header-title {\r\n  display: flex;\r\n  align-items: center;\r\n  gap: 5px;\r\n}\r\n.store-logo {\r\n  height: 18px;\r\n  max-width: 45px;\r\n  object-fit: contain;\r\n  vertical-align: middle;\r\n}\r\n.col-carrefour { border-color: #0055a5; color: #0055a5; }\r\n.col-leclerc { border-color: #e2001a; color: #e2001a; }\r\n.col-sans { border-color: #666; color: #555; }\r\n\r\n\/* --- 5. WIDGET OR (320PX) --- *\/\r\n.gold-widget {\r\n  background: #1e1e1e;\r\n  color: #fff;\r\n  padding: 8px 12px;\r\n  border-radius: 8px;\r\n  font-family: system-ui, -apple-system, sans-serif;\r\n  font-size: 0.78em;\r\n  width: 100%;\r\n  max-width: 320px !important;\r\n  margin: 0 auto 15px auto;\r\n  box-sizing: border-box;\r\n  box-shadow: 0 2px 5px rgba(0,0,0,0.12);\r\n}\r\n.gold-header {\r\n  display: flex;\r\n  justify-content: space-between;\r\n  border-bottom: 1px solid #333;\r\n  padding-bottom: 4px;\r\n  margin-bottom: 5px;\r\n}\r\n.gold-stats {\r\n  display: flex;\r\n  justify-content: space-between;\r\n  text-align: center;\r\n}\r\n.gold-stats div {\r\n  display: flex;\r\n  flex-direction: column;\r\n  font-size: 0.7em;\r\n  color: #aaa;\r\n}\r\n.gold-stats .val {\r\n  font-weight: bold;\r\n  font-size: 1em;\r\n  margin-top: 1px;\r\n}\r\n.up { color: #4caf50; }\r\n.down { color: #f44336; }\r\n\r\n\/* --- 6. WIDGET M\u00c9T\u00c9O (ULTRA COMPACT) --- *\/\r\n.wf-horizontal-container {\r\n  background: #ffffff;\r\n  border: 1px solid #e0e0e0;\r\n  border-radius: 8px;\r\n  padding: 8px 10px;\r\n  font-family: system-ui, -apple-system, sans-serif;\r\n  box-shadow: 0 1px 4px rgba(0,0,0,0.05);\r\n  color: #333;\r\n  width: 100%;\r\n  box-sizing: border-box;\r\n}\r\n.wf-header {\r\n  font-size: 0.8em;\r\n  color: #0073aa;\r\n  margin-bottom: 6px;\r\n  border-bottom: 1px solid #f0f0f0;\r\n  padding-bottom: 3px;\r\n}\r\n.wf-cards-wrapper {\r\n  display: flex;\r\n  flex-wrap: wrap;\r\n  gap: 5px;\r\n}\r\n.wf-card {\r\n  flex: 1 1 calc(14.28% - 5px);\r\n  min-width: 70px;\r\n  background: #f8f9fa;\r\n  border: 1px solid #eee;\r\n  border-radius: 5px;\r\n  padding: 4px 2px;\r\n  text-align: center;\r\n  display: flex;\r\n  flex-direction: column;\r\n  justify-content: space-between;\r\n  box-sizing: border-box;\r\n}\r\n.wf-card-day {\r\n  font-weight: bold;\r\n  font-size: 0.7em;\r\n  text-transform: capitalize;\r\n  color: #444;\r\n  border-bottom: 1px solid #e5e5e5;\r\n  padding-bottom: 2px;\r\n}\r\n.wf-card-icon {\r\n  font-size: 0.65em;\r\n  margin: 2px 0;\r\n  white-space: nowrap;\r\n}\r\n.wf-card-temps {\r\n  font-size: 0.72em;\r\n}\r\n.wf-temp-min { color: #0073aa; }\r\n.wf-temp-max { color: #d32f2f; font-weight: bold; }\r\n.wf-card-details {\r\n  font-size: 0.6em;\r\n  display: flex;\r\n  flex-direction: column;\r\n  gap: 1px;\r\n  margin-top: 2px;\r\n  border-top: 1px dashed #e0e0e0;\r\n  padding-top: 2px;\r\n}\r\n.wf-rain { color: #0288d1; }\r\n.wf-wind { color: #666; }\r\n.wf-loading { text-align: center; width: 100%; color: #888; padding: 6px; font-size: 0.75em; }\r\n\r\n\/* --- 7. ADAPTATION MOBILE --- *\/\r\n@media screen and (max-width: 600px) {\r\n  .grid-boutons {\r\n    grid-template-columns: repeat(2, 1fr) !important;\r\n    gap: 8px !important;\r\n  }\r\n  .grid-boutons a.maxbutton {\r\n    width: 100% !important;\r\n    box-sizing: border-box !important;\r\n  }\r\n  .grid-shopping-cols {\r\n    grid-template-columns: 1fr !important;\r\n  }\r\n  .wf-card {\r\n    flex: 1 1 calc(50% - 5px);\r\n  }\r\n}\r\n<\/style>\r\n\r\n<!-- BARRE DE RECHERCHE -->\r\n<div class=\"ecosia-search-box\">\r\n  <form action=\"https:\/\/www.ecosia.org\/search\" method=\"get\" target=\"_blank\">\r\n    <input type=\"text\" name=\"q\" placeholder=\"Rechercher...\">\r\n    <button type=\"submit\">OK<\/button>\r\n  <\/form>\r\n<\/div>\r\n\r\n<!-- BOUTONS DASHBOARD -->\r\n<div class=\"grid-boutons\">\r\n  <div><span class='mb-center maxbutton-9-center'><span class='maxbutton-9-container mb-container'><a class=\"maxbutton-9 maxbutton maxbutton-carte-gps\" href=\"http:\/\/82.67.171.36:8082\"><span class='mb-text'>Carte GPS<\/span><\/a><\/span><\/span><\/div>\r\n  <div><span class='mb-center maxbutton-3-center'><span class='maxbutton-3-container mb-container'><a class=\"maxbutton-3 maxbutton maxbutton-webmail\" href=\"http:\/\/webmail.nuage.ooo\"><span class='mb-text'>Webmail<\/span><\/a><\/span><\/span><\/div>\r\n  <div><span class='mb-center maxbutton-2-center'><span class='maxbutton-2-container mb-container'><a class=\"maxbutton-2 maxbutton maxbutton-fichiers\" href=\"http:\/\/www.nuage.ooo\/fichiers\/\"><span class='mb-text'>Fichiers<\/span><\/a><\/span><\/span><\/div>\r\n  <div><span class='mb-center maxbutton-4-center'><span class='maxbutton-4-container mb-container'><a class=\"maxbutton-4 maxbutton maxbutton-agenda-nicolas\" href=\"\/?page_id=76\"><span class='mb-text'>Agenda Nicolas<\/span><\/a><\/span><\/span><\/div>\r\n  <div><span class='mb-center maxbutton-5-center'><span class='maxbutton-5-container mb-container'><a class=\"maxbutton-5 maxbutton maxbutton-photos\" href=\"\/?page_id=112\"><span class='mb-text'>Photos<\/span><\/a><\/span><\/span><\/div>\r\n  <div><span class='mb-center maxbutton-6-center'><span class='maxbutton-6-container mb-container'><a class=\"maxbutton-6 maxbutton maxbutton-photos-vacances\" href=\"\/?page_id=88\"><span class='mb-text'>Photos vacances<\/span><\/a><\/span><\/span><\/div>\r\n  <div><span class='mb-center maxbutton-10-center'><span class='maxbutton-10-container mb-container'><a class=\"maxbutton-10 maxbutton maxbutton-cloud-nicolas\" href=\"https:\/\/www.nuage.ooo\/cloudfilesnicolas.php\"><span class='mb-text'>Cloud Nicolas<\/span><\/a><\/span><\/span><\/div>\r\n  <div><span class='mb-center maxbutton-11-center'><span class='maxbutton-11-container mb-container'><a class=\"maxbutton-11 maxbutton maxbutton-cloud-ana\" href=\"https:\/\/www.nuage.ooo\/cloudfilesana.php\"><span class='mb-text'>Cloud Ana<\/span><\/a><\/span><\/span><\/div>\r\n  <div><span class='mb-center maxbutton-12-center'><span class='maxbutton-12-container mb-container'><a class=\"maxbutton-12 maxbutton maxbutton-cloud-sophia\" href=\"https:\/\/www.nuage.ooo\/cloudfilessophia.php\"><span class='mb-text'>Cloud Sophia<\/span><\/a><\/span><\/span><\/div>\r\n  <div><span class='mb-center maxbutton-13-center'><span class='maxbutton-13-container mb-container'><a class=\"maxbutton-13 maxbutton maxbutton-cloud-louis\" href=\"https:\/\/www.nuage.ooo\/cloudfileslouis.php\"><span class='mb-text'>Cloud Louis<\/span><\/a><\/span><\/span><\/div>\r\n  <div><\/div>\r\n<\/div>\r\n\r\n<!-- SECTION BLOCS-NOTES \"NE PAS OUBLIER\" -->\r\n<div class=\"dash-section\">\r\n  <div class=\"dash-section-title\">\r\n    <span>\ud83d\udccc Pense-b\u00eate (max 15 par personne)<\/span>\r\n  <\/div>\r\n  <div class=\"grid-todo\">\r\n    \r\n    <!-- Nicolas -->\r\n    <div class=\"todo-card\">\r\n      <div class=\"todo-card-header\">\r\n        <span>Nicolas<\/span>\r\n        <div style=\"display:flex; align-items:center; gap:6px;\">\r\n          <span id=\"count-nicolas\" style=\"font-size:0.8em; color:#888;\">0\/15<\/span>\r\n          <button class=\"btn-clear-all\" onclick=\"clearTodos('nicolas')\" title=\"Tout supprimer\">Tout effacer<\/button>\r\n        <\/div>\r\n      <\/div>\r\n      <div class=\"todo-input-group\">\r\n        <input type=\"text\" id=\"input-nicolas\" placeholder=\"Ajouter une note...\" onkeypress=\"if(event.key==='Enter') addTodo('nicolas')\">\r\n        <button class=\"btn-add\" onclick=\"addTodo('nicolas')\">+<\/button>\r\n      <\/div>\r\n      <ul class=\"todo-list\" id=\"list-nicolas\"><\/ul>\r\n    <\/div>\r\n\r\n    <!-- Ana -->\r\n    <div class=\"todo-card\">\r\n      <div class=\"todo-card-header\">\r\n        <span>Ana<\/span>\r\n        <div style=\"display:flex; align-items:center; gap:6px;\">\r\n          <span id=\"count-ana\" style=\"font-size:0.8em; color:#888;\">0\/15<\/span>\r\n          <button class=\"btn-clear-all\" onclick=\"clearTodos('ana')\" title=\"Tout supprimer\">Tout effacer<\/button>\r\n        <\/div>\r\n      <\/div>\r\n      <div class=\"todo-input-group\">\r\n        <input type=\"text\" id=\"input-ana\" placeholder=\"Ajouter une note...\" onkeypress=\"if(event.key==='Enter') addTodo('ana')\">\r\n        <button class=\"btn-add\" onclick=\"addTodo('ana')\">+<\/button>\r\n      <\/div>\r\n      <ul class=\"todo-list\" id=\"list-ana\"><\/ul>\r\n    <\/div>\r\n\r\n    <!-- Sophia -->\r\n    <div class=\"todo-card\">\r\n      <div class=\"todo-card-header\">\r\n        <span>Sophia<\/span>\r\n        <div style=\"display:flex; align-items:center; gap:6px;\">\r\n          <span id=\"count-sophia\" style=\"font-size:0.8em; color:#888;\">0\/15<\/span>\r\n          <button class=\"btn-clear-all\" onclick=\"clearTodos('sophia')\" title=\"Tout supprimer\">Tout effacer<\/button>\r\n        <\/div>\r\n      <\/div>\r\n      <div class=\"todo-input-group\">\r\n        <input type=\"text\" id=\"input-sophia\" placeholder=\"Ajouter une note...\" onkeypress=\"if(event.key==='Enter') addTodo('sophia')\">\r\n        <button class=\"btn-add\" onclick=\"addTodo('sophia')\">+<\/button>\r\n      <\/div>\r\n      <ul class=\"todo-list\" id=\"list-sophia\"><\/ul>\r\n    <\/div>\r\n\r\n    <!-- Louis -->\r\n    <div class=\"todo-card\">\r\n      <div class=\"todo-card-header\">\r\n        <span>Louis<\/span>\r\n        <div style=\"display:flex; align-items:center; gap:6px;\">\r\n          <span id=\"count-louis\" style=\"font-size:0.8em; color:#888;\">0\/15<\/span>\r\n          <button class=\"btn-clear-all\" onclick=\"clearTodos('louis')\" title=\"Tout supprimer\">Tout effacer<\/button>\r\n        <\/div>\r\n      <\/div>\r\n      <div class=\"todo-input-group\">\r\n        <input type=\"text\" id=\"input-louis\" placeholder=\"Ajouter une note...\" onkeypress=\"if(event.key==='Enter') addTodo('louis')\">\r\n        <button class=\"btn-add\" onclick=\"addTodo('louis')\">+<\/button>\r\n      <\/div>\r\n      <ul class=\"todo-list\" id=\"list-louis\"><\/ul>\r\n    <\/div>\r\n\r\n  <\/div>\r\n<\/div>\r\n\r\n<!-- SECTION LISTE DE COURSES -->\r\n<div class=\"dash-section\">\r\n  <div class=\"dash-section-title\">\r\n    <span>\ud83d\uded2 Liste de courses<\/span>\r\n    <span id=\"count-shopping\" style=\"font-size:0.85em; color:#888;\">0\/50 articles<\/span>\r\n  <\/div>\r\n\r\n  <div class=\"shopping-form\">\r\n    <input type=\"text\" id=\"input-shop-item\" placeholder=\"Article \u00e0 acheter...\" onkeypress=\"if(event.key==='Enter') addShopItem()\">\r\n    <select id=\"select-shop-store\">\r\n      <option value=\"\" selected>Magasin (aucun par d\u00e9faut)<\/option>\r\n      <option value=\"carrefour\">Carrefour<\/option>\r\n      <option value=\"leclerc\">Leclerc<\/option>\r\n    <\/select>\r\n    <button class=\"btn-add\" onclick=\"addShopItem()\">+<\/button>\r\n  <\/div>\r\n\r\n  <div class=\"grid-shopping-cols\">\r\n    <div class=\"shopping-col\">\r\n      <div class=\"shopping-col-header col-carrefour\">\r\n        <div class=\"col-header-title\">\r\n          <img decoding=\"async\" src=\"\/fichiers\/todolists\/carrefour.png\" alt=\"Carrefour\" class=\"store-logo\"> Carrefour\r\n        <\/div>\r\n        <button class=\"btn-clear-all\" onclick=\"clearShopByStore('carrefour')\">Vider<\/button>\r\n      <\/div>\r\n      <ul class=\"todo-list\" id=\"shop-list-carrefour\"><\/ul>\r\n    <\/div>\r\n    \r\n    <div class=\"shopping-col\">\r\n      <div class=\"shopping-col-header col-leclerc\">\r\n        <div class=\"col-header-title\">\r\n          <img decoding=\"async\" src=\"\/fichiers\/todolists\/leclerc.jpg\" alt=\"Leclerc\" class=\"store-logo\"> Leclerc\r\n        <\/div>\r\n        <button class=\"btn-clear-all\" onclick=\"clearShopByStore('leclerc')\">Vider<\/button>\r\n      <\/div>\r\n      <ul class=\"todo-list\" id=\"shop-list-leclerc\"><\/ul>\r\n    <\/div>\r\n    \r\n    <div class=\"shopping-col\">\r\n      <div class=\"shopping-col-header col-sans\">\r\n        <div class=\"col-header-title\">Sans enseigne<\/div>\r\n        <button class=\"btn-clear-all\" onclick=\"clearShopByStore('')\">Vider<\/button>\r\n      <\/div>\r\n      <ul class=\"todo-list\" id=\"shop-list-sans\"><\/ul>\r\n    <\/div>\r\n  <\/div>\r\n<\/div>\r\n\r\n<!-- WIDGET OR -->\r\n<div class=\"gold-widget\">\r\n  <div class=\"gold-header\">\r\n    <strong>\ud83d\udcb0 Or (XAU\/EUR)<\/strong>\r\n    <span id=\"gold-price\">Chargement&#8230;<\/span>\r\n  <\/div>\r\n  <div class=\"gold-stats\">\r\n    <div><span>24h<\/span><span id=\"gold-24h\" class=\"val\">&#8211;<\/span><\/div>\r\n    <div><span>1M<\/span><span id=\"gold-1m\" class=\"val\">&#8211;<\/span><\/div>\r\n    <div><span>6M<\/span><span id=\"gold-6m\" class=\"val\">&#8211;<\/span><\/div>\r\n    <div><span>1An<\/span><span id=\"gold-1y\" class=\"val\">&#8211;<\/span><\/div>\r\n  <\/div>\r\n<\/div>\r\n\r\n<!-- WIDGET M\u00c9T\u00c9O -->\r\n<div class=\"wf-horizontal-container\">\r\n  <div class=\"wf-header\">\r\n    <strong>\ud83d\udccd M\u00e9t\u00e9o \u00e0 Marigny-en-Orxois (7 jours)<\/strong>\r\n  <\/div>\r\n  <div class=\"wf-cards-wrapper\" id=\"wf-cards\">\r\n    <div class=\"wf-loading\">Chargement des pr\u00e9visions&#8230;<\/div>\r\n  <\/div>\r\n<\/div>\r\n\r\n<!-- SCRIPTS DE SYNCHRONISATION SERVEUR ET API -->\r\n<script>\r\nconst TODO_LIMIT = 15;\r\nconst SHOP_LIMIT = 50;\r\nconst people = ['nicolas', 'ana', 'sophia', 'louis'];\r\nlet state = {\r\n  nicolas: [],\r\n  ana: [],\r\n  sophia: [],\r\n  louis: [],\r\n  shopping_items: []\r\n};\r\n\r\nasync function fetchServerData() {\r\n  try {\r\n    const res = await fetch(`\/fichiers\/todolists\/shopping_items.json?t=` + Date.now());\r\n    if (res.ok) {\r\n      const data = await res.json();\r\n      if (data && typeof data === 'object') {\r\n        state.shopping_items = Array.isArray(data.shopping_items) ? data.shopping_items : [];\r\n        people.forEach(p => {\r\n          state[p] = Array.isArray(data[p]) ? data[p].map(item => typeof item === 'string' ? { text: item } : item) : [];\r\n        });\r\n      }\r\n    }\r\n  } catch (e) {\r\n    console.error('Erreur chargement:', e);\r\n  }\r\n}\r\n\r\nasync function saveServerData() {\r\n  try {\r\n    await fetch(`\/fichiers\/save.php?file=shopping_items`, {\r\n      method: 'POST',\r\n      headers: { 'Content-Type': 'application\/json' },\r\n      body: JSON.stringify(state)\r\n    });\r\n  } catch (e) {\r\n    console.error('Erreur sauvegarde serveur:', e);\r\n  }\r\n}\r\n\r\n\/\/ --- RENDU & INTERACTIVIT\u00c9 PENSE-B\u00caTES ---\r\nfunction renderTodos(person) {\r\n  const items = state[person] || [];\r\n  const listEl = document.getElementById('list-' + person);\r\n  const countEl = document.getElementById('count-' + person);\r\n  \r\n  countEl.textContent = items.length + '\/' + TODO_LIMIT;\r\n  listEl.innerHTML = '';\r\n\r\n  items.forEach((item, index) => {\r\n    const li = document.createElement('li');\r\n    const textVal = typeof item === 'string' ? item : item.text;\r\n    li.innerHTML = `<span>${escapeHtml(textVal)}<\/span> <button class=\"btn-del\" onclick=\"removeTodo('${person}', ${index})\">-<\/button>`;\r\n    listEl.appendChild(li);\r\n  });\r\n}\r\n\r\nasync function addTodo(person) {\r\n  const input = document.getElementById('input-' + person);\r\n  const text = input.value.trim();\r\n  if (!text) return;\r\n\r\n  if (state[person].length >= TODO_LIMIT) {\r\n    alert('Limite de ' + TODO_LIMIT + ' notes atteinte.');\r\n    return;\r\n  }\r\n\r\n  state[person].push({ text: text });\r\n  input.value = '';\r\n  renderTodos(person);\r\n  await saveServerData();\r\n}\r\n\r\nasync function removeTodo(person, index) {\r\n  state[person].splice(index, 1);\r\n  renderTodos(person);\r\n  await saveServerData();\r\n}\r\n\r\nasync function clearTodos(person) {\r\n  if (state[person].length === 0) return;\r\n  if (confirm('Voulez-vous vraiment effacer toutes les notes de ' + person + ' ?')) {\r\n    state[person] = [];\r\n    renderTodos(person);\r\n    await saveServerData();\r\n  }\r\n}\r\n\r\n\/\/ --- RENDU & INTERACTIVIT\u00c9 LISTE DE COURSES ---\r\nfunction renderShop() {\r\n  const items = state.shopping_items || [];\r\n  const countEl = document.getElementById('count-shopping');\r\n  countEl.textContent = items.length + '\/' + SHOP_LIMIT + ' articles';\r\n\r\n  const listCarrefour = document.getElementById('shop-list-carrefour');\r\n  const listLeclerc = document.getElementById('shop-list-leclerc');\r\n  const listSans = document.getElementById('shop-list-sans');\r\n\r\n  listCarrefour.innerHTML = '';\r\n  listLeclerc.innerHTML = '';\r\n  listSans.innerHTML = '';\r\n\r\n  items.forEach((item, index) => {\r\n    const li = document.createElement('li');\r\n    li.innerHTML = `<span>${escapeHtml(item.text)}<\/span> <button class=\"btn-del\" onclick=\"removeShopItem(${index})\">-<\/button>`;\r\n\r\n    if (item.store === 'carrefour') {\r\n      listCarrefour.appendChild(li);\r\n    } else if (item.store === 'leclerc') {\r\n      listLeclerc.appendChild(li);\r\n    } else {\r\n      listSans.appendChild(li);\r\n    }\r\n  });\r\n}\r\n\r\nasync function addShopItem() {\r\n  const input = document.getElementById('input-shop-item');\r\n  const select = document.getElementById('select-shop-store');\r\n  const text = input.value.trim();\r\n  if (!text) return;\r\n\r\n  if (state.shopping_items.length >= SHOP_LIMIT) {\r\n    alert('Limite de ' + SHOP_LIMIT + ' articles atteinte.');\r\n    return;\r\n  }\r\n\r\n  state.shopping_items.push({ text: text, store: select.value });\r\n  input.value = '';\r\n  select.value = '';\r\n  renderShop();\r\n  await saveServerData();\r\n}\r\n\r\nasync function removeShopItem(index) {\r\n  state.shopping_items.splice(index, 1);\r\n  renderShop();\r\n  await saveServerData();\r\n}\r\n\r\nasync function clearShopByStore(storeName) {\r\n  const matchingItems = state.shopping_items.filter(item => (item.store || '') === storeName);\r\n  if (matchingItems.length === 0) return;\r\n\r\n  const label = storeName === 'carrefour' ? 'Carrefour' : (storeName === 'leclerc' ? 'Leclerc' : 'Sans enseigne');\r\n  if (confirm('Voulez-vous vider tous les articles de la colonne ' + label + ' ?')) {\r\n    state.shopping_items = state.shopping_items.filter(item => (item.store || '') !== storeName);\r\n    renderShop();\r\n    await saveServerData();\r\n  }\r\n}\r\n\r\nfunction escapeHtml(str) {\r\n  if (!str) return '';\r\n  return str.replace(\/[&<>\"']\/g, function(m) {\r\n    return { '&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#039;' }[m];\r\n  });\r\n}\r\n\r\n\/\/ Synchronisation globale\r\nasync function syncAll() {\r\n  await fetchServerData();\r\n  people.forEach(p => renderTodos(p));\r\n  renderShop();\r\n}\r\n\r\nsyncAll();\r\nsetInterval(syncAll, 5000);\r\n\r\n\/\/ --- API OR (PAX GOLD) ---\r\nasync function fetchGoldData() {\r\n  try {\r\n    const res = await fetch('https:\/\/api.coingecko.com\/api\/v3\/coins\/pax-gold\/market_chart?vs_currency=eur&days=365');\r\n    const data = await res.json();\r\n    const prices = data.prices;\r\n    \r\n    const current = prices[prices.length - 1][1];\r\n    const p24h = prices[Math.max(0, prices.length - 2)][1];\r\n    const p1m = prices[Math.max(0, prices.length - 30)][1];\r\n    const p6m = prices[Math.max(0, prices.length - 180)][1];\r\n    const p1y = prices[0][1];\r\n\r\n    document.getElementById('gold-price').textContent = Math.round(current).toLocaleString('fr-FR') + ' \u20ac\/oz';\r\n\r\n    const calcVar = (oldP, curP) => {\r\n      const diff = ((curP - oldP) \/ oldP) * 100;\r\n      const cls = diff >= 0 ? 'up' : 'down';\r\n      const sign = diff >= 0 ? '+' : '';\r\n      return `<span class=\"${cls}\">${sign}${diff.toFixed(1)}%<\/span>`;\r\n    };\r\n\r\n    document.getElementById('gold-24h').innerHTML = calcVar(p24h, current);\r\n    document.getElementById('gold-1m').innerHTML = calcVar(p1m, current);\r\n    document.getElementById('gold-6m').innerHTML = calcVar(p6m, current);\r\n    document.getElementById('gold-1y').innerHTML = calcVar(p1y, current);\r\n  } catch (e) {\r\n    document.getElementById('gold-price').textContent = 'Indisponible';\r\n  }\r\n}\r\n\r\n\/\/ --- API M\u00c9T\u00c9O ---\r\nasync function fetchHorizontalWeather() {\r\n  try {\r\n    const url = 'https:\/\/api.open-meteo.com\/v1\/forecast?latitude=49.06&longitude=3.22' +\r\n                '&daily=weathercode,temperature_2m_max,temperature_2m_min,precipitation_sum,windgusts_10m_max' +\r\n                '&timezone=Europe%2FParis';\r\n                \r\n    const res = await fetch(url);\r\n    const data = await res.json();\r\n    const daily = data.daily;\r\n\r\n    const weatherCodes = {\r\n      0: 'Ensoleill\u00e9 \u2600\ufe0f', 1: 'D\u00e9gag\u00e9 \ud83c\udf24\ufe0f', 2: 'Nuageux \u26c5', 3: 'Couvert \u2601\ufe0f',\r\n      45: 'Brouillard \ud83c\udf2b\ufe0f', 48: 'Givre \ud83c\udf2b\ufe0f', 51: 'Bruine \ud83c\udf26\ufe0f', 53: 'Bruine \ud83c\udf26\ufe0f',\r\n      55: 'Bruine \ud83c\udf26\ufe0f', 61: 'Pluie faible \ud83c\udf27\ufe0f', 63: 'Pluie \ud83c\udf27\ufe0f', 65: 'Forte pluie \ud83c\udf27\ufe0f',\r\n      71: 'Neige \u2744\ufe0f', 80: 'Averses \ud83c\udf26\ufe0f', 81: 'Averses \ud83c\udf26\ufe0f', 82: 'Averses \ud83c\udf26\ufe0f', 95: 'Orage \u26a1'\r\n    };\r\n\r\n    let html = '';\r\n\r\n    for (let i = 0; i < daily.time.length; i++) {\r\n      const date = new Date(daily.time[i] + 'T00:00:00');\r\n      let dayName = date.toLocaleDateString('fr-FR', { weekday: 'short', day: 'numeric' });\r\n      if (i === 0) dayName = 'Aujourd\\'hui';\r\n\r\n      const code = daily.weathercode[i];\r\n      const desc = weatherCodes[code] || 'Vari\u00e9';\r\n      const minTemp = Math.round(daily.temperature_2m_min[i]);\r\n      const maxTemp = Math.round(daily.temperature_2m_max[i]);\r\n      const rain = daily.precipitation_sum[i].toFixed(1);\r\n      const wind = Math.round(daily.windgusts_10m_max[i]);\r\n\r\n      html += `\r\n        <div class=\"wf-card\">\r\n          <div class=\"wf-card-day\">${dayName}<\/div>\r\n          <div class=\"wf-card-icon\">${desc}<\/div>\r\n          <div class=\"wf-card-temps\">\r\n            <span class=\"wf-temp-min\">${minTemp}\u00b0<\/span> \/ <span class=\"wf-temp-max\">${maxTemp}\u00b0<\/span>\r\n          <\/div>\r\n          <div class=\"wf-card-details\">\r\n            <span class=\"wf-rain\">\u2614 ${rain} mm<\/span>\r\n            <span class=\"wf-wind\">\ud83d\udca8 ${wind} km\/h<\/span>\r\n          <\/div>\r\n        <\/div>\r\n      `;\r\n    }\r\n\r\n    document.getElementById('wf-cards').innerHTML = html;\r\n  } catch (e) {\r\n    document.getElementById('wf-cards').innerHTML = '<div class=\"wf-loading\" style=\"color:red;\">Erreur de chargement.<\/div>';\r\n  }\r\n}\r\n\r\nfetchGoldData();\r\nfetchHorizontalWeather();\r\n<\/script>\r\n","protected":false},"excerpt":{"rendered":"<p>OK \ud83d\udccc Pense-b\u00eate (max 15 par personne) Nicolas 0\/15 Tout effacer + Ana 0\/15 Tout effacer + Sophia 0\/15 Tout effacer + Louis 0\/15 Tout effacer + \ud83d\uded2 Liste de courses 0\/50 articles Magasin (aucun par d\u00e9faut)CarrefourLeclerc + Carrefour Vider Leclerc Vider Sans enseigne Vider \ud83d\udcb0 Or (XAU\/EUR) Chargement&#8230; 24h&#8211; 1M&#8211; 6M&#8211; 1An&#8211; \ud83d\udccd M\u00e9t\u00e9o [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-2","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.nuage.ooo\/index.php?rest_route=\/wp\/v2\/pages\/2","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nuage.ooo\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.nuage.ooo\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.nuage.ooo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nuage.ooo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2"}],"version-history":[{"count":115,"href":"https:\/\/www.nuage.ooo\/index.php?rest_route=\/wp\/v2\/pages\/2\/revisions"}],"predecessor-version":[{"id":357,"href":"https:\/\/www.nuage.ooo\/index.php?rest_route=\/wp\/v2\/pages\/2\/revisions\/357"}],"wp:attachment":[{"href":"https:\/\/www.nuage.ooo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}