/* PBToolboxAI — site de vente (ébauche). Statique, sans dépendance.
   Palette alignée sur le thème "fluent" du produit. */
:root {
    --accent: #0f6cbd;
    --accent-dark: #0a4c86;
    --ink: #1b1b1f;
    --muted: #5b5b66;
    --line: #e3e6ea;
    --bg: #ffffff;
    --bg-soft: #f4f7fb;
    --ok: #107c41;
    --radius: 12px;
    --maxw: 1080px;
    font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}

/* Bascule de langue : on ne fait que MASQUER ce qui n'est pas la langue active.
   Jamais de regle qui affiche : chaque element garde ainsi son display naturel
   (span en ligne, li en liste, p en bloc) sans qu'on ait a le redeclarer. */
html[lang="fr"] [data-lang]:not([data-lang="fr"]),
html[lang="en"] [data-lang]:not([data-lang="en"]),
html[lang="de"] [data-lang]:not([data-lang="de"]),
html[lang="it"] [data-lang]:not([data-lang="it"]),
html[lang="es"] [data-lang]:not([data-lang="es"]),
html[lang="pt"] [data-lang]:not([data-lang="pt"]) { display: none !important; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* En-tête */
header.site {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
header.site .bar { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { font-weight: 700; font-size: 20px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); display: inline-block; }
nav.main { display: flex; gap: 20px; margin-left: 10px; }
nav.main a { color: var(--muted); font-weight: 500; }
nav.main a:hover, nav.main a.active { color: var(--ink); text-decoration: none; }
.spacer { flex: 1; }
/* Six langues ne tiennent pas dans une pilule de boutons : un select reste
   compact quel que soit le nombre, et se replie nativement sur mobile. */
select.lang-toggle {
    font: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 5px 10px; cursor: pointer;
}
select.lang-toggle:hover { color: var(--ink); border-color: var(--accent); }
.btn {
    display: inline-block; padding: 10px 18px; border-radius: 999px;
    background: var(--accent); color: #fff; font-weight: 600; border: 0; cursor: pointer;
    font: inherit; font-size: 15px;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.big { padding: 14px 26px; font-size: 16px; }
.navtoggle { display: none; border: 0; background: transparent; font-size: 24px; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(160deg, #eaf2fb 0%, #ffffff 60%); padding: 72px 0 56px; }
.hero h1 { font-size: 44px; margin: 0 0 16px; max-width: 15ch; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }

/* Sections */
section.block { padding: 64px 0; }
section.block.soft { background: var(--bg-soft); }
section.block h2 { font-size: 30px; margin: 0 0 8px; }
section.block .sub { color: var(--muted); font-size: 18px; margin: 0 0 36px; max-width: 65ch; }

/* Grilles de cartes */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; background: var(--bg);
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft);
    display: grid; place-items: center; margin-bottom: 14px; color: var(--accent); }
.card .ico svg { width: 22px; height: 22px; }

/* Liste de fonctionnalités composant */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 52px; }
/* Alternance EXPLICITE (.feat--flip) et non :nth-child(even) : la page groupe
   desormais les cartes sous des titres, et un titre glisse entre deux cartes
   changerait la parite de toutes les suivantes. La classe, elle, ne depend de
   rien d autre que de la carte. */
.feat--flip .txt { order: 2; }
.feat ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.feat ul li { margin: 6px 0; }
.feat .shot {
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
    min-height: 220px; display: grid; place-items: center; color: var(--muted);
    font-size: 14px; padding: 20px; text-align: center;
}

/* Tarifs */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--accent); box-shadow: 0 8px 30px rgba(15,108,189,0.12); position: relative; }
.tier .badge { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #fff;
    font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tier h3 { font-size: 22px; margin: 0 0 4px; }
.tier .price { font-size: 34px; font-weight: 700; margin: 12px 0 2px; }
.tier .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.tier ul { list-style: none; padding: 0; margin: 18px 0 24px; color: var(--muted); flex: 1; }
.tier ul li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); }
.tier ul li:before { content: "✓"; color: var(--ok); position: absolute; left: 0; font-weight: 700; }
.tier .btn { text-align: center; }

.note { font-size: 14px; color: var(--muted); background: #fff7e6; border: 1px solid #f0d9a0;
    border-radius: 8px; padding: 12px 16px; margin: 24px 0; }

/* Code */
pre { background: #0f172a; color: #e2e8f0; border-radius: var(--radius); padding: 18px 20px;
    overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
code { font-family: "Cascadia Code", Consolas, monospace; }

/* Formulaire */
form.contact { display: grid; gap: 14px; max-width: 560px; }
form.contact label { font-weight: 600; font-size: 14px; }
form.contact input, form.contact textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit;
}

/* Pied */
footer.site { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer.site .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }
.ph { color: #b23; font-style: italic; }   /* placeholder à remplir */

/* CTA bandeau */
.cta-band { background: linear-gradient(120deg, var(--accent), var(--accent-dark)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn { background: #fff; color: var(--accent); }
.cta-band .btn:hover { background: #eef4fb; }

@media (max-width: 860px) {
    .grid.cols-3, .grid.cols-2, .tiers { grid-template-columns: 1fr; }
    .feat { grid-template-columns: 1fr; }
    .feat--flip .txt { order: 0; }
    .hero h1 { font-size: 34px; }
}

/* Formulaires : contact, lettre des versions -- et le sondage des composants,
   retire de la page pour l'instant, qui reviendra avec le meme balisage. */
form.contact select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
form.contact h3 { margin: 0; }
.form-done { padding: 18px 20px; border-radius: 10px; background: #eef7ee; border: 1px solid #bfe0bf; color: #1c6b2e; font-weight: 600; }
/* Et son contraire : un envoi qui echoue doit se VOIR, sinon le visiteur repart
   en croyant nous avoir ecrit. Le formulaire, lui, reste en place. */
.form-oops { padding: 14px 16px; border-radius: 10px; background: #fdeeee; border: 1px solid #e9bcbc; color: #8c2020; font-weight: 600; }

/* La barre de navigation deborde AVANT le reste de la mise en page : en allemand,
   en italien ou en portugais les libelles sont plus longs qu'en francais. Le menu
   se replie donc a son propre seuil, sans entrainer les grilles avec lui. */
@media (max-width: 1020px) {
    nav.main { display: none; position: absolute; top: 62px; left: 0; right: 0; background: #fff;
        flex-direction: column; padding: 10px 20px; border-bottom: 1px solid var(--line); }
    nav.main.open { display: flex; }
    .navtoggle { display: block; }
}

/* Sur un telephone, l'en-tete debordait par la droite : le logo, le selecteur de
   langue et le bouton d'achat ne tiennent pas cote a cote a 375 px avec les marges
   du bureau. On resserre, on ne retire rien -- le bouton d'achat est justement ce
   qu'il ne faut pas pousser hors de l'ecran. */
@media (max-width: 560px) {
    header.site .wrap { padding: 0 14px; }
    header.site .bar { gap: 8px; }
    .brand { font-size: 17px; }
    /* Le selecteur se coupe, et c'est voulu : la liste deroulante native montre
       les six langues en entier de toute facon. */
    select.lang-toggle { max-width: 72px; padding: 5px 5px; }
    header.site .btn { padding: 8px 12px; font-size: 14px; }
}

/* La liste des composants de l'accueil : des NOMS, donc pas de colonnes a tenir
   ni de traduction a suivre -- elles s'enroulent et se centrent toutes seules. */
.chips { list-style: none; margin: 28px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li { border: 1px solid var(--line); border-radius: 999px; background: #fff;
    padding: 8px 16px; font-weight: 600; }

/* Pastille GRATUIT : elle marque, dans la liste des composants, les quatre de
   l edition communaute. Verte comme une bonne nouvelle, discrete comme une
   mention -- ce n est pas un bouton. */
.free-pill { display: inline-block; margin-inline-start: 8px; vertical-align: middle;
    background: #eef7ee; color: #1c6b2e; border: 1px solid #bfe0bf;
    font-size: 11px; font-weight: 700; letter-spacing: .02em;
    padding: 2px 8px; border-radius: 999px; }

/* Bandeau de l edition communaute (page Tarifs) : une offre, pas une carte de
   prix -- elle precede la grille au lieu d y entrer et d en casser les 3 colonnes. */
.freeband { border: 1px solid #bfe0bf; background: #f6fbf6; border-radius: var(--radius);
    padding: 26px 28px; margin: 0 0 28px; }
.freeband h3 { margin: 0 0 6px; font-size: 22px; }
.freeband .comps { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; padding: 0; list-style: none; }
.freeband .comps li { background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 14px; font-weight: 600; }

/* Historique des versions : deux cartes, celle qui est sortie et celle qui vient.
   La pastille dit laquelle est laquelle sans avoir a lire la date. */
.release .comps { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.release .comps li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
    padding: 5px 12px; font-size: 14px; font-weight: 600; }
.release h3 { margin: 0 0 8px; }
.release .rel-when { font-weight: 400; color: var(--muted); }
.release .rel-note { margin-top: 16px; font-size: 14px; }
.rel-tag { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.rel-out { background: #eef7ee; color: #1c6b2e; border: 1px solid #bfe0bf; }
.rel-next { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
/* Case a cocher du consentement : la case ne doit pas s'etirer sur la largeur
   comme les autres champs du formulaire. */
form.contact label.check { display: flex; gap: 10px; align-items: flex-start;
    font-weight: 400; font-size: 14px; color: var(--muted); }
form.contact label.check input { width: auto; flex: 0 0 auto; margin-top: 3px; }
form.contact.newsletter { max-width: 640px; margin-top: 32px; }

/* Emplacements de clip : le placeholder tient la place tant qu'aucun fichier n'est
   depose ; des que la video charge, .has-clip le masque et la video prend le cadre.
   Rien a retoucher dans le HTML le jour ou le clip arrive. */
.shot-slot { position: relative; }
.shot-slot.has-clip .shot { display: none; }
.shot-slot video, .shot-slot img {
    display: block; width: 100%; height: auto;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
}

/* Table des versions (page Téléchargements). Une version livrée garde sa
   démonstration et son manuel : cette table est faite pour s'allonger d'une
   ligne à chaque livraison, pas pour rester à une seule. */
table.versions { width: 100%; border-collapse: collapse; font-size: 15px; }
table.versions th {
    text-align: left; font-weight: 600; font-size: 13px; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--muted);
    padding: 0 14px 10px 0; border-bottom: 1px solid var(--line);
}
table.versions td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
table.versions tr:last-child td { border-bottom: none; }
/* Pastille « actuelle » : elle doit se lire comme une étiquette, pas comme un
   lien -- d'où la couleur pleine plutôt que l'accent du texte cliquable. */
.tag {
    display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
    background: var(--bg-soft); border: 1px solid var(--line);
    font-size: 12px; font-weight: 600; color: var(--muted); text-transform: lowercase;
}
/* Mention discrète sous un bouton ou une table : poids du fichier, prérequis. */
.fine { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

/* Message d'après-achat (page Tarifs). La caisse FastSpring se referme sur sa
   propre page de fin, qui n'accepte aucun texte à nous : c'est donc ici qu'on
   dit à l'acheteur ce qui va se passer ensuite. Masqué tant que la commande
   n'est pas passée. */
.apres-achat { position: fixed; inset: 0; z-index: 50; display: none; place-items: center;
    background: rgba(27, 27, 31, 0.55); padding: 20px; }
.apres-achat.on { display: grid; }
.apres-achat .boite { background: var(--bg); border-radius: var(--radius); max-width: 520px;
    padding: 32px 34px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25); border-top: 4px solid var(--ok); }
.apres-achat h3 { margin: 0 0 12px; font-size: 22px; }
.apres-achat p { margin: 0 0 10px; color: var(--muted); }
.apres-achat .btn { margin-top: 16px; }
