/* Noël des commerçants de Ouistreham — base commune (page publique, connexion, espaces) */
:root{
  --night:#0d1f33; --dusk:#1b3a58; --sea:#264f6e;
  --sand:#d9c49c; --sand-dk:#bfa678;
  --plank:#eef2f3; --plank-line:#dde5e8; --white:#fbfcfc;
  --ink:#10253a; --ink-soft:#3c5266; --line:#c9d4db;
  --red:#c63b28; --blue:#2a6aa8; --yellow:#f1b52f; --green:#2d7f64;
  --display:"Anybody", "Atkinson Hyperlegible", sans-serif;
  --text:"Atkinson Hyperlegible", system-ui, sans-serif;
  --wrap:min(1240px, 100% - 2.5rem);
  --ease:cubic-bezier(.16,1,.3,1);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scrollbar-color:var(--sea) var(--plank);-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition-duration:.01ms!important;animation-duration:.01ms!important}}
body{margin:0;font-family:var(--text);font-size:1.0625rem;line-height:1.6;color:var(--ink);background:var(--plank);caret-color:var(--red)}
::selection{background:var(--yellow);color:var(--ink)}
img{max-width:100%;display:block}
a{color:inherit;text-underline-offset:.2em;text-decoration-thickness:1.5px}
:focus-visible{outline:3px solid var(--yellow);outline-offset:3px;border-radius:4px}
h1,h2,h3,h4{font-family:var(--display);font-weight:800;line-height:1.08;letter-spacing:-.01em;margin:0;text-wrap:balance}
p{margin:0}
[hidden]{display:none!important}
.wrap{width:var(--wrap);margin-inline:auto}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* marque */
.brand{font-family:var(--display);font-weight:800;font-variation-settings:"wdth" 118;font-size:1.05rem;text-decoration:none;letter-spacing:.01em;line-height:1.3;color:#fff}
.brand span{display:block;font-family:var(--text);font-weight:400;font-size:.8rem;letter-spacing:.04em;color:#b9cde0}

/* boutons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;font:700 1rem/1 var(--text);padding:.95rem 1.3rem;border-radius:10px;text-decoration:none;border:0;cursor:pointer;transition:transform .25s var(--ease),background .2s,box-shadow .25s,opacity .2s}
.btn svg{width:18px;height:18px;flex:none}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.btn-red{background:var(--red);color:#fff;box-shadow:0 8px 18px -8px rgba(5,14,24,.6)}
.btn-red:hover:not(:disabled){background:#ad321f;transform:translateY(-2px)}
.btn-blue{background:var(--blue);color:#fff}
.btn-blue:hover:not(:disabled){background:#225a8f}
.btn-green{background:var(--green);color:#fff}
.btn-green:hover:not(:disabled){background:#246a53}
.btn-ghost{background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.35)}
.btn-ghost:hover{background:rgba(255,255,255,.18)}
.btn-line{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.btn-line:hover:not(:disabled){background:#e3eaee}
.btn-sm{padding:.6rem .85rem;font-size:.92rem;border-radius:8px}

/* champs */
fieldset{border:0;padding:0;margin:0 0 1.25rem}
legend,.lbl{display:block;font-weight:700;font-size:.98rem;margin-bottom:.5rem;padding:0}
.field{margin-bottom:1.25rem}
.opt{display:flex;flex-wrap:wrap;gap:.5rem}
.opt label{display:inline-flex;align-items:center;gap:.5rem;padding:.6rem .85rem;border-radius:9px;border:1.5px solid var(--line);cursor:pointer;font-size:.97rem;background:#fff;transition:border-color .2s,background .2s}
.opt label:has(input:checked){border-color:var(--ink);background:#eef3f6}
.opt input,.check input{accent-color:var(--red);margin:0;width:17px;height:17px;flex:none}
.check{display:flex;gap:.6rem;align-items:flex-start;font-size:.95rem;color:var(--ink-soft)}
.check input{margin-top:.2rem}
input[type="text"],input[type="email"],input[type="tel"],input[type="search"],input[type="password"],input[type="date"],input[type="number"],input[type="time"],select,textarea{width:100%;font:400 1rem/1.4 var(--text);color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:10px;padding:.8rem .9rem;transition:border-color .2s,box-shadow .2s}
input:focus,select:focus,textarea:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 3px rgba(42,106,168,.2)}
textarea{min-height:130px;resize:vertical}
::placeholder{color:#5f7385}
.help{font-size:.88rem;color:var(--ink-soft);margin-top:.35rem;display:flex;justify-content:space-between;gap:1rem}
.err{color:#a42a18;font-size:.9rem;margin-top:.4rem}
.drop{position:relative;display:grid;place-items:center;text-align:center;gap:.35rem;border:2px dashed #9fb1bf;border-radius:12px;padding:1.4rem 1rem;cursor:pointer;transition:border-color .2s,background .2s;color:var(--ink-soft);background:#fff}
.drop:hover,.drop.over{border-color:var(--blue);background:#f1f6fa}
.drop:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(42,106,168,.2)}
.drop svg{width:30px;height:30px;color:var(--blue)}
.drop b{color:var(--ink)}
.drop input{position:absolute;width:1px;height:1px;opacity:0}
.thumbs{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.6rem}
.thumbs figure{margin:0;position:relative}
.thumbs img{width:76px;height:76px;object-fit:cover;border-radius:8px}
.thumbs button{position:absolute;top:-6px;right:-6px;width:24px;height:24px;border-radius:50%;border:0;background:var(--ink);color:#fff;cursor:pointer;display:grid;place-items:center;padding:0}
.thumbs button svg{width:12px;height:12px}

/* étiquettes */
.tag{display:inline-block;font:700 .78rem/1 var(--text);padding:.4rem .55rem;border-radius:5px;white-space:nowrap}
.tag-c{background:#fbe4df;color:#9b2a1a}
.tag-p{background:#dfeaf6;color:#1d4f80}
.tag-l{background:#f7ecd2;color:#6b4f12}
.tag-o{background:#dcefe6;color:#1d5a45}
.st{display:inline-flex;align-items:center;gap:.4rem;font:700 .8rem/1 var(--text);padding:.42rem .6rem;border-radius:999px;white-space:nowrap}
.st::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.st-attente{background:#fdf1d4;color:#7a5a10}
.st-programme{background:#dfeaf6;color:#1d4f80}
.st-publie{background:#dcefe7;color:#1f6049}
.st-refuse{background:#fbe4df;color:#9b2a1a}

/* bandeau « maquette » */
.proto{display:flex;gap:.6rem;align-items:flex-start;background:#fdf1d4;color:#6b4f12;border-radius:10px;padding:.75rem .95rem;font-size:.92rem}
.proto svg{width:18px;height:18px;flex:none;margin-top:.15rem}

/* toit de cabine */
.roof{clip-path:polygon(50% 0,100% 100%,0 100%);background:var(--c)}
