@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/playfair-display-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/playfair-display-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/playfair-display-latin-ext-400-italic.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/playfair-display-latin-400-italic.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/playfair-display-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/playfair-display-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(../fonts/playfair-display-latin-ext-600-italic.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(../fonts/playfair-display-latin-600-italic.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/plus-jakarta-sans-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/plus-jakarta-sans-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/plus-jakarta-sans-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/plus-jakarta-sans-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/plus-jakarta-sans-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
:root{--c-roseclair:#EFCFD4;--r-roseclair:239,207,212;--c-vieuxroseclair:#DBA4AA;--r-vieuxroseclair:219,164,170;--c-blanc:#FFFFFF;--r-blanc:255,255,255;--c-plein:#5A3A57;--r-plein:90,58,87;--c-surplein:#FDF4F3;--r-surplein:253,244,243;--logo-filtre:none;--c-fond:#FDF4F3;--c-carte:#F6E3E2;--c-carte2:#F8E8E9;--c-carte3:#F3DCDD;--c-pale:#F8ECEE;--c-barre:#FFFBFA;--c-rose:#EFCFD4;--c-vieuxrose:#DBA4AA;--c-mauve:#9B6A78;--c-mauve2:#8A5F80;--c-fonce:#5A3A57;--c-texte:#3B2A38;--c-second:#7A6672;--c-nuit:#2A1B28;--r-fond:253,244,243;--r-carte:246,227,226;--r-carte2:248,232,233;--r-carte3:243,220,221;--r-pale:248,236,238;--r-barre:255,251,250;--r-rose:239,207,212;--r-vieuxrose:219,164,170;--r-mauve:155,106,120;--r-mauve2:138,95,128;--r-fonce:90,58,87;--r-texte:59,42,56;--r-second:122,102,114;--r-nuit:42,27,40}
body{margin:0}
a{color:var(--c-fonce)}a:hover{color:var(--c-fonce)}
button{font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
textarea{font-family:inherit}
input,textarea,select{color:var(--c-texte)}
input::placeholder,textarea::placeholder{color:var(--c-second);opacity:.85}
textarea:focus{outline:2px solid var(--c-rose);outline-offset:1px}
@keyframes softpulse{0%{transform:scale(1);opacity:.55}100%{transform:scale(1.9);opacity:0}}
@keyframes beat{0%,100%{transform:scale(1)}15%{transform:scale(1.12)}30%{transform:scale(1)}}
@keyframes fadein{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.ring{animation:softpulse 1.8s ease-out infinite}
.beat{animation:beat 1.4s ease-in-out infinite}
.fade{animation:fadein 260ms ease-out}
.scroll::-webkit-scrollbar{display:none}
.scroll{overflow-x:hidden}
input,textarea,select{max-width:100%;min-width:0;box-sizing:border-box}
@keyframes veil{from{opacity:1}to{opacity:0}}
.veil{animation:veil 520ms ease-out forwards}
html,body,button,label,a{touch-action:manipulation}
.scroll{overflow-anchor:none}
[data-dhandle="1"]{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:grab}
[data-dlong="1"]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
@media (prefers-reduced-motion: reduce){.ring,.beat,.fade,.veil{animation:none}.veil{opacity:0}}
.rich{outline:none;font-size:16px;line-height:1.55;color:var(--c-texte);overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}
.rich p{margin:0 0 6px}.rich p:last-child{margin-bottom:0}
.rich h3{margin:12px 0 6px;font-family:'Playfair Display',Georgia,serif;font-weight:400;font-size:22px;line-height:1.25;color:var(--c-texte)}
.rich h3:first-child{margin-top:0}
.rich p[data-s="petit"]{font-size:13.5px;color:var(--c-second)}
.rich p[data-dict]{color:var(--c-mauve);scroll-margin-bottom:140px}
input[type=time]::-webkit-datetime-edit-hour-field:focus,input[type=time]::-webkit-datetime-edit-minute-field:focus,input[type=time]::-webkit-datetime-edit-ampm-field:focus,input[type=date]::-webkit-datetime-edit-day-field:focus,input[type=date]::-webkit-datetime-edit-month-field:focus,input[type=date]::-webkit-datetime-edit-year-field:focus{background:var(--c-rose);color:var(--c-texte);border-radius:4px}
input,textarea,select{accent-color:var(--c-mauve)}
input::selection,textarea::selection,[contenteditable]::selection,[contenteditable] *::selection{background:var(--c-rose);color:var(--c-texte)}
input[type=time]:focus,input[type=date]:focus,input[type=datetime-local]:focus{outline:2px solid var(--c-vieuxrose);outline-offset:1px}
.rich ul,.rich ol{margin:0 0 6px;padding-left:22px}.rich li{margin:0 0 3px}
.rich b,.rich strong{font-weight:800}
.rich.vide:before{content:attr(data-ph);color:var(--c-second);opacity:.75;pointer-events:none;display:block}
.richbar{display:none;gap:4px;align-items:center;margin-bottom:6px}
.richwrap:focus-within .richbar{display:flex}
.richbar button{height:34px;min-width:36px;padding:0 8px;border-radius:10px;border:none;background:var(--c-carte2);color:var(--c-fonce);font-size:14px;font-weight:700;font-family:inherit;display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}
.richbar button:active{background:var(--c-rose)}
.richbar .sep{width:1px;height:20px;background:var(--c-rose);margin:0 3px}

:root { --poudre: #FDF4F3; --rose: #EFCFD4; --vieux-rose: #DBA4AA; --mauve: #9B6A78; --lie-de-vin: #5A3A57; }
html, body { margin: 0; min-height: 100%; background: var(--c-fond); transition: background-color 400ms ease; }
body { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
#root { display: flex; justify-content: center; text-wrap: pretty; }
#root h1, #root h2, #root h3, #root [data-titre], #root button { text-wrap: balance; }
.compose { transition: border-color 200ms ease, box-shadow 200ms ease; }
@keyframes souffle { 0% { transform: scale(0.72); } 40% { transform: scale(1); } 100% { transform: scale(0.72); } }
.souffle { animation: souffle 10s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .souffle { animation: none; transform: scale(0.9); } }
.compose:focus-within { border-color: var(--c-vieuxrose) !important; box-shadow: 0 0 0 3px rgba(var(--r-rose),0.45) !important; }
/* Téléphones, Fold ouvert, tablettes (écran tactile) : l'app occupe tout l'écran, colonne centrée */
#root > div:first-child { width: 100vw !important; max-width: 560px; height: 100vh !important; height: 100dvh !important; }
/* Ordinateur seulement (souris) : présentation en téléphone */
@media (min-width: 560px) and (hover: hover) and (pointer: fine) {
  body { padding: 24px 0; background: var(--c-carte); }
  #root > div:first-child { width: 390px !important; height: 844px !important; max-height: calc(100dvh - 48px) !important; border-radius: 44px; box-shadow: 0 30px 80px rgba(var(--r-fonce),0.18); }
}
html.ms-zoom #root > div:first-child { width: var(--ms-w) !important; height: var(--ms-h) !important; }
/* Une fenêtre ouverte par‑dessus une page : seul son « fermer » se voit */
#ms-root:has([role=dialog]) .page-fermer { visibility: hidden; }
h1,h2{overflow-wrap:break-word}
[aria-label="Mon énergie"] button>span:last-child{white-space:normal!important;text-align:center;line-height:1.15}
/* Écrans peu hauts (iPhone SE, Android compacts) : la jauge et les espaces se resserrent pour que l'accueil tienne sans défiler */
@media (max-height:870px){.jauge{width:152px!important;height:132px!important}.jauge>svg{width:152px;height:152px}.jauge>span{top:44px!important}}
@media (max-height:830px){.jauge{width:132px!important;height:114px!important;margin-top:6px!important}.jauge>svg{width:132px;height:132px}.jauge>span{top:36px!important}.jauge>span>span:first-child{font-size:28px!important}}
@media (max-height:830px){.accueil{padding-top:12px!important}.accueil h1{font-size:26px!important}.sous-titre{display:none}.accueil .niveaux{margin-top:6px!important}.accueil .niveaux button{gap:6px!important}.accueil .enr{margin-top:10px!important}.accueil .carnet{min-height:62px!important;margin-top:8px!important}.jauge{width:120px!important;height:104px!important}.jauge>svg{width:120px;height:120px}.jauge>span{top:32px!important}.jauge>span>span:first-child{font-size:26px!important}}
@media (max-height:710px){.accueil .carnet>span:last-child{display:none}.accueil .carnet{min-height:56px!important}}
/* « Mes autres suivis » sous le Carnet : plus serré sur les écrans peu hauts */
@media (max-height:870px){.accueil .autres{min-height:44px!important;margin-top:6px!important;font-size:15.5px!important}}
html.ms-h870 .accueil .autres{min-height:44px!important;margin-top:6px!important;font-size:15.5px!important}
/* Même chose quand l’app est remise à la taille du téléphone (js/ecran.js) */
html.ms-h870 .jauge{width:152px!important;height:132px!important}html.ms-h870 .jauge>svg{width:152px;height:152px}html.ms-h870 .jauge>span{top:44px!important}
html.ms-h830 .jauge{width:132px!important;height:114px!important;margin-top:6px!important}html.ms-h830 .jauge>svg{width:132px;height:132px}html.ms-h830 .jauge>span{top:36px!important}html.ms-h830 .jauge>span>span:first-child{font-size:28px!important}
html.ms-h830 .accueil{padding-top:12px!important}html.ms-h830 .accueil h1{font-size:26px!important}html.ms-h830 .sous-titre{display:none}html.ms-h830 .accueil .niveaux{margin-top:6px!important}html.ms-h830 .accueil .niveaux button{gap:6px!important}html.ms-h830 .accueil .enr{margin-top:10px!important}html.ms-h830 .accueil .carnet{min-height:62px!important;margin-top:8px!important}html.ms-h830 .jauge{width:120px!important;height:104px!important}html.ms-h830 .jauge>svg{width:120px;height:120px}html.ms-h830 .jauge>span{top:32px!important}html.ms-h830 .jauge>span>span:first-child{font-size:26px!important}
html.ms-h710 .accueil .carnet>span:last-child{display:none}html.ms-h710 .accueil .carnet{min-height:56px!important}
