:root {
  --accent: #1D4ED8;
  --accent-doux: #1D4ED81F;
  --texte: #16181D;
  --texte-2: #555B66;
  --fond: #F3F4F6;
  --bord: #C9CDD4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--fond); color: var(--texte);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
}
[hidden] { display: none !important; }
.entete { background: #FFFFFF; padding: 18px 24px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #E5E7EB; }
.logo { width: 44px; height: 44px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #FFFFFF; font-weight: 700; font-size: 18px; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; background: #FFFFFF; }
.logo.logo-large { width: auto; height: 48px; border-radius: 0; background: none; }
.logo.logo-large img { width: auto; height: 100%; background: none; }
/* Bandeau à la couleur du client, logo passé en blanc (logo prévu pour fond foncé) */
.entete.entete-couleur { background: var(--accent); border-bottom: none; color: #FFFFFF; }
.entete.entete-couleur .entete-lieu { color: rgba(255, 255, 255, 0.85); }
.logo.logo-blanc img { filter: brightness(0) invert(1); }
.entete-textes { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.entete-nom { font-size: 16px; font-weight: 600; }
.entete-lieu { font-size: 14px; color: var(--texte-2); }
.contenu { width: 100%; max-width: 480px; margin: 0 auto; padding: 24px 24px 8px; flex-grow: 1; }
.centre { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; }
form { display: flex; flex-direction: column; gap: 20px; }
h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; }
.intro { display: flex; flex-direction: column; gap: 8px; }
.discret { margin: 0; font-size: 15px; line-height: 1.5; color: var(--texte-2); }
.carte { background: #FFFFFF; border: none; border-radius: 16px; padding: 20px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend, .titre-carte { font-size: 15px; font-weight: 600; line-height: 1.35; padding: 0; float: left; width: 100%; margin-bottom: 12px; }
legend + * { clear: both; }
.facultatif { font-weight: 400; color: var(--texte-2); }
.etoiles { display: flex; justify-content: space-between; }
.etoile { position: relative; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 12px; }
.etoile input, .pastille input, .case input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.etoile svg path { fill: none; stroke: #80868F; stroke-width: 1.6; stroke-linejoin: round; transition: fill .12s; }
.etoile.allumee svg path { fill: var(--accent); stroke: var(--accent); }
.etoile:has(input:focus-visible), .pastille:has(input:focus-visible), .case:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.libelle-note { font-size: 14px; color: var(--texte-2); text-align: center; }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille { position: relative; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--bord); background: #FFFFFF;
  display: inline-flex; align-items: center; font-size: 14px; cursor: pointer; }
.pastille:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); font-weight: 600; }
.echelle { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.case { position: relative; height: 44px; border-radius: 10px; border: 1.5px solid var(--bord); background: #FFFFFF;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; cursor: pointer; }
.case:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.echelle-bornes { display: flex; justify-content: space-between; font-size: 13px; color: var(--texte-2); }
textarea { width: 100%; border: 1px solid var(--bord); border-radius: 12px; padding: 12px; font: inherit; font-size: 16px; line-height: 1.4; resize: vertical; color: var(--texte); }
textarea::placeholder { color: #6B7280; }
textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.aide { font-size: 13px; color: var(--texte-2); }
.champ-date { width: 100%; min-height: 48px; border: 1px solid var(--bord); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--texte); background: #FFFFFF; }
.champ-date:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.texte-consentement { margin: 0; font-size: 14px; line-height: 1.5; color: var(--texte); }
.consentement { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--texte); cursor: pointer; }
.consentement input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.mention { margin: 0; font-size: 13px; line-height: 1.45; color: var(--texte-2); }
.mention a { color: var(--accent); }
.erreur { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FDECEC; color: #8A1C1C; font-size: 14px; line-height: 1.4; }
.bouton { height: 56px; border: none; border-radius: 14px; background: var(--accent); color: #FFFFFF; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.bouton[aria-disabled="true"] { background: #E5E7EB; color: #4B5563; cursor: default; }
.bouton:focus-visible { outline: 2px solid var(--texte); outline-offset: 2px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.coche { width: 76px; height: 76px; border-radius: 38px; background: var(--accent-doux); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.pied { font-size: 12px; color: #5B616B; text-align: center; padding: 16px 24px 24px; }
