/* Base commune des sites d'exemple (structure seulement ; couleurs et polices dans site.css via variables) */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,svg{display:block;max-width:100%;height:auto}
h1,h2,h3,h4,p,ul,ol,dl,dd,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--focus,currentColor);outline-offset:3px}
.saut{position:absolute;left:12px;top:-80px;z-index:100;padding:12px 16px;background:#fff;color:#000;border-radius:6px}
.saut:focus{top:44px}
.visuellement-cache{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Bandeau "exemple" : toujours en haut, toujours lisible */
.bandeau-exemple{position:relative;z-index:60;margin:0;padding:9px 16px;background:#141414;color:#f5f5f0;font:600 13.5px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;text-align:center;letter-spacing:.01em}
.bandeau-exemple a{color:#fff;text-underline-offset:3px}

/* Apparitions douces */
.js .apparait{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)}
.js .apparait.vu{opacity:1;transform:none}
.js .apparait.d1{transition-delay:.08s}.js .apparait.d2{transition-delay:.16s}.js .apparait.d3{transition-delay:.24s}

/* Barre d'action fixe sur telephone */
.barre-bas{position:fixed;left:0;right:0;bottom:0;z-index:50;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:1px;background:var(--barre-trait,rgba(0,0,0,.15));box-shadow:0 -6px 24px rgba(0,0,0,.12);padding-bottom:env(safe-area-inset-bottom)}
.barre-bas a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:60px;padding:8px 4px;background:var(--barre-fond,#fff);color:var(--barre-texte,#111);text-decoration:none;font-size:13.5px;font-weight:600;line-height:1.1;text-align:center}
.barre-bas a.principal{background:var(--barre-accent,#111);color:var(--barre-accent-texte,#fff)}
.barre-bas svg{width:22px;height:22px}
body{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
@media (min-width:900px){.barre-bas{display:none}body{padding-bottom:0}}

/* Retour de formulaire */
.form-retour{margin-top:14px;padding:14px 16px;border-radius:var(--rayon,8px);background:var(--retour-fond,#eef6ee);color:var(--retour-texte,#173d1a);font-weight:600}

/* Statut ouvert / ferme */
[data-statut]{display:inline-flex;align-items:center;gap:8px}
[data-statut]::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:var(--ferme,#b3261e);box-shadow:0 0 0 3px color-mix(in srgb,var(--ferme,#b3261e) 25%,transparent)}
[data-statut].est-ouvert::before{background:var(--ouvert,#1e7a3c);box-shadow:0 0 0 3px color-mix(in srgb,var(--ouvert,#1e7a3c) 25%,transparent)}
.aujourdhui{font-weight:700}

/* Mini chatbot */
.bulle-ouvrir{position:fixed;right:16px;bottom:calc(74px + env(safe-area-inset-bottom));z-index:55;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:10px 16px;border:0;border-radius:var(--bulle-rayon,999px);background:var(--bulle-accent,#111);color:var(--bulle-accent-texte,#fff);font-weight:600;box-shadow:0 8px 26px rgba(0,0,0,.22);transition:transform .25s}
.bulle-ouvrir:hover{transform:translateY(-2px)}
@media (max-width:599px){.bulle-ouvrir{width:56px;height:56px;padding:0;justify-content:center}.bulle-ouvrir span{display:none}}
@media (min-width:900px){.bulle-ouvrir{bottom:22px;right:22px}}
.bulle-active .bulle-ouvrir{display:none}
.bulle{position:fixed;z-index:70;right:12px;left:12px;bottom:calc(72px + env(safe-area-inset-bottom));max-height:min(72vh,600px);display:flex;flex-direction:column;background:var(--bulle-fond,#fff);color:var(--bulle-texte,#111);border-radius:var(--bulle-rayon-panneau,16px);box-shadow:0 20px 60px rgba(0,0,0,.3);overflow:hidden;font-size:16px}
@media (min-width:900px){.bulle{left:auto;right:22px;bottom:22px;width:390px}}
.bulle-tete{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 12px 12px 18px;background:var(--bulle-accent,#111);color:var(--bulle-accent-texte,#fff)}
.bulle-titre{font-weight:700}
.bulle-fermer{width:44px;height:44px;border:0;background:transparent;color:inherit;font-size:28px;line-height:1}
.bulle-fil{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.msg{max-width:88%;padding:10px 14px;border-radius:14px;line-height:1.45}
.msg-eux{align-self:flex-start;background:var(--bulle-msg,#f1f1ee)}
.msg-moi{align-self:flex-end;background:var(--bulle-accent,#111);color:var(--bulle-accent-texte,#fff)}
.msg-lien{display:inline-block;margin-top:8px;font-weight:700;text-underline-offset:3px}
.bulle-puces{display:flex;gap:8px;overflow-x:auto;padding:0 16px 10px;scrollbar-width:thin}
.puce{flex:none;min-height:40px;padding:8px 13px;border:1px solid var(--bulle-trait,#d6d3cc);border-radius:999px;background:transparent;font-size:14.5px;white-space:nowrap}
.puce:hover{background:var(--bulle-msg,#f1f1ee)}
.bulle-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--bulle-trait,#e3e0d8)}
.bulle-form input{flex:1;min-width:0;min-height:46px;padding:0 12px;border:1px solid var(--bulle-trait,#d6d3cc);border-radius:10px;background:transparent;font-size:16px}
.bulle-form button{min-height:46px;padding:0 14px;border:0;border-radius:10px;background:var(--bulle-accent,#111);color:var(--bulle-accent-texte,#fff);font-weight:700}
.bulle-note{padding:0 16px 10px;font-size:13px;opacity:.75}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .js .apparait{opacity:1;transform:none}
}
