/* ==========================================================================
   COULEURS, RYTHME DES ANIMATIONS ET RÉGLAGES — identiques à litaen.com
   ========================================================================== */
:root {
  /* Palette d'origine */
  --bleu: #0986C0;
  --bleu-ciel: #7AC7F1;
  --encre: #1F2732;
  --texte: #444444;
  --orange: #FF8F00;

  /* Nuances dérivées */
  --bleu-fonce: #0A6E9E;
  --bleu-tres-fonce: #075278;
  --orange-fonce: #E67F00;
  --bleu-pale: #EEF7FD;
  --fond-teinte: #F5FAFD;
  --bordure: #E4EEF5;
  --bordure-forte: #CFE3F0;
  --champ: #D5E2EC;
  --gris-clair: #F2F6F9;
  --gris-moyen: #5B6673;
  --texte-sur-sombre: #C9D3DE;
  --ligne-sombre: #3A4757;
  --encre-claire: #26303D;
  --papier: #FDFDFC;
  --quadrillage: rgba(122, 199, 241, .18);
  --succes: #1B7F4B;
  --erreur: #B42318;
  --blanc: #FFFFFF;

  /* Typographie */
  --police-titre: "Montserrat", system-ui, sans-serif;
  --police-texte: "Poppins", system-ui, sans-serif;

  /* Mise en page */
  --largeur: 1200px;
  --gouttiere: 20px;
  --rayon: 20px;
  --hauteur-entete: 68px;

  /* Rythme des animations */
  --duree-rapide: .2s;
  --duree: .45s;
  --duree-lente: .8s;
  --duree-blob: 22s;
  --decalage: .08s;
  --distance-apparition: 24px;
  --ease-sortie: cubic-bezier(.16, 1, .3, 1);
  --ease-douce: cubic-bezier(.65, 0, .35, 1);
}

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--police-texte); font-size: 1rem; line-height: 1.6; color: var(--texte); background: var(--blanc); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.no-scroll { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--bleu-fonce); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--police-titre); color: var(--encre); margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
section[id] { scroll-margin-top: calc(var(--hauteur-entete) + 8px); }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--encre); color: var(--blanc); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: var(--blanc); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.noscript { padding: 40px 20px; }

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 20px; border-radius: 999px; border: 0; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform var(--duree-rapide) var(--ease-sortie), background-color var(--duree-rapide), color var(--duree-rapide); white-space: nowrap; }
.btn-primary { background: var(--bleu-fonce); color: var(--blanc); }
.btn-shop { background: var(--orange); color: var(--encre); }
.btn-ghost { background: var(--blanc); color: var(--encre); border: 1.5px solid var(--bordure-forte); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--bordure-forte); background: var(--blanc); color: var(--encre); cursor: pointer; }
.link-to-qr { background: none; border: 0; padding: 8px 0; color: var(--bleu-fonce); font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 40; }
/* flou sur un pseudo-élément : sinon le menu mobile (fixed) serait enfermé dans l'en-tête */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--bordure); }
body.no-scroll .site-header::before { background: var(--blanc); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--hauteur-entete); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-logo { width: 38px; height: 38px; transition: transform var(--duree-lente) var(--ease-sortie); }
.brand-name { font-family: var(--police-titre); font-weight: 800; font-size: 1.15rem; color: var(--encre); letter-spacing: .02em; }
.brand-tag { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bleu-fonce); background: var(--bleu-pale); padding: 3px 8px; border-radius: 999px; }
.burger { position: relative; width: 20px; height: 14px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--duree) var(--ease-sortie), opacity var(--duree-rapide); }
.burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { top: 6px; } .burger span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.main-nav {
  position: fixed; inset: var(--hauteur-entete) 0 0 0; z-index: 39; background: var(--blanc); padding: 16px var(--gouttiere) 32px;
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--duree) var(--ease-sortie), transform var(--duree) var(--ease-sortie), visibility 0s var(--duree);
}
.main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--bordure); font-family: var(--police-titre); font-weight: 700; font-size: 1.6rem; color: var(--encre); text-decoration: none; }
.nav-list a[aria-current] { color: var(--bleu-fonce); }
.nav-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
@media (min-width: 960px) {
  :root { --gouttiere: 32px; }
  .menu-toggle { display: none; }
  .main-nav { position: static; padding: 0; background: none; overflow: visible; flex-direction: row; align-items: center; gap: 24px; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav-list { display: flex; gap: 4px; }
  .nav-list a { border: 0; padding: 8px 14px; font-family: var(--police-texte); font-weight: 500; font-size: .95rem; border-radius: 999px; transition: background-color var(--duree-rapide), color var(--duree-rapide); }
  .nav-list a[aria-current] { background: var(--bleu-pale); }
  .nav-actions { flex-direction: row; margin: 0; gap: 8px; }
  .nav-actions .btn { min-height: 40px; padding: 9px 16px; font-size: .9rem; }
}

/* ==========================================================================
   Héro
   ========================================================================== */
.hero { position: relative; overflow: visible; isolation: isolate; }
body { position: relative; }
main { overflow-x: clip; }
.hero-blobs { position: absolute; inset: -20% -10% -40%; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 45%, transparent 85%); mask-image: linear-gradient(#000 45%, transparent 85%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.blob-1 { width: 40vmax; height: 40vmax; left: 55%; top: -25%; background: var(--bleu-ciel); opacity: .45; animation: derive-1 var(--duree-blob) var(--ease-douce) infinite alternate; }
.blob-2 { width: 26vmax; height: 26vmax; left: -8%; top: 20%; background: var(--bleu-pale); opacity: .9; animation: derive-2 calc(var(--duree-blob) * 1.2) var(--ease-douce) infinite alternate; }
.blob-3 { width: 18vmax; height: 18vmax; left: 78%; top: 50%; background: var(--orange); opacity: .14; animation: derive-1 calc(var(--duree-blob) * .9) var(--ease-douce) infinite alternate-reverse; }
@keyframes derive-1 { to { transform: translate3d(-12%, 10%, 0) scale(1.1); } }
@keyframes derive-2 { to { transform: translate3d(16%, -10%, 0) scale(.92); } }
.hero .container { padding-top: 40px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 20px; }
.badge { align-self: flex-start; background: rgba(255, 255, 255, .85); color: var(--bleu-fonce); border: 1px solid var(--bordure-forte); font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.hero-title { font-weight: 800; font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); letter-spacing: -.02em; max-width: 18ch; }
.hero-title em { font-style: normal; color: var(--bleu); }
.hero-lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 56ch; }
.hero-note { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--gris-moyen); max-width: 62ch; }
.hero-note svg { flex: none; color: var(--succes); margin-top: 2px; }
@media (min-width: 960px) { .hero .container { padding-top: 80px; padding-bottom: 56px; gap: 22px; } }

/* ==========================================================================
   Sections outils
   ========================================================================== */
.section { padding: 56px 0; position: relative; }
.section-tint { background: var(--fond-teinte); border-block: 1px solid var(--bordure); }
.eyebrow { display: block; color: var(--bleu-fonce); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.tool-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.tool-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 700; display: flex; align-items: center; gap: 12px; }
.tool-head h2 .t-ico { width: 44px; height: 44px; border-radius: 13px; background: var(--bleu-pale); color: var(--bleu); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tool-head p { max-width: 60ch; }
@media (min-width: 960px) { .section { padding: 88px 0; } .tool-head { margin-bottom: 32px; } }

/* Plan de travail : réglages à gauche, résultat à droite */
.bench { display: grid; gap: 20px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 24px; padding: 18px; box-shadow: 0 24px 50px -36px rgba(9, 134, 192, .45); }
.bench-form { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bench-out { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bench-single { display: flex; flex-direction: column; max-width: 820px; }
@media (min-width: 900px) { .bench { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 32px; } }

/* Papier quadrillé (rappel du croquis du site principal) */
.paper {
  position: relative; border-radius: 18px; border: 1px solid var(--bordure);
  background-color: var(--papier);
  background-image: linear-gradient(var(--quadrillage) 1px, transparent 1px), linear-gradient(90deg, var(--quadrillage) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px;
}

/* Champs */
.lbl { display: block; font-size: .85rem; font-weight: 600; color: var(--encre); margin-top: 10px; margin-bottom: 4px; }
.inp { display: block; width: 100%; min-height: 46px; padding: 10px 14px; color: var(--encre); background: var(--blanc); border: 1.5px solid var(--champ); border-radius: 12px; transition: border-color var(--duree-rapide), box-shadow var(--duree-rapide); }
textarea.inp { resize: vertical; min-height: 80px; }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230A6E9E' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.inp:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(9, 134, 192, .15); }
.inp[aria-invalid="true"] { border-color: var(--erreur); }
.inp-color { padding: 4px; height: 46px; cursor: pointer; }
.inp-result { font-weight: 600; color: var(--bleu-fonce); background: var(--bleu-pale); border-color: var(--bordure-forte); }
input[type="file"].inp { padding: 9px 10px; font-size: .88rem; }
.row-2 { display: grid; gap: 0 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .9rem; color: var(--encre); cursor: pointer; margin-top: 8px; }
.check input { width: 20px; height: 20px; accent-color: var(--bleu-fonce); }
.check-wrap .hint { margin-top: -6px; }
.hint { font-size: .8rem; color: var(--gris-moyen); }
.form-error { color: var(--erreur); font-size: .88rem; }
.form-error:empty { display: none; }
.range { width: 100%; accent-color: var(--bleu-fonce); min-height: 32px; }
.copy-row { display: flex; gap: 8px; }
.copy-row .inp { flex: 1; min-width: 0; }
.out-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Sélecteur à onglets (type de QR) */
.segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--gris-clair); border-radius: 14px; margin-bottom: 6px; }
.segmented button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--gris-moyen); font-weight: 600; font-size: .85rem; cursor: pointer; padding: 6px 4px; transition: background-color var(--duree-rapide), color var(--duree-rapide); }
.segmented button[aria-checked="true"] { background: var(--blanc); color: var(--bleu-fonce); box-shadow: 0 2px 8px -4px rgba(31, 39, 50, .35); }

/* Personnaliser */
.custom { margin-top: 14px; border: 1px solid var(--bordure); border-radius: 14px; }
.custom summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 600; color: var(--encre); display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.custom summary::-webkit-details-marker { display: none; }
.custom summary::after { content: "+"; font-size: 1.3rem; color: var(--bleu); transition: transform var(--duree) var(--ease-sortie); }
.custom[open] summary::after { transform: rotate(45deg); }
.custom-body { padding: 0 14px 14px; }

/* QR */
.qr-paper { display: flex; align-items: center; justify-content: center; padding: 28px; aspect-ratio: 1 / 1; max-height: 420px; }
.qr-paper canvas { width: min(100%, 300px); height: auto; aspect-ratio: 1 / 1; border-radius: 6px; box-shadow: 0 16px 30px -20px rgba(31, 39, 50, .5); transition: transform var(--duree) var(--ease-sortie); }
.qr-paper.is-updated canvas { animation: rebond var(--duree) var(--ease-sortie); }
@keyframes rebond { 40% { transform: scale(.97); } }
.contrast-warn { font-size: .85rem; color: #8A4B00; background: #FFF4E5; border-radius: 10px; padding: 8px 12px; }

/* Lien court */
.link-form { display: flex; flex-direction: column; }
.link-row { display: flex; flex-direction: column; gap: 10px; }
.link-result { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--bordure-forte); display: flex; flex-direction: column; gap: 6px; animation: monte var(--duree) var(--ease-sortie); }
@media (min-width: 640px) { .link-row { flex-direction: row; } .link-row .inp { flex: 1; } }

/* Compression */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 170px; padding: 24px; border: 2px dashed var(--bordure-forte); border-radius: 18px; background: var(--fond-teinte); cursor: pointer; transition: border-color var(--duree-rapide), background-color var(--duree-rapide); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 3px solid var(--bleu); outline-offset: 2px; }
.drop.is-over { border-color: var(--bleu); background: var(--bleu-pale); }
.drop-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--blanc); color: var(--bleu); display: flex; align-items: center; justify-content: center; }
.drop-text { font-weight: 600; color: var(--encre); }
.files-paper { min-height: 220px; padding: 12px; display: flex; flex-direction: column; }
.empty { margin: auto; text-align: center; color: var(--gris-moyen); font-size: .9rem; padding: 20px; }
.files { display: flex; flex-direction: column; gap: 8px; }
.file { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 14px; padding: 8px 10px 8px 8px; animation: monte var(--duree) var(--ease-sortie) both; }
.file img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--gris-clair); }
.file-name { font-weight: 600; color: var(--encre); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: .8rem; color: var(--gris-moyen); font-variant-numeric: tabular-nums; }
.gain { font-weight: 600; color: var(--succes); }
.gain.neg { color: #8A4B00; }
.file .btn { min-height: 40px; padding: 8px 14px; font-size: .85rem; }
.file.is-busy .file-meta::after { content: " · compression…"; }
.total { font-size: .9rem; color: var(--encre); font-variant-numeric: tabular-nums; margin-right: auto; }

/* Sondages : création */
.poll-options ol { display: flex; flex-direction: column; gap: 8px; counter-reset: opt; }
.opt-row { display: flex; gap: 8px; align-items: center; counter-increment: opt; }
.opt-row::before { content: counter(opt); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bleu-pale); color: var(--bleu-fonce); font-size: .78rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.opt-row .inp { flex: 1; }
.opt-del { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--bordure); background: var(--blanc); color: var(--gris-moyen); cursor: pointer; font-size: 1.1rem; }
.btn-add { align-self: flex-start; margin-top: 8px; background: none; border: 1.5px dashed var(--bordure-forte); color: var(--bleu-fonce); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .88rem; cursor: pointer; min-height: 40px; }
.btn-add[disabled] { opacity: .5; cursor: not-allowed; }
#poll-btn { margin-top: 16px; }
.poll-paper { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.preview-tag { align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-moyen); background: var(--blanc); border: 1px solid var(--bordure); padding: 3px 9px; border-radius: 999px; }
.poll-q { font-size: 1.35rem; font-weight: 700; overflow-wrap: anywhere; }
.pv-options { display: flex; flex-direction: column; gap: 8px; }
.pv-options li { display: flex; align-items: center; gap: 10px; background: var(--blanc); border: 1.5px solid var(--bordure); border-radius: 12px; padding: 10px 14px; color: var(--encre); overflow-wrap: anywhere; animation: monte var(--duree) var(--ease-sortie) both; }
.pv-options li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bordure-forte); }
.pv-options li.vide { color: var(--gris-moyen); font-style: italic; }
.poll-done { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: #EAF7EF; border: 1px solid #BFE5CD; animation: monte var(--duree) var(--ease-sortie); }
.done-title { font-weight: 700; color: var(--succes); display: flex; align-items: center; gap: 8px; }
.done-title::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: var(--succes); color: var(--blanc); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }

/* Sondages : page de vote */
.poll-page { padding: 32px 0 64px; }
.poll-page .container { display: grid; gap: 20px; max-width: 980px; }
.back { font-weight: 600; text-decoration: none; font-size: .9rem; }
.poll-card { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 50px -36px rgba(9, 134, 192, .45); }
.poll-card .poll-q { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.poll-meta { font-size: .85rem; color: var(--gris-moyen); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.poll-meta .live { color: var(--succes); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.poll-meta .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.poll-meta .ended { color: var(--erreur); font-weight: 600; }
@keyframes pulse { 50% { opacity: .3; } }
.poll-desc { white-space: pre-line; max-width: 65ch; }
.vote-options { display: flex; flex-direction: column; gap: 10px; }
.vote-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--bordure-forte); border-radius: 14px; cursor: pointer; color: var(--encre); font-weight: 500; transition: border-color var(--duree-rapide), background-color var(--duree-rapide); overflow-wrap: anywhere; }
.vote-opt input { width: 20px; height: 20px; flex: none; accent-color: var(--bleu-fonce); }
.vote-opt:has(input:checked) { border-color: var(--bleu); background: var(--bleu-pale); }
.vote-opt:has(input:focus-visible) { outline: 3px solid var(--bleu); outline-offset: 2px; }
.results { display: flex; flex-direction: column; gap: 14px; }
.res-row { display: flex; flex-direction: column; gap: 6px; }
.res-top { display: flex; justify-content: space-between; gap: 12px; color: var(--encre); font-weight: 500; }
.res-top span:first-child { overflow-wrap: anywhere; }
.res-top span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.res-bar { height: 12px; border-radius: 999px; background: var(--gris-clair); overflow: hidden; }
.res-bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--bleu); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform var(--duree-lente) var(--ease-sortie); }
.res-row.is-lead .res-bar span { background: var(--bleu-fonce); }
.res-row.is-mine .res-top span:first-child::after { content: " · votre choix"; color: var(--bleu-fonce); font-size: .82rem; }
.results-total { font-size: .88rem; color: var(--gris-moyen); font-variant-numeric: tabular-nums; }
.share { background: var(--fond-teinte); border: 1px solid var(--bordure); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; align-self: start; }
.share h2 { font-size: 1.05rem; }
.share .copy-row { flex-direction: column; }
.share-qr { align-self: flex-start; padding: 14px; }
.share-qr canvas { width: 150px; height: 150px; }
@media (min-width: 900px) { .poll-page { padding: 48px 0 96px; } .poll-page .container { grid-template-columns: minmax(0, 1fr) 280px; } .back { grid-column: 1 / -1; } .poll-card { padding: 36px; } }

/* Page d'avertissement avant redirection d'un lien court */
.interstitiel { background: var(--fond-teinte); }
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px var(--gouttiere); }
.gate-brand { margin: 0; }
.gate-card { width: 100%; max-width: 560px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 50px -36px rgba(9, 134, 192, .45); }
.gate-card h1 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); }
.gate-card .eyebrow { margin: 0; }
.gate-code { text-transform: none; letter-spacing: .02em; }
.gate-dest { border: 1.5px solid var(--bordure-forte); background: var(--papier); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.gate-host { font-size: 1.3rem; color: var(--encre); overflow-wrap: anywhere; line-height: 1.3; }
.gate-host strong { font-weight: 700; }
.gate-sub { color: var(--gris-moyen); }
.gate-url { font-size: .82rem; color: var(--gris-moyen); overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 4.8em; overflow: hidden; }
.gate-flags { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.gate-flags li { padding-left: 22px; position: relative; }
.gate-flags li::before { content: "i"; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--bleu-pale); color: var(--bleu-fonce); font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gate-flags li.warn { color: #8A4B00; }
.gate-flags li.warn::before { content: "!"; background: #FFF4E5; color: #8A4B00; }
.gate-actions .btn { white-space: normal; text-align: center; }
.gate-report { margin: 0; }
.gate-thanks { font-size: .9rem; color: var(--succes); font-weight: 600; }
.gate-foot { font-size: .82rem; color: var(--gris-moyen); text-align: center; }
.gate-foot a { color: inherit; }
@media (min-width: 640px) { .gate-card { padding: 34px 36px; } }

/* 404 */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.page-404 h1 { font-size: 2rem; }

/* ==========================================================================
   Accueil : cartes des outils
   ========================================================================== */
.home-tools { padding-top: 0; }
.tool-cards { display: grid; gap: 14px; }
.tool-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 20px; border-radius: 22px; background: var(--blanc); border: 1px solid var(--bordure); text-decoration: none; color: var(--encre);
  transition: transform var(--duree) var(--ease-sortie), border-color var(--duree-rapide), box-shadow var(--duree) var(--ease-sortie);
}
.tc-ico { width: 52px; height: 52px; border-radius: 15px; background: var(--bleu-pale); color: var(--bleu); display: flex; align-items: center; justify-content: center; transition: background-color var(--duree-rapide), color var(--duree-rapide); }
.tc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bleu-fonce); }
.tc-title { font-family: var(--police-titre); font-weight: 700; font-size: 1.2rem; }
.tc-text { font-size: .9rem; color: var(--texte); }
.tc-go { font-size: 1.3rem; color: var(--gris-moyen); transition: transform var(--duree) var(--ease-sortie), color var(--duree-rapide); }
@media (min-width: 760px) {
  .tool-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .tool-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; padding: 28px; gap: 18px; min-height: 230px; align-items: start; }
  .tool-card .tc-ico { width: 60px; height: 60px; border-radius: 18px; }
  .tool-card .tc-body { grid-column: 1 / -1; align-self: end; }
  .tool-card .tc-go { grid-column: 2; grid-row: 1; }
  .tool-card .tc-title { font-size: 1.45rem; }
}

/* Pages d'outil */
.tool-page { padding-top: 32px; }
.tool-page .tool-head h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 14px; }
.tool-page .tool-head h1 .t-ico { width: 50px; height: 50px; border-radius: 15px; background: var(--bleu-pale); color: var(--bleu); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.other-tools { padding-bottom: 64px; }
.other-tools .eyebrow { font-family: var(--police-texte); }
.mini-cards { display: grid; gap: 10px; }
.mini-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px;
  border-radius: 16px; background: var(--fond-teinte); border: 1px solid var(--bordure); text-decoration: none; color: var(--encre);
  transition: transform var(--duree) var(--ease-sortie), border-color var(--duree-rapide), box-shadow var(--duree) var(--ease-sortie);
}
.mini-card .tc-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--blanc); }
.mini-card .tc-title { font-size: 1rem; }
@media (min-width: 760px) { .mini-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 960px) { .tool-page { padding-top: 56px; padding-bottom: 64px; } .other-tools { padding-bottom: 96px; } }

/* ==========================================================================
   Pied de page (informations légales intégrées)
   ========================================================================== */
.site-footer { background: var(--encre); color: var(--texte-sur-sombre); font-size: .92rem; }
.site-footer a { color: var(--texte-sur-sombre); text-decoration: none; }
.footer-grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 26px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.footer-brand .brand-name { color: var(--blanc); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ligne-sombre); display: flex; align-items: center; justify-content: center; transition: background-color var(--duree-rapide), border-color var(--duree-rapide); }
.footer-bottom { border-top: 1px solid var(--ligne-sombre); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: .84rem; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.legal-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--texte-sur-sombre); font-size: .84rem; cursor: pointer; }
.legal-toggle .chevron { display: inline-flex; transition: transform var(--duree) var(--ease-sortie); }
.legal-toggle[aria-expanded="true"] { color: var(--blanc); border-color: var(--ligne-sombre); }
.legal-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.legal-panel { background: var(--encre-claire); border: 1px solid var(--ligne-sombre); border-radius: 20px; padding: 22px 20px 26px; animation: monte var(--duree) var(--ease-sortie); }
.legal-panel:focus { outline: none; }
.legal-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; padding-right: 52px; position: relative; }
.legal-head h2 { color: var(--blanc); font-size: 1.2rem; }
.legal-maj { font-size: .8rem; color: var(--bleu-ciel); }
.legal-close { position: absolute; right: 0; top: -6px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ligne-sombre); background: transparent; color: var(--texte-sur-sombre); display: flex; align-items: center; justify-content: center; cursor: pointer; transform: rotate(180deg); }
.legal-columns { font-size: .86rem; line-height: 1.7; }
.legal-columns h3 { color: var(--blanc); font-family: var(--police-texte); font-size: .86rem; font-weight: 600; margin: 14px 0 4px; break-after: avoid; }
.legal-columns h3:first-child { margin-top: 0; }
.legal-columns p { margin-bottom: 8px; }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; padding-top: 64px; }
  .footer-bottom, .footer-legal { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .legal-panel { padding: 30px 34px 34px; }
  .legal-columns { column-count: 2; column-gap: 44px; }
  .legal-columns p { break-inside: avoid-column; }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes monte { from { opacity: 0; translate: 0 var(--distance-apparition); } to { opacity: 1; translate: none; } }
.anim .hero-fade { animation: monte var(--duree-lente) var(--ease-sortie) both; animation-delay: calc(.1s + var(--fi, 0) * var(--decalage) * 1.5); }
@supports (animation-timeline: view()) {
  .anim .reveal { animation: monte linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90; translate: -50% 0; background: var(--encre); color: var(--blanc); padding: 10px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500; box-shadow: 0 16px 30px -16px rgba(31, 39, 50, .6); animation: monte var(--duree) var(--ease-sortie); }

/* Survol : uniquement souris / pavé tactile */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--bleu-tres-fonce); }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { background: var(--bleu-tres-fonce); color: var(--blanc); }
  .btn-shop:hover { background: var(--orange-fonce); color: var(--encre); }
  .btn-ghost:hover { background: var(--bleu-pale); color: var(--bleu-fonce); }
  .btn[disabled]:hover { transform: none; }
  .brand:hover .brand-logo { transform: rotate(-10deg) scale(1.06); }
  .nav-list a:hover { color: var(--bleu-fonce); background: var(--bleu-pale); }
  .tool-card:hover, .mini-card:hover { transform: translateY(-4px); border-color: var(--bordure-forte); color: var(--encre); box-shadow: 0 24px 40px -28px rgba(9, 134, 192, .55); }
  .tool-card:hover .tc-go, .mini-card:hover .tc-go { transform: translateX(4px); color: var(--bleu-fonce); }
  .tool-card:hover .tc-ico { background: var(--bleu); color: var(--blanc); }
  .segmented button:hover { color: var(--encre); }
  .drop:hover { border-color: var(--bleu); }
  .opt-del:hover { color: var(--erreur); border-color: var(--erreur); }
  .vote-opt:hover { border-color: var(--bleu); }
  .site-footer a:hover { color: var(--bleu-ciel); }
  .socials a:hover { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }
  .legal-toggle:hover { color: var(--blanc); border-color: var(--ligne-sombre); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .anim .reveal, .anim .hero-fade { animation: none; opacity: 1; translate: none; }
  .blob { animation: none !important; }
}
.no-anim .reveal, .no-anim .hero-fade { animation: none !important; }
.no-anim .blob { animation: none !important; }
