/* Chantier Jour — thème « balisage de chantier ».
   Concept : la page est un panneau de balisage (béton, jaune sécurité, bandes
   diagonales) ; le téléphone est épinglé dessus, tenu par deux bandes de
   balisage jaune-noir comme un ruban tendu entre deux piquets.
   Règle de contraste : le jaune sécurité (#FFD400) est trop clair pour servir
   de texte/icône sur béton clair — il n'est utilisé qu'en fond plein (avec du
   texte graphite dessus) ou en texte/icône sur fond graphite. Jamais jaune
   sur béton. Chargé après core.css/app.css : mêmes sélecteurs, la cascade
   suffit à surcharger, pas de !important. */

:root{
  /* ré-affirme la palette imposée en valeurs statiques : core.css ne doit pas
     retomber sur l'ancien crème/orange avant l'exécution de client.js (et pour
     les outils d'audit statique, qui ne jouent pas le JS). */
  --paper:#E4E4E1; --ink:#22252A; --muted:#52565A; --accent:#FFD400; --line:#C9C9C4;
  --vert-ok:#1E9E57;
  --vert-ok-texte:#167A43;
  --jaune-sourd:color-mix(in srgb, var(--accent) 72%, var(--ink) 28%);
}

/* ---------- focus clavier : visible sur fond clair ET sur le panneau graphite ---------- */
:focus-visible{outline:2.5px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 4px var(--accent)}
.hero-texte :focus-visible{outline-color:var(--accent);box-shadow:0 0 0 4px rgba(255,212,0,.35)}

/* ================= héros : composition asymétrique =================
   Scopée à min-width:601px : en dessous, core.css masque hero-photo/hero-texte
   et bascule le téléphone en plein écran (app seule) — on ne touche pas à ce
   comportement, sinon le panneau graphite et les bandes reviendraient par-dessus
   l'app sur mobile. */
@media (min-width:601px){
  .scene{
    position:relative;overflow:hidden;
    min-height:max(720px, calc(100vh - 37px));
    background:var(--ink);
  }
  .hero-photo{
    position:absolute;inset:0;grid-column:unset;grid-row:unset;min-height:0;
    background:var(--ink);
  }
  .hero-photo img{filter:saturate(.82) contrast(1.08)}
  .hero-photo .voile-photo{
    background:
      linear-gradient(100deg, rgba(34,37,42,.62) 0%, rgba(34,37,42,.18) 38%, rgba(34,37,42,0) 58%),
      linear-gradient(0deg, rgba(34,37,42,.55) 0%, rgba(34,37,42,0) 26%);
  }
  .credit-photo{left:18px;bottom:18px}

  .hero-texte{
    position:absolute;top:56px;left:56px;z-index:3;
    width:min(440px, 40vw);max-width:none;padding:34px 30px 30px;
    background:var(--ink);
    clip-path:polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  }
  .cartouche{
    display:inline-flex;align-items:center;font-family:var(--font-display);font-weight:700;
    font-size:15px;letter-spacing:.01em;color:var(--ink);
    background:var(--accent);padding:6px 12px;margin:0 0 22px;
  }
  .eyebrow::before{display:none}
  .hero-texte h1{
    font-family:var(--font-display);font-weight:700;color:var(--paper);
    font-size:clamp(34px,3.4vw,50px);line-height:1.04;letter-spacing:-.005em;
    max-width:14ch;opacity:1;transform:none;animation:none;
  }
  .hero-texte h1 .mot-accent{color:inherit;font-weight:inherit}
  .chapo{
    font-size:16.5px;line-height:1.6;color:color-mix(in srgb, var(--paper) 86%, var(--accent) 0%);
    opacity:.88;margin:20px 0 26px;max-width:46ch;padding-left:0;border-left:none;
    transform:none;animation:none;
  }
  .liste-ecrans{opacity:1;transform:none;animation:none;counter-reset:none}
  .liste-ecrans li{border-top-color:rgba(228,228,225,.22)}
  .liste-ecrans li:last-child{border-bottom-color:rgba(228,228,225,.22)}
  .liste-ecrans button{color:var(--paper)}
  .liste-ecrans button .n{display:none}
  .liste-ecrans button svg{color:rgba(228,228,225,.5)}
  .liste-ecrans button:hover svg,.liste-ecrans button.actif svg{color:var(--accent)}
  .liste-ecrans button.actif{color:var(--accent)}
  .pied-hero{color:rgba(228,228,225,.68);margin-top:28px}
  .pied-hero a{color:var(--paper)}

  /* ---------- téléphone : tenu par deux bandes de balisage (élément signature) ---------- */
  .phone-wrap{
    position:absolute;right:clamp(28px,6vw,96px);bottom:26px;z-index:4;
    display:flex;flex-direction:column;align-items:stretch;
    width:300px;margin:0;grid-column:unset;grid-row:unset;
    filter:drop-shadow(0 30px 54px rgba(0,0,0,.4));
  }
  .bande{
    height:18px;flex-shrink:0;
    background:repeating-linear-gradient(135deg, var(--accent) 0 16px, var(--ink) 16px 32px);
    border-left:1px solid rgba(0,0,0,.25);border-right:1px solid rgba(0,0,0,.25);
    transform:scaleX(0);transform-origin:left center;
    animation:deroule-bande .6s cubic-bezier(.22,1,.36,1) .15s forwards;
  }
  .bande-bas{animation-delay:.3s}
  .phone{width:300px;height:600px;border-radius:32px}
  .phone::before{top:16px;width:70px;height:16px}
}

@keyframes deroule-bande{to{transform:scaleX(1)}}

@media (prefers-reduced-motion:reduce){
  .bande{animation:none;transform:scaleX(1)}
}

/* ---------- tablette : on resserre, même composition ---------- */
@media (min-width:601px) and (max-width:1080px){
  .hero-texte{top:40px;left:28px;width:min(360px,46vw);padding:26px 22px 24px}
  .hero-texte h1{font-size:clamp(28px,4vw,38px)}
  .phone-wrap{right:20px;bottom:18px;width:230px}
  .phone{width:230px;height:470px;border-radius:26px}
}

/* ================= blocs jaune / graphite dans l'app ================= */
.resume-grille .stat:first-child{background:var(--ink);border-color:var(--ink)}
.resume-grille .stat:first-child .valeur,.resume-grille .stat:first-child .label{color:var(--paper)}
.resume-grille .stat:last-child{background:var(--accent);border-color:var(--accent)}
.resume-grille .stat:last-child .valeur,.resume-grille .stat:last-child .label{color:var(--ink)}

.filtre-barre button.actif{background:var(--accent);color:var(--ink);border-color:var(--accent)}

.tabbar button.actif{color:var(--ink)}
.tabbar button.actif svg{background:var(--accent);border-radius:7px;padding:3px;width:27px;height:23px;box-sizing:border-box}

/* ---------- corrections de contraste : le jaune ne porte jamais de texte sur béton ---------- */
.bouton.accent{color:var(--ink)}
.meteo svg{color:var(--ink)}
.vignette-ajouter:active{border-color:var(--ink);color:var(--ink)}

/* ---------- réserves : picto de panneau (triangle) au lieu d'une pastille ronde ---------- */
.reserve .pastille{
  width:11px;height:11px;margin-top:5px;border-radius:1px;background:var(--ink);
  clip-path:polygon(50% 4%, 96% 94%, 4% 94%);
}
.reserve.levee .pastille{
  width:16px;height:16px;margin-top:3px;background:var(--vert-ok);position:relative;
}
.reserve.levee .pastille::after{
  content:'';position:absolute;left:4px;top:7px;width:6px;height:3px;
  border-left:1.6px solid #fff;border-bottom:1.6px solid #fff;transform:rotate(-45deg);
}

/* ---------- tampon de validation : lisible, un seul anneau vert-ok décoratif ---------- */
.tampon{
  width:80px;height:80px;font-size:11.5px;
  background:var(--paper);border:2px solid var(--ink);color:var(--ink);
  box-shadow:0 0 0 3px var(--vert-ok);
}
.interrupteur.on{background:var(--vert-ok)}

/* ---------- plancher de lisibilité : aucun texte fonctionnel sous 12px ---------- */
.vignette .heure{font-size:12px;padding:2px 6px}
.vignette-ajouter{font-size:12px}
.tabbar button{font-size:12px}
.credit-photo{font-size:12px}
.puce{font-size:12.5px}
.reset-demo{font-size:12.5px}
@media (max-width:600px){.reset-demo{font-size:12px}}
.recap-signature p{font-size:12.5px}
.recap-signature p[style*="font-weight:700"]{font-size:13.5px}
