/* ============================================================
   Team Helper Tools, feuille de style (v3 multi-pages SEO)
   Thème gris bleuté clair, accent orange #ef9400.
   v3 : grille de cartes outils (accueil), breadcrumbs,
   pages outils dédiées. 0 framework, 0 CDN.
   ============================================================ */
: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; }
.logo-img { height: 42px; width: auto; display: block; flex-shrink: 0; }
.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); }

/* ---------------- Breadcrumb (même couleur que le footer - demande 18/08) ---------------- */
.breadcrumb {
  background: #232d3a;
  padding: 14px 0;
  --bs-breadcrumb-margin-bottom: 0;  /* neutralise le 1rem Bootstrap (demande 18/08) */
  margin-bottom: 0;
}
/* Conteneur aligné à GAUCHE (pas centré) - demande Thonny 18/08 */
.breadcrumb .conteneur { max-width: none; margin: 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: #aab4c2; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "·"; margin-right: 6px; color: #5c6a7d; }
.breadcrumb a { color: #ffb45e; text-decoration: none; }
.breadcrumb a:hover { color: #ffd9a3; }
.breadcrumb [aria-current="page"] { color: #ffffff; font-weight: 600; }

/* ---------------- 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; }
.hero-cta { margin-top: 22px; }
.btn-hero {
  display: inline-block; background: #fff; color: var(--orange-fonce);
  padding: 12px 26px; border-radius: 30px; font-size: 15px; font-weight: 800;
  text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: .2s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }

/* ---------------- Intro SEO ---------------- */
.intro-seo { padding: 34px 0 8px; }
.intro-seo p {
  background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 22px 26px; font-size: 15px; color: var(--texte); line-height: 1.65;
  box-shadow: 0 1px 3px rgba(35, 45, 58, .06);
}

/* ---------------- Cartes outils (grille 3 colonnes FORCÉE) ---------------- */
/* TOUJOURS 3 cartes sur une ligne, 1 carte par colonne (choix Thonny 18/08).
   ⚠️ PIÈGE (vécu 18/08, capture réelle 2×2 puis 0px) : 1) margin sur les
   cartes + flex-basis 33.333% → débordement → wrap → 2/ligne ; 2) la carte
   NE DOIT PAS porter la classe .col (padding appliqué à l'intérieur de la
   carte, pas autour). Structure correcte : <div class="col"> (padding 20px)
   qui CONTIENT <a class="carte-outil"> (padding interne 24px). */
#outils .row, #autres-outils .row {
  display: flex !important;
  flex-wrap: wrap !important;
}
#outils .row > .col, #autres-outils .row > .col {
  flex: 0 0 33.333% !important;
  max-width: 33.333% !important;
  padding: 20px !important;
}
#outils .conteneur, #autres-outils .conteneur { max-width: 1140px; }
.carte-outil { height: 100%; }
.carte-outil {
  background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: var(--texte); transition: .2s;
  box-shadow: 0 1px 3px rgba(35, 45, 58, .06);
}
.carte-outil:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(239, 148, 0, .15); }
.carte-icone {
  width: 48px; height: 48px; border-radius: 12px;
  background: #ffe9c9; border: 1px solid #f2c98c;
  display: flex; align-items: center; justify-content: center; color: var(--orange-fonce);
}
.carte-outil h2 { font-size: 17px; font-weight: 800; }
.carte-outil p { font-size: 13px; color: var(--doux); flex: 1; }
.carte-cta { font-size: 13px; font-weight: 700; color: var(--orange-fonce); }
.carte-cta::after { content: " →"; }

/* ---------------- 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: 14px; }
.section-entete .icone {
  width: 52px; height: 52px; border-radius: 14px;
  background: #ffe9c9;
  border: 1px solid #f2c98c;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--orange-fonce);
}
.section-entete h2 { font-size: 22px; font-weight: 800; }
.section-entete p { font-size: 13.5px; color: var(--doux); margin-top: 2px; }

/* ---------------- Description SEO + fonctionnalités ---------------- */
.desc-outil { font-size: 14.5px; line-height: 1.65; color: var(--texte); margin-bottom: 12px; max-width: 820px; }
.desc-outil strong { color: var(--orange-fonce); font-weight: 700; }
.liste-fonctions {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
}
.liste-fonctions li {
  font-size: 13px; color: var(--doux);
  padding-left: 18px; position: relative;
}
.liste-fonctions li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--degrade);
}

.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;
}

/* ---------------- FAQ ---------------- */
.section-faq { padding: 50px 0 60px; background: #dfe3ea; border-top: 1px solid var(--ligne); scroll-margin-top: 74px; }
.section-faq h2 { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 24px; }
.faq-liste { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq-liste details {
  background: var(--carte2); border: 1px solid var(--ligne); border-radius: 12px;
  padding: 4px 20px; transition: border .2s;
}
.faq-liste details[open] { border-color: var(--orange); }
.faq-liste summary {
  cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--texte);
  padding: 13px 0; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after {
  content: "+"; font-size: 20px; font-weight: 700; color: var(--orange-fonce);
  flex-shrink: 0; transition: transform .2s;
}
.faq-liste details[open] summary::after { transform: rotate(45deg); }
.faq-liste details p { font-size: 13.5px; color: var(--doux); padding: 0 0 14px; line-height: 1.6; }

/* ---------------- Footer (foncé, plus sombre que le site - demande 18/08) ---------------- */
.pied { border-top: 1px solid #2c3a4e; background: #232d3a; }
.pied .conteneur { padding: 28px 20px; text-align: center; font-size: 13.5px; color: #aab4c2; }
.pied strong { color: #ffffff; }
.pied a { color: #ffb45e; text-decoration: none; font-weight: 600; }
.pied a:hover { color: #ffd9a3; text-decoration: underline; }
.pied-note { margin-top: 6px; font-size: 12px; color: #8b98a9; }

/* ---------------- 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%; }
  .hero-cta .btn-hero { width: 100%; }
  .liste-fonctions { flex-direction: column; gap: 6px; }
}
