/* ============================================================
   Team Helper Tools, feuille de style
   Thème intermédiaire : gris bleuté clair, moins blanc que la
   v1, moins sombre que la v2. Accent orange #ef9400 conservé.
   ============================================================ */
:root {
  --bg: #e6eaf0;
  --carte: #f4f6f9;
  --carte2: #ffffff;
  --ligne: #d8dde5;
  --texte: #232d3a;
  --doux: #5c6a7d;
  --orange: #ef9400;
  --orange2: #d97e00;
  --orange-fonce: #c26d00;
  --degrade: linear-gradient(135deg, #ffa940, #ef9400 55%, #d97e00);
  --vert: #22c55e;
  --rouge: #ef4444;
  --rayon: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--texte);
  line-height: 1.5;
}

.conteneur { max-width: 940px; margin: 0 auto; padding: 0 20px; }

/* ---------------- Header ---------------- */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 246, 249, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne);
}
.entete-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); }
.logo-badge {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--degrade);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff;
  box-shadow: 0 4px 12px rgba(239, 148, 0, .35);
}
.logo-texte { font-weight: 800; font-size: 17px; line-height: 1.1; display: flex; flex-direction: column; }
.logo-texte small { font-size: 11px; font-weight: 600; color: var(--orange-fonce); letter-spacing: 2px; text-transform: uppercase; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--doux); text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 7px 12px; border-radius: 20px; transition: .2s;
}
.nav a:hover { color: var(--orange-fonce); background: #ffe9c9; }
.nav a.prive { color: var(--orange-fonce); border: 1px solid #f2c98c; }
.nav a.prive:hover { background: #ffe9c9; border-color: var(--orange); }

/* ---------------- Hero ---------------- */
.hero { background: var(--degrade); color: #fff; text-align: center; padding: 54px 20px 48px; border-bottom: 4px solid #d97e00; }
.hero-badge {
  display: inline-block; background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 5px 16px; border-radius: 20px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.5px; }
.hero-sous { margin-top: 10px; font-size: clamp(15px, 2vw, 17px); opacity: .95; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------------- Sections pleine largeur ---------------- */
.section-outil { padding: 46px 0 54px; border-bottom: 1px solid var(--ligne); scroll-margin-top: 74px; }
.section-outil:last-of-type { border-bottom: none; }
.section-num {
  font-size: 64px; font-weight: 800; line-height: 1;
  color: #d97e00; opacity: .9;
  margin-bottom: 6px; user-select: none;
}
.section-entete { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.section-entete .icone {
  width: 52px; height: 52px; border-radius: 14px;
  background: #ffe9c9;
  border: 1px solid #f2c98c;
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.section-entete h2 { font-size: 22px; font-weight: 800; }
.section-entete p { font-size: 13.5px; color: var(--doux); margin-top: 2px; }
.section-corps {
  background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 26px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 1px 3px rgba(35, 45, 58, .06);
}

/* ---------------- Champs & boutons ---------------- */
input[type="text"], input[type="url"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ligne); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; color: var(--texte); background: var(--carte2);
  outline: none; transition: border .2s;
}
input[type="text"]:focus, input[type="url"]:focus, textarea:focus, select:focus { border-color: var(--orange); }
textarea { resize: vertical; min-height: 150px; }
select { cursor: pointer; width: auto; }
input[type="range"] { accent-color: var(--orange); }
input[type="color"] { width: 46px; height: 34px; padding: 2px; border: 1px solid var(--ligne); border-radius: 8px; cursor: pointer; background: var(--carte2); }

.btn {
  border: 1px solid var(--ligne); background: var(--carte2); color: var(--texte);
  padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; transition: .2s;
}
.btn:hover { border-color: var(--orange); color: var(--orange-fonce); }
.btn-principal { background: var(--degrade); border: none; color: #fff; box-shadow: 0 4px 14px rgba(239, 148, 0, .35); }
.btn-principal:hover { color: #fff; filter: brightness(1.07); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-mini { padding: 6px 9px; font-size: 13px; border-radius: 8px; }
.ligne-bouton { display: flex; justify-content: flex-end; }

.champ-mdp { display: flex; gap: 10px; }
.champ-mdp input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 16px; letter-spacing: .5px; }
.champ-mdp .btn { flex-shrink: 0; }

.reglages { display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 20px; }
.range { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--doux); }
.range strong { color: var(--texte); }
.case { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.case input { accent-color: var(--orange); width: 16px; height: 16px; }

/* ---------------- Force du mot de passe ---------------- */
.force { display: flex; align-items: center; gap: 10px; }
.force-barre { flex: 1; height: 8px; border-radius: 6px; background: #e0e4ea; overflow: hidden; }
.force-barre span { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .3s, background .3s; }
.force-texte { font-size: 12px; color: var(--doux); min-width: 70px; text-align: right; }
.faible .force-barre span { background: var(--rouge); width: 33%; }
.moyen .force-barre span { background: #f59e0b; width: 66%; }
.fort .force-barre span { background: var(--vert); width: 100%; }

/* ---------------- Compteur ---------------- */
.stats-compteur { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat {
  background: var(--bg); border: 1px solid var(--ligne); border-radius: 10px;
  padding: 12px 8px; text-align: center;
}
.stat strong { display: block; font-size: 21px; font-weight: 800; color: var(--orange-fonce); }
.stat span { font-size: 11.5px; color: var(--doux); }
.note { font-size: 12.5px; color: var(--doux); }

/* ---------------- Convertisseur multi-images ---------------- */
.dropzone {
  border: 2px dashed #b9c2cf; border-radius: 12px; padding: 30px 14px;
  text-align: center; cursor: pointer; transition: .2s; display: block;
  background: var(--bg);
}
.dropzone strong { display: block; font-size: 15px; }
.dropzone span { font-size: 12.5px; color: var(--doux); }
.dropzone:hover, .dropzone.survol { border-color: var(--orange); background: #ffe9c9; }

.conv-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.conv-item {
  position: relative; background: var(--bg); border: 1px solid var(--ligne);
  border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px;
}
.conv-item img {
  width: 100%; height: 96px; object-fit: contain; border-radius: 8px;
  background: #ffffff; border: 1px solid var(--ligne);
}
.conv-item-infos { font-size: 11px; color: var(--doux); line-height: 1.3; word-break: break-all; }
.conv-item-infos small { display: block; color: #7a8698; }
.conv-item .conv-actions { display: flex; gap: 6px; }
.conv-item .btn-mini { flex: 1; padding: 5px 4px; font-size: 12px; }

.conv-infos { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--ligne); padding-top: 18px; }
.conv-format-label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--doux); }
.conv-format-label select { flex-shrink: 0; }

/* ---------------- QR code ---------------- */
.qr-ligne { display: flex; gap: 24px; flex-wrap: wrap; }
.qr-form { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 250px; }
.qr-form label { font-size: 12.5px; font-weight: 600; color: var(--doux); display: flex; flex-direction: column; gap: 4px; }
.qr-couleurs { display: flex; gap: 16px; flex-wrap: wrap; }
.qr-sortie { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.qr-sortie canvas {
  border: 1px solid var(--ligne); border-radius: 10px;
  max-width: 240px; height: auto; background: #ffffff;
}

/* ---------------- Footer ---------------- */
.pied { border-top: 1px solid var(--ligne); background: #dfe3ea; margin-top: 10px; }
.pied .conteneur { padding: 26px 20px; text-align: center; font-size: 13.5px; color: var(--doux); }
.pied strong { color: var(--texte); }
.pied-note { margin-top: 6px; font-size: 12px; color: #7a8698; }

/* ---------------- Mobile ---------------- */
@media (max-width: 640px) {
  .entete-inner { flex-direction: column; gap: 10px; }
  .nav { justify-content: center; }
  .section-outil { padding: 34px 0 42px; }
  .section-corps { padding: 18px; }
  .qr-ligne { flex-direction: column; }
  .ligne-bouton { justify-content: stretch; }
  .ligne-bouton .btn { width: 100%; }
}
