/* CoucouJuju — « Lagon » : turquoise, corail pour les rappels, indigo pour l'intérim, lavande pour le repos */
@font-face { font-family: "Jakarta"; font-weight: 400; font-display: swap; src: url(/polices/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 500; font-display: swap; src: url(/polices/plus-jakarta-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 600; font-display: swap; src: url(/polices/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 700; font-display: swap; src: url(/polices/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 800; font-display: swap; src: url(/polices/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); }

:root {
  --fond: #F2FBFA; --encre: #12302E; --gris: #4E6B69; --ligne: #D5ECE9;
  --turq: #0B7F78; --turq-f: #0B5E59; --turq-c: #DDF5F2;
  --corail: #F26B4F; --corail-f: #A63A22; --corail-c: #FFF1EC;
  --indigo: #2E3192; --indigo-c: #E8E9FB; --lav: #ECE6F6; --lav-f: #5E4A7A;
  --r: 20px; --carte: #fff; --ligne2: #E3F1EF; --haut: #DDF5F2; --note-t: #7A3A2A; color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fond); color: var(--encre); }
body { font-family: "Jakarta", system-ui, sans-serif; font-size: 16px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
[hidden] { display: none !important; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.6px; margin: 2px 0 0; }
h2 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.gris { color: var(--gris); margin: 0; }
.petit-titre { font-size: 14px; font-weight: 600; }
.aide { font-size: 13px; color: var(--gris); margin: 10px 0 0; }
.centre { text-align: center; }

#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; }
.vue:not(#v-code):not(.mer-fond) { padding: calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 170px); }
.entete { margin: 6px 2px 16px; }
.ligne-entete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ligne-entete.gauche { justify-content: flex-start; }
.titre-section { margin: 20px 2px 10px; }

.rond { width: 48px; height: 48px; border-radius: 24px; background: var(--carte); color: var(--turq); box-shadow: 0 2px 8px rgba(11,127,120,.15);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; flex-shrink: 0; }
.carre { width: 48px; height: 48px; border-radius: 14px; background: var(--turq-c); color: var(--turq); font-size: 26px; font-weight: 800; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--turq); color: #fff; border-radius: 16px;
  min-height: 48px; padding: 0 18px; font-weight: 800; text-decoration: none; }
.btn.grand { width: 100%; min-height: 56px; font-size: 17px; margin-top: 14px; }
.btn.secondaire { background: var(--turq-c); color: var(--turq-f); }
.btn.indigo { background: var(--indigo); }
.btn:disabled { opacity: .5; }
.lien { color: var(--gris); text-decoration: underline; padding: 10px; font-weight: 600; min-height: 44px; display: inline-block; }
.lien.rouge { color: var(--corail-f); }
.puce { background: var(--carte); border-radius: 22px; padding: 10px 14px; font-weight: 700; font-size: 15px; min-height: 44px; }
.puce.on { background: var(--turq); color: #fff; }
.indigo-fond .puce.on { background: var(--indigo); }
.rangee { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.rangee.bas { justify-content: space-between; margin-top: 8px; }
.etiq { margin: 16px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--gris); }

.carte { background: var(--carte); border-radius: var(--r); padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 0 var(--ligne); }
.service { background: var(--turq); color: #fff; border-radius: 24px; padding: 18px 20px; }
.service .e { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #CFF5F1; }
.service .h { margin: 4px 0 0; font-size: 30px; font-weight: 800; }
.service .s { margin: 4px 0 0; font-size: 14px; color: #E2FAF7; }
.service.repos { background: var(--lav); color: var(--lav-f); }
.service.repos .e, .service.repos .s { color: var(--lav-f); }
.alerte { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 2px solid var(--corail); background: var(--corail-c); color: var(--corail-f);
  border-radius: 18px; padding: 12px 14px; font-weight: 800; margin-bottom: 12px; }
.alerte.indigo { border-color: var(--indigo); background: var(--indigo-c); color: var(--indigo); }

/* fil du jour */
.fil { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; gap: 12px; align-items: stretch; }
.item .h { width: 46px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--gris); flex-shrink: 0; }
.item .b { flex: 1; background: var(--carte); border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; min-height: 52px; text-align: left; }
.item .b p { margin: 0; }
.item .t { font-weight: 700; }
.item .s { font-size: 13px; color: var(--gris); }
.item.travail .b { background: var(--turq-c); } .item.travail .t { color: var(--turq-f); }
.item.pause .b { background: var(--corail-c); border: 2px solid var(--corail); } .item.pause .t { color: var(--corail-f); font-weight: 800; }
.item.interim .b { background: var(--indigo-c); } .item.interim .t { color: var(--indigo); }
.item.fait .b { opacity: .55; } .item.fait .t { text-decoration: line-through; }
.coche { width: 30px; height: 30px; border-radius: 15px; border: 2.5px solid var(--turq); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.coche:active { background: var(--turq-c); }
.item .milieu { flex: 1; min-width: 0; }
.vide { text-align: center; color: var(--gris); padding: 18px; background: var(--carte); border-radius: 16px; }
.frais { text-align: center; font-size: 13px; color: var(--gris); margin: 14px 0; }

/* planning */
.semaine-nav { display: flex; align-items: center; gap: 8px; background: var(--carte); border-radius: 20px; padding: 6px; }
.semaine-titre { flex: 1; display: flex; flex-direction: column; align-items: center; min-height: 48px; justify-content: center; }
.semaine-titre b { font-size: 17px; }
.semaine-titre span { font-size: 13px; color: var(--gris); font-weight: 600; }
#s-revenir { display: block; margin: 2px auto; color: var(--turq); }
.jours { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.jour { display: flex; gap: 12px; background: var(--carte); border-radius: 16px; padding: 10px 14px; border: 2.5px solid transparent; }
.jour.repos, .jour.absence { background: var(--lav); }
.jour.auj { border-color: var(--turq); }
.jour.passe { opacity: .85; }
.jour .d { width: 40px; text-align: center; flex-shrink: 0; }
.jour .d small { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--gris); }
.jour .d b { font-size: 21px; }
.jour .c { flex: 1; min-width: 0; }
.jour .w { margin: 0; font-size: 17px; font-weight: 800; }
.jour.repos .w, .jour.absence .w { color: var(--lav-f); font-style: italic; }
.jour .f { margin: 1px 0 0; font-size: 13px; font-weight: 700; color: var(--turq-f); }
.jour .m { font-size: 12px; font-weight: 700; color: var(--gris); }
.barre { margin-top: 6px; height: 6px; border-radius: 3px; background: var(--ligne2); position: relative; }
.barre i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--turq); }
.barre i.am { background: var(--corail); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.et { background: var(--corail-c); color: var(--note-t); border-radius: 10px; padding: 5px 9px; font-size: 13px; font-weight: 700; text-align: left; }
.et.fait { background: #EEF3F2; color: var(--gris); text-decoration: line-through; }
.et.int { background: var(--indigo-c); color: var(--indigo); font-weight: 800; }
.et.plus { background: var(--corail); color: #fff; font-weight: 800; }

/* chercher */
.recherche { display: flex; align-items: center; gap: 10px; background: var(--carte); border: 2px solid var(--turq); border-radius: 18px; padding: 0 14px; min-height: 56px; color: var(--turq); }
.recherche input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 17px; font-weight: 600; background: transparent; color: var(--encre); }
.derniere { background: var(--turq); color: #fff; border-radius: 20px; padding: 14px 16px; margin-top: 14px; }
.derniere p { margin: 0; }
.derniere .t { font-size: 20px; font-weight: 800; margin-top: 2px; }
.res { display: flex; gap: 12px; align-items: center; background: var(--carte); border-radius: 16px; padding: 11px 14px; margin-top: 8px; width: 100%; text-align: left; }
.res .q { width: 92px; font-size: 13px; font-weight: 800; color: var(--gris); flex-shrink: 0; }
.res .x { flex: 1; font-weight: 700; }
.res.travail .x { color: var(--turq-f); } .res.interim .x { color: var(--indigo); } .res.note .x, .res.fait .x { color: var(--note-t); } .res.repos .x { color: var(--lav-f); }

/* réglages */
.interrupteurs { display: flex; flex-direction: column; margin-top: 4px; }
.inter { display: flex; justify-content: space-between; align-items: center; min-height: 50px; text-align: left; border-bottom: 1px solid var(--ligne2); gap: 10px; }
.inter:last-child { border-bottom: 0; }
.inter span { font-weight: 600; }
.inter i { width: 50px; height: 30px; border-radius: 15px; background: #C9DEDB; position: relative; flex-shrink: 0; transition: background .15s; }
.inter i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; transition: left .15s; }
.inter.on i { background: var(--turq); } .inter.on i::after { left: 23px; }
.inter.corail.on i { background: var(--corail); }
.sante { list-style: none; padding: 0; margin: 0; }
.sante li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ligne2); }
.sante li:last-child { border: 0; }
.sante .v { font-weight: 700; text-align: right; } .sante .v.non { color: var(--corail-f); }
.journal { margin-top: 10px; font-size: 13px; color: var(--gris); }
.etat-oct { border: 2px solid var(--ligne); } .etat-oct.mal { border-color: var(--corail); background: var(--corail-c); }
.etat-oct h2 { margin-bottom: 2px; } .etat-oct.mal h2 { color: var(--corail-f); }

/* bouton +, onglets */
.fab { position: fixed; right: max(20px, calc(50vw - 240px)); bottom: calc(env(safe-area-inset-bottom) + 92px); width: 66px; height: 66px; border-radius: 33px;
  background: var(--corail); box-shadow: 0 8px 20px rgba(242,107,79,.4); display: flex; align-items: center; justify-content: center; z-index: 5; }
#onglets { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 6px; background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--ligne); padding: 6px 10px calc(env(safe-area-inset-bottom) + 6px); z-index: 4; }
#onglets button { flex: 1; max-width: 150px; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 13px; font-weight: 700; color: var(--gris); border-radius: 14px; }
#onglets .ico { font-size: 21px; line-height: 1; }
#onglets button.actif { background: var(--turq-c); color: var(--turq); font-weight: 800; }

/* feuilles */
.voile { position: fixed; inset: 0; background: rgba(18,48,46,.45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.feuille { background: var(--fond); width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(env(safe-area-inset-bottom) + 24px); }
.indigo-fond { background: #F4F4FD; }
.poignee { width: 44px; height: 5px; border-radius: 3px; background: #B9D9D5; margin: 0 auto 10px; }
.champ { width: 100%; border: 0; border-radius: 18px; background: var(--carte); padding: 16px 54px 16px 16px; min-height: 58px; font-size: 18px; font-weight: 600; outline: none; resize: none; display: block; line-height: 1.35; max-height: 45dvh; overflow-y: auto;
  box-shadow: 0 2px 10px rgba(11,127,120,.10); }
.compris { min-height: 20px; margin: 8px 2px 0; font-size: 14px; font-weight: 700; color: var(--turq-f); }
.mini { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--gris); flex: 1; }
.mini input { border: 0; border-radius: 14px; background: var(--carte); min-height: 48px; padding: 0 12px; font-size: 17px; font-weight: 700; color: var(--encre); }
.actions { background: var(--carte); border-radius: 18px; padding: 4px 12px 10px; margin-bottom: 8px; }
.actions .btn.grand { margin-top: 10px; }
.grille-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.grille-jours button { background: var(--carte); border-radius: 12px; min-height: 54px; font-size: 12px; font-weight: 800; color: #1E2160; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.grille-jours button b { font-size: 17px; }
.grille-jours button.on { background: var(--indigo); color: #fff; }
.grille-jours button.migros { box-shadow: inset 0 -4px 0 var(--turq); }
.apercu { margin-top: 10px; font-size: 14px; font-weight: 600; }
.apercu p { margin: 4px 0; padding: 8px 12px; border-radius: 12px; background: #E6F6F4; color: #0B4F4A; }
.apercu p.alerte-i { background: var(--corail-c); color: var(--corail-f); }
.ligne-int { display: flex; align-items: center; gap: 10px; background: var(--carte); border-radius: 14px; padding: 10px 12px; margin-top: 6px; }
.ligne-int .x { flex: 1; } .ligne-int .x b { color: var(--indigo); } .ligne-int .x small { display: block; color: var(--gris); }

/* code : la mer turquoise */
#v-code, .mer-fond { position: relative; min-height: 100dvh; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(180deg, #E6FAF7 0%, #BDEDE7 45%, #6FD0C6 100%); padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
.mer { position: absolute; inset: 0; pointer-events: none; }
.vague { position: absolute; left: -10%; width: 120%; height: 34%; bottom: 0; }
.vague path { fill: currentColor; }
.v1 { color: rgba(11,127,120,.35); animation: houle 9s ease-in-out infinite alternate; }
.v2 { color: rgba(11,127,120,.55); animation: houle 7s ease-in-out infinite alternate-reverse; height: 28%; }
.v3 { color: #0B7F78; animation: houle 11s ease-in-out infinite alternate; height: 20%; }
@keyframes houle { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.bulle { position: absolute; bottom: 8%; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.55); animation: monte 8s linear infinite; }
.b1 { left: 18%; } .b2 { left: 62%; width: 9px; height: 9px; animation-delay: 3s; } .b3 { left: 82%; width: 11px; height: 11px; animation-delay: 5.5s; }
@keyframes monte { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-70vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vague, .bulle { animation: none; } .bulle { display: none; } }
.code-boite { position: relative; z-index: 1; text-align: center; width: 100%; max-width: 360px; }
.code-logo { width: 92px; height: 92px; border-radius: 26px; box-shadow: 0 10px 26px rgba(11,95,89,.30); }
.coucou { font-size: 34px; margin-top: 14px; color: var(--turq-f); }
.code-sous { margin: 4px 0 0; color: #2F5653; font-weight: 600; }
.code-carte { margin-top: 22px; text-align: left; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 26px; padding: 20px 18px 14px; box-shadow: 0 14px 40px rgba(11,95,89,.18); }
.code-carte label { font-size: 14px; font-weight: 800; color: var(--gris); }
.code-champ { display: flex; align-items: center; margin-top: 6px; background: var(--carte); border: 2px solid var(--ligne); border-radius: 16px; transition: border-color .15s; }
.code-champ:focus-within { border-color: var(--turq); }
.code-champ input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; min-height: 54px; padding: 0 14px; font-size: 20px; letter-spacing: 2px; }
.code-champ button { width: 50px; min-height: 50px; font-size: 20px; opacity: .7; }
.code-carte .btn.grand { margin-top: 14px; }
.code-carte.secoue { animation: secoue .4s; }
@keyframes secoue { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.msg { color: var(--corail-f); min-height: 1.4em; margin: 10px 0 0; font-weight: 700; text-align: center; }
.code-pied { margin-top: 18px; color: #fff; font-weight: 700; text-shadow: 0 1px 4px rgba(11,95,89,.6); }

/* connexion */
.plein { position: fixed; inset: 0; background: var(--fond); display: flex; flex-direction: column; z-index: 30; padding-top: env(safe-area-inset-top); }
.cx-haut { display: flex; justify-content: space-between; align-items: center; padding: 4px 14px; font-size: 18px; }
.cx-etat { margin: 0 14px 8px; padding: 10px 12px; border-radius: 14px; background: var(--corail-c); color: var(--corail-f); font-weight: 700; font-size: 14px; }
.cx-ecran { flex: 1; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; background: #E3EFED; }
.cx-ecran img { max-width: 100%; max-height: 100%; }
.cx-bas { padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px); display: flex; flex-direction: column; gap: 8px; }
.cx-saisie { display: flex; gap: 6px; }
.cx-saisie input { flex: 1; min-width: 0; border: 2px solid var(--turq); border-radius: 14px; padding: 0 12px; min-height: 48px; background: var(--carte); }
.cx-touches { display: flex; gap: 6px; flex-wrap: wrap; }
.petit { background: var(--turq-c); border-radius: 12px; padding: 0 12px; min-height: 44px; font-size: 14px; font-weight: 700; }

#toast { border: 1px solid rgba(255,255,255,.18); position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 170px); background: #0B3A37; color: #fff;
  padding: 12px 18px; border-radius: 16px; font-size: 15px; font-weight: 700; max-width: 90vw; text-align: center; z-index: 40; }

/* vagues discrètes dans l'appli */
#v-jour, #v-planning, #v-chercher, #v-reglages { position: relative; isolation: isolate; }
#v-jour::before, #v-planning::before, #v-chercher::before, #v-reglages::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(env(safe-area-inset-top) + 150px); z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%201440%20320%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20fill%3D%27rgba%2811%2C127%2C120%2C0.07%29%27%20d%3D%27M0%2C200%20C200%2C150%20440%2C250%20720%2C200%20C1000%2C150%201240%2C240%201440%2C190%20L1440%2C0%20L0%2C0%20Z%27/%3E%3C/svg%3E") 0 0 / 200% 100% repeat-x, url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%201440%20320%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20fill%3D%27rgba%2811%2C127%2C120%2C0.10%29%27%20d%3D%27M0%2C160%20C240%2C220%20480%2C100%20720%2C150%20C960%2C200%201200%2C120%201440%2C170%20L1440%2C0%20L0%2C0%20Z%27/%3E%3C/svg%3E") 0 0 / 160% 100% repeat-x,
    linear-gradient(180deg, var(--haut), transparent);
  animation: houle-haut 14s ease-in-out infinite alternate; }
@keyframes houle-haut { from { background-position: 0 0, 0 0, 0 0; } to { background-position: -12% 0, 10% 0, 0 0; } }
.vide { position: relative; overflow: hidden; padding-bottom: 46px; }
.vide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%201440%20320%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20fill%3D%27rgba%2811%2C127%2C120%2C0.22%29%27%20d%3D%27M0%2C160%20C240%2C220%20480%2C100%20720%2C150%20C960%2C200%201200%2C120%201440%2C170%20L1440%2C320%20L0%2C320%20Z%27/%3E%3C/svg%3E") 0 100% / 140% 100% repeat-x, url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%201440%20320%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20fill%3D%27rgba%2811%2C127%2C120%2C0.4%29%27%20d%3D%27M0%2C220%20C260%2C180%20520%2C270%20760%2C230%20C1000%2C190%201220%2C250%201440%2C220%20L1440%2C320%20L0%2C320%20Z%27/%3E%3C/svg%3E") 0 100% / 180% 100% repeat-x;
  animation: houle-bas 9s ease-in-out infinite alternate; }
@keyframes houle-bas { from { background-position: 0 100%, 0 100%; } to { background-position: 12% 100%, -14% 100%; } }
@media (prefers-reduced-motion: reduce) { #v-jour::before, #v-planning::before, #v-chercher::before, #v-reglages::before, .vide::after { animation: none; } }

/* code d'accès dans les réglages */
#f-changer { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
#f-changer .mini input { border: 2px solid var(--ligne); }
#f-changer .indice { font-weight: 600; font-size: 12px; color: var(--gris); }
#f-changer .btn.grand { margin-top: 4px; }
.invite { margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; background: var(--corail-c); color: var(--corail-f); font-weight: 700; font-size: 14px; }
#r-code.attention { box-shadow: 0 0 0 3px var(--corail); }
.alerte.douce { border-color: var(--turq); background: var(--turq-c); color: var(--turq-f); }

/* audit : textes longs, micro, calendrier */
.champ-note { position: relative; }
.micro { position: absolute; right: 6px; top: 6px; width: 46px; height: 46px; border-radius: 23px; font-size: 22px; background: var(--turq-c); }
.micro.on { background: var(--corail); animation: pouls 1.2s ease-in-out infinite; }
@keyframes pouls { 50% { transform: scale(1.08); } }
.ecoute { margin: 8px 2px 0; font-size: 14px; font-weight: 800; color: var(--corail-f); }
.item .t, .res .x, .derniere .t { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .milieu { overflow: hidden; }
.et { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jour .c, .res { min-width: 0; }
.service .h { overflow-wrap: anywhere; }
h1 { overflow-wrap: anywhere; }
.actions .puce { background: var(--turq-c); color: var(--turq-f); }

/* onglets dessinés, options repliées, écrans d'entrée */
#onglets .ico { width: 24px; height: 24px; }
.coche { color: var(--turq); }
.options { margin-top: 12px; background: var(--carte); border-radius: 18px; padding: 0 14px; }
.options summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--turq-f); cursor: pointer; list-style: none; }
.options summary::-webkit-details-marker { display: none; }
.options summary::after { content: "›"; font-size: 22px; transform: rotate(90deg); transition: transform .15s; }
.options[open] summary::after { transform: rotate(-90deg); }
.options[open] { padding-bottom: 12px; }
.options .puce { background: var(--turq-c); }
.options .puce.on { background: var(--turq); }
.indigo-lien { color: var(--indigo); text-decoration: none; padding: 10px 2px 0; }
.tout-bon { margin: 8px 0 0; font-weight: 700; color: var(--turq-f); }
.inst-titre { margin: 0 0 8px; font-size: 18px; font-weight: 800; text-align: center; }
.inst { margin: 0; padding-left: 22px; line-height: 1.9; font-weight: 600; }
.mer-fond .code-carte label, .code-carte label { display: block; margin-top: 10px; }
.code-carte label:first-of-type { margin-top: 0; }
.cx-lecture { margin: 30px 18px; padding: 18px; border-radius: 18px; background: var(--turq-c); color: var(--turq-f); font-weight: 800; text-align: center; font-size: 17px; }

/* lagon de nuit : suit le mode sombre de l'iPhone */
html[data-theme="sombre"] { --fond: #0B1D1C; --encre: #E4F4F1; --gris: #9CBDB8; --ligne: #1F403D; --ligne2: #1F403D; --carte: #132B29; --haut: #123532;
    --turq: #0F8F86; --turq-f: #7FE0D5; --turq-c: #143836; --corail: #F26B4F; --corail-f: #FFB3A2; --corail-c: #3A211B;
    --indigo: #5B5FD6; --indigo-c: #1E2046; --lav: #2A2440; --lav-f: #CFC0EA; --note-t: #FFC9BB; }
html[data-theme="sombre"] .rond, html[data-theme="sombre"] .carre, html[data-theme="sombre"] #onglets button.actif, html[data-theme="sombre"] .coche, html[data-theme="sombre"] .recherche, html[data-theme="sombre"] #s-revenir { color: var(--turq-f); }
html[data-theme="sombre"] .coche { border-color: var(--turq-f); }
html[data-theme="sombre"] .item.interim .t, html[data-theme="sombre"] .res.interim .x, html[data-theme="sombre"] .et.int, html[data-theme="sombre"] .ligne-int .x b, html[data-theme="sombre"] .alerte.indigo, html[data-theme="sombre"] .indigo-lien { color: #B9BCFF; }
html[data-theme="sombre"] .alerte.indigo { border-color: #5B5FD6; }
html[data-theme="sombre"] .et.fait { background: #1A3330; }
html[data-theme="sombre"] .apercu p { background: #143836; color: #9FE7DE; }
html[data-theme="sombre"] .grille-jours button { color: #C9CBFF; }
html[data-theme="sombre"] .grille-jours button.on { color: #fff; }
html[data-theme="sombre"] .indigo-fond { background: #111330; }
html[data-theme="sombre"] .inter i { background: #35524F; }
html[data-theme="sombre"] .poignee { background: #2F524E; }
html[data-theme="sombre"] .cx-ecran { background: #0F2422; }
html[data-theme="sombre"] #onglets { background: rgba(11,29,28,.94); }
html[data-theme="sombre"] .voile { background: rgba(0,0,0,.6); }
html[data-theme="sombre"] .barre { background: #21423F; }
html[data-theme="sombre"] .derniere, html[data-theme="sombre"] .service:not(.repos), html[data-theme="sombre"] .btn:not(.secondaire):not(.indigo) { background: #0E7F77; }
html[data-theme="sombre"] #v-code, html[data-theme="sombre"] .mer-fond { background: linear-gradient(180deg, #0B1D1C 0%, #0D3330 50%, #0B5E59 100%); }
html[data-theme="sombre"] .v3 { color: #094E49; }
html[data-theme="sombre"] .v2 { color: rgba(9,78,73,.7); }
html[data-theme="sombre"] .v1 { color: rgba(15,143,134,.3); }
html[data-theme="sombre"] .code-carte { background: rgba(19,43,41,.86); }
html[data-theme="sombre"] .code-sous { color: #B5D9D4; }
html[data-theme="sombre"] .code-logo, html[data-theme="sombre"] .fab { box-shadow: 0 8px 22px rgba(0,0,0,.5); }
html[data-theme="sombre"] .rond { box-shadow: none; }
#toast { white-space: pre-line; }

/* pendant la pause : le temps qui reste, en grand */
.service.en-pause { background: var(--corail); color: #fff; }
.service.en-pause .e, .service.en-pause .s { color: #FFE9E3; }
.service.en-pause .h { font-size: 38px; }
.service.en-pause.bientot { animation: pouls 1.6s ease-in-out infinite; }
.service.en-pause.fini { background: #C8371B; }
.jauge { margin-top: 12px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.3); overflow: hidden; }
.jauge i { display: block; height: 100%; background: #fff; border-radius: 4px; transition: width 1s linear; }
.et.pause-et { background: var(--corail); color: #fff; font-weight: 800; }
html[data-theme="sombre"] .service.en-pause:not(.fini) { background: #D9583D; }
@media (prefers-reduced-motion: reduce) { .service.en-pause.bientot { animation: none; } }
#j-service + #j-alertes { margin-top: 14px; }

/* planning papier en photo */
.photo-lien { display: block; margin: 2px auto 0; color: var(--turq-f); text-decoration: none; font-weight: 800; }
#ph-nom { border: 2px solid var(--ligne); text-transform: uppercase; }
.ph-lit { text-align: center; font-weight: 800; color: var(--turq-f); padding: 40px 0; animation: pouls 1.4s ease-in-out infinite; }
.ph-jour { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; background: var(--carte); border-radius: 14px; padding: 10px 12px; margin-top: 8px; border: 2px solid transparent; }
.ph-jour.doute { border-color: var(--corail); background: var(--corail-c); }
.ph-jour.passe { opacity: .5; }
.ph-jour select, .ph-jour input { border: 0; border-radius: 10px; background: var(--fond); min-height: 42px; padding: 0 8px; font-weight: 700; font-size: 16px; }
.ph-h { grid-column: 1 / -1; display: flex; gap: 8px; } .ph-h input { flex: 1; min-width: 0; }
.ph-jour small { grid-column: 1 / -1; color: var(--corail-f); font-weight: 700; } .ph-jour small:empty { display: none; }
#ph-debut { border: 2px solid var(--ligne); }
#ph-sem-bloc.doute #ph-debut { border-color: var(--corail); background: var(--corail-c); }
#ph-gardees .x { text-decoration: none; color: inherit; } #ph-gardees .x b { color: var(--turq-f); }
.ph-jour { grid-template-columns: 1fr; }
.ph-choix { display: flex; gap: 6px; }
.ph-choix button { flex: 1; min-height: 44px; border-radius: 12px; background: var(--fond); font-weight: 800; font-size: 15px; }
.ph-choix button[data-t="rien"] { flex: 0 0 44px; }
.ph-choix button.on { background: var(--turq); color: #fff; }
.ph-h label { flex: 1; display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gris); }
/* le corail reste un signal discret : le turquoise domine */
.ph-jour.doute { border-color: transparent; background: var(--carte); box-shadow: inset 4px 0 0 var(--corail); }
.ph-jour small { font-size: 13px; }
#ph-averti { background: var(--turq-c); color: var(--turq-f); }
#ph-sem-bloc.doute #ph-debut { background: var(--carte); }
/* petits iPhone : rien ne déborde, rien ne se coupe */
.ph-jour { grid-template-columns: minmax(0, 1fr); }
.ph-h { flex-wrap: wrap; } .ph-h label { min-width: 120px; } .ph-h input { min-width: 0; width: 100%; }
.ph-choix button { padding: 0 4px; min-width: 0; }
.btn { white-space: nowrap; }
h1 { font-size: clamp(24px, 7.6vw, 30px); }
.vide { padding-right: 70px; padding-left: 18px; text-align: left; }

html[data-theme="sombre"] { color-scheme: dark; }
#r-apparence .puce { background: var(--turq-c); } #r-apparence .puce.on { background: var(--turq); color: #fff; }
