/* Hira on the website: her page, her launcher in Découvrir and the support card (Hira web build plan 1.3, 2.2, 2.3;
   SPEC 2, 3, 5.5; docs/SITE-IDENTITY.md). Linked site-wide after sillon.css: the support card also shows on Découvrir,
   Métiers, the FAQ, Les formations, the Carte and the market pages.
   Rules kept here: the tokens of sillon.css only (no colour value of its own, no font named); a family colour only as a
   pastille; red only for the tu-es-ici ring and a pressed J'aime; blue only for links and sources; touch targets of at
   least 44 px; a 375 px phone keeps its 16 px gutter and never scrolls sideways (carousels scroll inside themselves);
   the only motion is the step line inking itself and a stop lighting up, both drawn at once under reduced motion. */

/* ---------- The page ---------- */
.hira-page{position:relative;display:flex;flex-direction:column;max-width:760px;margin:0 auto;min-width:0}
.hira-head{display:flex;align-items:center;gap:12px;margin:2px 0 10px}
.hira-title{margin:0;font-size:clamp(28px,2.6vw,40px);line-height:1}
.hira-head-actions{display:flex;gap:8px;margin-left:auto}
.hira-round{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--sillon-filet-fort);border-radius:50%;background:var(--sillon-feuille);color:var(--sillon-encre);cursor:pointer;box-shadow:var(--sillon-ombre-douce)}
.hira-round:hover{border-color:var(--sillon-encre)}
.hira-round[hidden]{display:none}
.hira-round .i{width:20px;height:20px}

/* ---------- The step line « Envies → Métiers → Diplômes → Formations » (SPEC 2.1) ---------- */
.hira-steps{margin:4px 0 16px;padding:0 2px}
.hira-steps-track{position:relative;height:26px}
.hira-steps-pencil{position:absolute;left:12.5%;right:12.5%;top:12.2px;height:1.6px;background-image:linear-gradient(90deg,var(--sillon-graphite) 0 2px,transparent 2px 7px);background-size:7px 1.6px;background-repeat:repeat-x}
.hira-steps-ink{position:absolute;left:12.5%;top:11px;width:15%;height:4px;border-radius:2px;background:var(--sillon-encre)}
.hira-steps[data-current=metiers] .hira-steps-ink{width:25%}
.hira-steps[data-current=diplomes] .hira-steps-ink{width:50%}
.hira-steps[data-current=formations] .hira-steps-ink{width:75%}
.hira-steps-ink.is-inking{animation:hira-ink var(--trace-segment) var(--ease-trace) both}
@keyframes hira-ink{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.hira-stop{position:absolute;top:13px;box-sizing:border-box;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%}
.hira-stop[data-stop=envies]{left:12.5%}
.hira-stop[data-stop=metiers]{left:37.5%}
.hira-stop[data-stop=diplomes]{left:62.5%}
.hira-stop[data-stop=formations]{left:87.5%}
.hira-stop.is-station{background:var(--sillon-feuille);border:2.4px solid var(--sillon-encre)}
.hira-stop.is-pencil{background:var(--sillon-papier);border:1.6px dashed var(--sillon-graphite)}
/* Tu es ici: a white disc, the red ring, a thin ink ring around it */
.hira-stop.is-here{width:16px;height:16px;margin:-8px 0 0 -8px;background:var(--sillon-feuille);border:4px solid var(--sillon-rouge);box-shadow:0 0 0 1.1px var(--sillon-feuille),0 0 0 2.5px var(--sillon-encre),0 0 0 7px color-mix(in srgb,var(--sillon-rouge) 12%,transparent)}
.hira-steps-labels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:4px 0 0;padding:0;list-style:none}
.hira-steps-labels li{min-width:0;padding:0;overflow:visible;text-align:center;white-space:nowrap;font-family:var(--f-data);font-size:var(--data-size);font-weight:var(--data-weight);font-stretch:var(--data-stretch);letter-spacing:.02em;line-height:1.3;text-transform:uppercase;color:var(--sillon-graphite)}
.hira-steps-labels li.is-on{color:var(--sillon-encre)}
.hira-steps-labels li.is-here{color:var(--sillon-encre);font-weight:800}
/* Parents: the caption face, not in capitals */
.hira-steps.is-parent .hira-steps-labels li{font-family:var(--f-texte);font-size:13px;font-stretch:normal;letter-spacing:0;text-transform:none}
.hira-steps.is-parent .hira-steps-labels li.is-here{font-weight:700}

/* ---------- The thread ---------- */
.hira-thread{display:flex;flex-direction:column;gap:18px;margin:0;padding:0;list-style:none}
.hira-turn{min-width:0;scroll-margin-top:18px}
.hira-turn[data-kind=reply]{display:flex;justify-content:flex-end}
.hira-reply{max-width:80%;margin:0;padding:10px 15px 11px;border-radius:18px 18px 6px 18px;background:var(--sillon-encre);color:var(--sillon-feuille);font-weight:700;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:var(--sillon-ombre-douce)}

/* Hira's plaque: the navy enamel with its inner border; the kicker and the tail at the opening only */
.hira-plaque{position:relative;max-width:34em;margin:0;padding:12px 15px 14px;border-radius:16px;background:var(--sillon-encre);color:var(--sillon-feuille);box-shadow:0 16px 24px -16px color-mix(in srgb,var(--sillon-encre) 85%,transparent)}
.hira-plaque::after{content:"";position:absolute;inset:4px;border:1.25px solid color-mix(in srgb,var(--sillon-feuille) 66%,transparent);border-radius:12px;pointer-events:none}
.hira-plaque.has-tail::before{content:"";position:absolute;left:-4px;bottom:-10px;width:22px;height:12px;background:var(--sillon-encre);clip-path:polygon(28% 0,100% 0,0 100%)}
.hira-plaque-k{display:block;margin-bottom:6px;font-family:var(--f-data);font-size:var(--data-size);font-weight:var(--data-weight);font-stretch:var(--data-stretch);letter-spacing:var(--data-tracking);line-height:1.3;text-transform:uppercase;color:color-mix(in srgb,var(--sillon-feuille) 70%,transparent)}
.hira-plaque-q{display:block;font-family:var(--f-titre);font-weight:var(--titre-weight);font-stretch:var(--titre-stretch);letter-spacing:var(--titre-tracking);font-size:20px;line-height:1.12;color:var(--sillon-feuille);overflow-wrap:anywhere}
.hira-plaque-q .it{font-size:1.06em}
body.parent-mode .hira-plaque-q{font-weight:600;line-height:1.16}
.hira-plaque:focus{outline:none}
.hira-plaque:focus-visible{outline:3px solid var(--sillon-encre);outline-offset:3px}

/* Hira: one picture on screen (the anchor); the other turns keep an empty slot of the same width */
.hira-avatar{display:block;flex:none;width:56px;height:56px}
.hira-bird{display:block;width:100%;height:auto}
body.parent-mode .hira-bird,body.parent-mode .hira-launcher-figure img{transform:scale(.9);transform-origin:50% 100%}
.hira-ask{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:end;gap:10px}
.hira-ask-body{display:flex;flex-direction:column;min-width:0}
.hira-opening{display:grid;grid-template-columns:158px minmax(0,1fr);align-items:start}
.hira-avatar.is-hero{width:176px;height:176px;margin:6px 0 0 -14px}
.hira-opening-text{display:flex;flex-direction:column;gap:16px;min-width:0;padding-top:4px}
.hira-caption{margin:0 0 0 2px}
.hira-step{margin-top:12px;min-width:0}
.hira-step>*+*{margin-top:12px}
.hira-back{margin-top:6px}

/* ---------- The four doors (SPEC 2.3, art D11) ---------- */
.hira-doors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.hira-doors>li{display:flex;min-width:0}
.hira-door{position:relative;display:flex;flex-direction:column;justify-content:flex-end;width:100%;min-height:150px;padding:0;overflow:hidden;border:1px solid var(--sillon-filet-fort);border-radius:18px;background:var(--sillon-feuille);color:var(--sillon-encre);font:inherit;text-align:left;cursor:pointer;box-shadow:var(--sillon-ombre-douce)}
.hira-door:hover{border-color:var(--sillon-encre);box-shadow:var(--sillon-ombre)}
.hira-door-n{position:absolute;z-index:2;top:10px;left:10px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--sillon-encre);color:var(--sillon-feuille);font-family:var(--f-data);font-size:12px;font-weight:700;line-height:1}
.hira-door-art{position:absolute;inset:0;pointer-events:none}
.hira-door-text{position:relative;z-index:1;display:flex;flex-direction:column;gap:3px;padding:76px 12px 12px}
.hira-door-t{font-family:var(--f-titre);font-weight:var(--titre-weight);font-stretch:var(--titre-stretch);letter-spacing:var(--titre-tracking);font-size:18px;line-height:1.06;overflow-wrap:anywhere}
.hira-door-s{font-size:13px;line-height:1.3;color:var(--sillon-graphite)}
/* 1 Activités: three graphite outline tags, no fill colour. The tags stay in the flow (tags on top, words at the
   bottom), so on a narrow door they wrap and the door grows instead of running over its title. */
.hira-door.hira-door-activities{justify-content:space-between}
.hira-door.hira-door-activities .hira-door-art{position:relative;inset:auto}
.hira-door.hira-door-activities .hira-door-text{padding-top:10px}
.hira-door-stickers{display:flex;flex-wrap:wrap;align-content:flex-start;justify-content:flex-end;gap:5px;padding:12px 10px 0 44px}
.hira-sticker{display:inline-block;padding:3px 9px 3px 8px;border:1.4px solid var(--sillon-graphite);border-radius:6px 999px 999px 6px;background:var(--sillon-feuille);color:var(--sillon-graphite);font-family:var(--f-data);font-size:11px;font-weight:700;letter-spacing:.06em;line-height:1.3;text-transform:uppercase;transform:rotate(-3deg)}
.hira-sticker:nth-child(2){transform:rotate(4deg)}
.hira-sticker:nth-child(3){transform:rotate(-1deg)}
/* 2 Quotidien: our nurse picture under the ink gradient, with its « 7:30 » tag */
.hira-door-daily{border-color:var(--sillon-encre);background:var(--sillon-encre-2);color:var(--sillon-feuille)}
.hira-door-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hira-door-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(color-mix(in srgb,var(--sillon-encre) 5%,transparent) 22%,color-mix(in srgb,var(--sillon-encre) 90%,transparent))}
.hira-door-time{position:absolute;z-index:1;top:10px;right:10px;padding:4px 7px;border-radius:6px;background:var(--sillon-encre);color:var(--sillon-feuille);font-family:var(--f-data);font-size:11px;font-weight:700;letter-spacing:.08em;line-height:1.2}
/* 3 Domaines: the five line pastilles */
.hira-door-lines{display:flex;align-items:flex-start;justify-content:flex-end;gap:3px;padding:13px 12px 0}
.hira-door-lines .pastille{width:17px;height:17px}
/* 4 Un métier en tête: ink, a word being typed and a still caret (never a real field) */
.hira-door-search{border-color:var(--sillon-encre);background:var(--sillon-encre);color:var(--sillon-feuille)}
.hira-door-field{position:absolute;inset:9px 10px auto 44px;display:flex;align-items:center;gap:6px;height:30px;padding:0 10px;border-radius:999px;background:var(--sillon-feuille);color:var(--sillon-encre)}
.hira-door-field .i{width:16px;height:16px;color:var(--sillon-graphite)}
.hira-door-typed{overflow:hidden;font-size:14px;font-weight:700;white-space:nowrap}
.hira-door-caret{flex:none;width:2px;height:16px;background:var(--sillon-encre)}
.hira-door-daily .hira-door-s,.hira-door-search .hira-door-s{color:color-mix(in srgb,var(--sillon-feuille) 82%,transparent)}
.hira-door-daily .hira-door-n,.hira-door-search .hira-door-n{background:var(--sillon-feuille);color:var(--sillon-encre)}

/* ---------- Families, interests, sectors (SPEC 3.3) ---------- */
.hira-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.hira-tiles>li{display:flex;min-width:0}
.hira-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px;width:100%;min-height:104px;padding:12px;border:1px solid var(--sillon-filet-fort);border-radius:18px;background:var(--sillon-feuille);color:var(--sillon-encre);font:inherit;text-align:left;cursor:pointer;box-shadow:var(--sillon-ombre-douce)}
.hira-tile:hover{border-color:var(--sillon-encre)}
.hira-tile-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--sillon-filet);border-radius:12px;background:var(--sillon-papier)}
.hira-tile-icon .i{width:24px;height:24px}
.hira-tile-t{font-family:var(--f-titre);font-weight:var(--titre-weight);font-stretch:var(--titre-stretch);letter-spacing:var(--titre-tracking);font-size:17px;line-height:1.1;overflow-wrap:anywhere}
.hira-choices{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.hira-choices>li{display:flex;max-width:100%}
.hira-choice{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:44px;padding:7px 8px 7px 14px;border:1px solid var(--sillon-filet-fort);border-radius:var(--radius-chip);background:var(--sillon-feuille);color:var(--sillon-encre);font-family:var(--f-texte);font-size:14px;font-weight:700;line-height:1.25;text-align:left;cursor:pointer}
.hira-choice:hover{border-color:var(--sillon-encre)}
.hira-choice-t{overflow-wrap:anywhere}
.hira-pill{flex:none;padding:3px 8px;border-radius:var(--radius-chip);background:var(--sillon-papier);color:var(--sillon-graphite);font-size:12px;font-weight:700;white-space:nowrap}

/* Small texts, (i) details, quiet buttons and links */
.hira-tag{margin:0 0 6px;font-size:13px;line-height:1.4;color:var(--sillon-graphite)}
.hira-empty{margin:0;font-size:14px;line-height:1.45;color:var(--sillon-graphite)}
.hira-empty-t{margin:0 0 4px;font-weight:700}
.hira-pointer{display:flex;align-items:center;gap:8px;margin:0;color:var(--sillon-graphite);font-weight:700}
.hira-pointer .i{width:18px;height:18px}
.hira-info{margin:6px 0 0}
.hira-info>summary{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--sillon-graphite);font-size:13px;font-weight:700;list-style:none;cursor:pointer}
.hira-info>summary::-webkit-details-marker{display:none}
.hira-info>summary .i{width:17px;height:17px;flex:none}
.hira-info-body{margin:0 0 6px;padding:8px 12px;border-left:2px solid var(--sillon-filet-fort);color:var(--sillon-graphite);font-size:13px;line-height:1.45}
.hira-info-body p{margin:0 0 6px}
.hira-info-body p:last-child{margin-bottom:0}
.hira-info-t{font-weight:700;color:var(--sillon-encre)}
.hira-quiet{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 12px;border:0;border-radius:var(--radius-chip);background:none;color:var(--sillon-encre);font-family:var(--f-texte);font-size:14px;font-weight:700;text-align:left;cursor:pointer}
.hira-quiet:hover{background:var(--sillon-voile)}
.hira-quiet:disabled{color:var(--sillon-graphite);cursor:default}
.hira-quiet .i{flex:none;width:18px;height:18px}
.hira-quiet-row{display:flex;flex-wrap:wrap;gap:2px 4px;margin-top:6px}
.hira-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 0;border:0;background:none;color:var(--sillon-bleu);font-family:var(--f-texte);font-size:14px;font-weight:700;text-align:left;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer}
.hira-link:hover{text-decoration-thickness:2px}
.hira-link .i{flex:none;width:18px;height:18px}
.hira-source{margin:8px 0 0;font-size:13px}
.hira-source a{display:inline-flex;align-items:center;min-height:44px}

/* Skeletons: still blocks, never animated */
.hira-skeleton{display:flex;gap:10px;overflow:hidden}
.hira-skeleton span{display:block;border:1px dashed var(--sillon-filet-fort);border-radius:12px;background:var(--sillon-voile)}
.hira-skeleton-cards span{flex:0 0 190px;height:250px;border-radius:var(--radius-card)}
.hira-skeleton-chips{flex-wrap:wrap}
.hira-skeleton-chips span{width:150px;height:44px;border-radius:var(--radius-chip)}
.hira-skeleton-rows{flex-direction:column}
.hira-skeleton-rows span{height:56px}
.hira-skeleton-block{height:120px;border:1.5px dashed var(--sillon-filet-fort);border-radius:14px;background:var(--sillon-voile)}

/* Inline states (SPEC 3.8): a sunken card, no picture of its own */
.hira-state{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px 16px;border:1px solid var(--sillon-filet);border-radius:14px;background:var(--sillon-papier);box-shadow:inset 0 1px 4px color-mix(in srgb,var(--sillon-encre) 14%,transparent)}
.hira-state-t{margin:0;font-weight:700}
.hira-state-s{margin:0;color:var(--sillon-graphite)}
.hira-state-detail>summary{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--sillon-graphite);font-size:13px;font-weight:700;list-style:none;cursor:pointer}
.hira-state-detail>summary::-webkit-details-marker{display:none}
.hira-state-detail p{margin:0 0 6px;font-size:13px;color:var(--sillon-graphite);overflow-wrap:anywhere}
.hira-retry .i{width:18px;height:18px}

/* ---------- Career cards (SPEC 3.7): a carousel for students, rows for parents ---------- */
.hira-cards{display:flex;gap:12px;margin:0;padding:4px 2px 12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:2px;overscroll-behavior-x:contain;list-style:none;scrollbar-width:thin}
.hira-card{position:relative;display:flex;flex:0 0 196px;flex-direction:column;overflow:hidden;scroll-snap-align:start;border:1px solid var(--sillon-filet);border-radius:var(--radius-card);background:var(--sillon-feuille);box-shadow:var(--sillon-ombre-douce)}
.hira-card-visual{position:relative;display:block;width:100%;aspect-ratio:4/5;padding:0;overflow:hidden;border:0;background:var(--sillon-encre-2);font:inherit;text-align:left;cursor:pointer}
.hira-card-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hira-card-visual.has-photo::after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,color-mix(in srgb,var(--sillon-encre) 74%,transparent));pointer-events:none}
.hira-card-title{position:absolute;z-index:1;left:12px;right:12px;bottom:12px;font-family:var(--f-titre);font-weight:var(--titre-weight);font-stretch:var(--titre-stretch);letter-spacing:var(--titre-tracking);font-size:17px;line-height:1.1;color:var(--sillon-feuille);overflow-wrap:anywhere}
/* The typographic poster of a career without a picture: its title on feuille, a pencil line of possible stations */
.hira-card-visual.is-poster{background:var(--sillon-feuille)}
.hira-card-visual.is-poster .hira-card-title{top:64px;bottom:auto;font-size:20px;line-height:1.08;color:var(--sillon-encre)}
.hira-poster{position:absolute;inset:0;background-color:var(--sillon-feuille);background-image:linear-gradient(var(--sillon-voile) 1px,transparent 1px),linear-gradient(90deg,var(--sillon-voile) 1px,transparent 1px);background-size:16px 16px}
.hira-poster-line{position:absolute;top:24px;left:14px;right:62px;display:flex;align-items:center;gap:4px}
.hira-poster-line .trait-crayon{flex:1;min-width:0}
.hira-heart{position:absolute;z-index:2;top:8px;right:8px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1.5px solid color-mix(in srgb,var(--sillon-feuille) 85%,transparent);border-radius:50%;background:color-mix(in srgb,var(--sillon-encre) 42%,transparent);color:var(--sillon-feuille);cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
/* On the light poster the heart is drawn in encre; pressed, sillon.css .jaime turns it red (J'aime) */
.hira-card:has(.is-poster) .hira-heart{border-color:var(--sillon-filet-fort);background:var(--sillon-feuille)}
.hira-card:has(.is-poster) .hira-heart:not([aria-pressed=true]){color:var(--sillon-encre)}
.hira-heart[aria-pressed=true]{border-color:var(--sillon-feuille);background:var(--sillon-feuille)}
.hira-heart .i{width:22px;height:22px;stroke-width:1.9}
.hira-routes{display:flex;align-items:center;gap:6px;width:100%;min-height:44px;padding:8px 12px;border:0;border-top:1px solid var(--sillon-filet);background:none;color:var(--sillon-encre);font-family:var(--f-texte);font-size:13px;font-weight:700;text-align:left;cursor:pointer}
.hira-routes:hover{background:var(--sillon-voile)}
.hira-routes .i{flex:none;width:18px;height:18px}
.hira-card-more{flex-basis:128px;border:1.5px dashed var(--sillon-filet-fort);background:var(--sillon-papier);box-shadow:none}
.hira-more-card{display:grid;flex:1;place-items:center;padding:16px;border:0;background:none;color:var(--sillon-encre);font-family:var(--f-titre);font-weight:var(--titre-weight);font-stretch:var(--titre-stretch);font-size:17px;line-height:1.1;text-align:center;cursor:pointer}
.hira-more-card:disabled{color:var(--sillon-graphite);cursor:default}
.hira-rows{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.hira-row-card{overflow:hidden;border:1px solid var(--sillon-filet);border-radius:14px;background:var(--sillon-feuille);box-shadow:var(--sillon-ombre-douce)}
.hira-row-main{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:52px;padding:10px 14px;border:0;background:none;color:var(--sillon-encre);font:inherit;text-align:left;cursor:pointer}
.hira-row-t{font-family:var(--f-titre);font-weight:var(--titre-weight);font-size:18px;line-height:1.15;overflow-wrap:anywhere}
.hira-row-main .i{flex:none;color:var(--sillon-graphite)}

/* ---------- Under a typed sentence (SPEC 3.6.4) ---------- */
.hira-city{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0}
.hira-city-chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 12px;border:1px solid var(--sillon-filet-fort);border-radius:var(--radius-chip);background:var(--sillon-feuille);font-weight:700}
.hira-city-chip .i,.hira-lock-tag .i{flex:none;width:17px;height:17px}
.hira-lock-tag{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--sillon-graphite)}
.hira-health{padding:14px 16px;border:1px solid var(--sillon-filet);border-left:4px solid var(--sillon-encre);border-radius:14px;background:var(--sillon-feuille);box-shadow:var(--sillon-ombre-douce)}
.hira-health-t{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:18px;line-height:1.2}
.hira-health-t .i{flex:none}
.hira-health-line{margin:0 0 6px}
.hira-health-go{margin:6px 0 2px}
.hira-health-go .i{width:18px;height:18px}
.hira-domain{display:grid;grid-template-columns:44px minmax(0,1fr) auto auto;align-items:center;gap:12px;width:100%;min-height:64px;padding:10px 14px;border:1px solid var(--sillon-filet);border-radius:14px;background:var(--sillon-feuille);color:var(--sillon-encre);font:inherit;text-align:left;cursor:pointer;box-shadow:var(--sillon-ombre-douce)}
.hira-domain:hover{border-color:var(--sillon-encre)}
.hira-domain-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--sillon-filet);border-radius:12px;background:var(--sillon-papier)}
.hira-domain-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.hira-domain-t{font-family:var(--f-titre);font-weight:var(--titre-weight);font-stretch:var(--titre-stretch);font-size:18px;line-height:1.1;overflow-wrap:anywhere}
.hira-domain-after{font-size:13px;color:var(--sillon-graphite);white-space:nowrap}
.hira-domain>.i{color:var(--sillon-graphite)}
.hira-block{margin-top:16px}
.hira-sub,.hira-section-t{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0 0 6px;font-size:20px;line-height:1.15}
.hira-count{font-family:var(--f-data);font-size:var(--data-size);font-weight:var(--data-weight);font-stretch:var(--data-stretch);letter-spacing:var(--data-tracking);color:var(--sillon-graphite)}
.hira-results,.hira-ed-list{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.hira-result{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:52px;padding:9px 14px;border:1px solid var(--sillon-filet);border-radius:12px;background:var(--sillon-feuille);color:var(--sillon-encre);font:inherit;text-align:left;cursor:pointer}
.hira-result:hover{border-color:var(--sillon-encre)}
.hira-result.is-static{cursor:default}
.hira-result.is-static:hover{border-color:var(--sillon-filet)}
.hira-result-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.hira-result-t{font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.hira-result-s{font-size:13px;line-height:1.35;color:var(--sillon-graphite);overflow-wrap:anywhere}
.hira-result>.i{flex:none;color:var(--sillon-graphite)}
.hira-nomatch{margin:0;color:var(--sillon-graphite)}
.hira-ed-row{padding:10px 14px;border:1px solid var(--sillon-filet);border-radius:12px;background:var(--sillon-feuille)}
.hira-ed-k{margin:0;font-family:var(--f-data);font-size:var(--data-size);font-weight:var(--data-weight);font-stretch:var(--data-stretch);letter-spacing:var(--data-tracking);text-transform:uppercase;color:var(--sillon-graphite)}
.hira-ed-t{margin:2px 0;font-weight:700;overflow-wrap:anywhere}
.hira-ed-p{margin:0;font-size:13px;color:var(--sillon-graphite);overflow-wrap:anywhere}
.hira-foot{display:flex;flex-wrap:wrap;align-items:center;gap:0 14px;margin-top:4px}
.hira-foot .hira-tag{margin:0}

/* ---------- The reading row and the hand-off (SPEC 3.4, 3.9.2) ---------- */
.hira-reading{margin-top:18px}
.hira-reading .hira-skeleton{margin-top:10px}
.hira-handoff{margin-top:20px;padding-top:16px;border-top:1px dashed var(--sillon-filet-fort)}
.hira-handoff-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;padding:0;list-style:none}
.hira-handoff-chip{padding:5px 11px;border:1px solid var(--sillon-filet-fort);border-radius:var(--radius-chip);background:var(--sillon-feuille);font-size:13px;font-weight:700;overflow-wrap:anywhere}
.hira-handoff-chip.is-more{color:var(--sillon-graphite)}
.hira-go-row{display:flex;gap:12px;margin:14px 0 2px;padding:4px 2px 12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;list-style:none;scrollbar-width:thin}
.hira-go-row>li{display:flex;flex:0 0 200px;scroll-snap-align:start}
.hira-go{display:flex;flex-direction:column;gap:4px;width:100%;min-height:212px;padding:0 0 12px;overflow:hidden;border:1px solid var(--sillon-filet);border-radius:var(--radius-card);background:var(--sillon-feuille);color:var(--sillon-encre);font:inherit;text-align:left;cursor:pointer;box-shadow:var(--sillon-ombre-douce)}
.hira-go:hover{border-color:var(--sillon-encre)}
.hira-go-for-you{border-color:var(--sillon-encre);box-shadow:0 0 0 2px var(--sillon-encre),var(--sillon-ombre-douce)}
.hira-go-art{position:relative;display:block;height:112px;overflow:hidden;background:var(--sillon-papier)}
.hira-go-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hira-go-for-you .hira-go-art img{object-fit:contain;padding:6px 0 0}
.hira-go-line{position:absolute;top:50%;left:18px;right:18px;display:flex;align-items:center;gap:4px}
.hira-go-line .trait-crayon{flex:1;min-width:0}
.hira-go-t{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 12px 0;font-family:var(--f-titre);font-weight:var(--titre-weight);font-stretch:var(--titre-stretch);letter-spacing:var(--titre-tracking);font-size:17px;line-height:1.1}
.hira-go-t .i{flex:none;width:18px;height:18px}
.hira-go-s{display:-webkit-box;overflow:hidden;padding:0 12px;font-size:13px;line-height:1.35;color:var(--sillon-graphite);-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* ---------- The bottom bar: suggestion chips and the composer (SPEC 2.4, 2.5) ---------- */
.hira-bar{position:sticky;bottom:12px;z-index:5;margin-top:20px;padding:8px 0 4px;border-radius:28px;background:color-mix(in srgb,var(--sillon-papier) 88%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.hira-chips{display:flex;gap:8px;margin:0 0 8px;padding:2px 2px 4px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.hira-chips::-webkit-scrollbar{display:none}
.hira-sugg{display:inline-flex;flex:none;align-items:center;gap:6px;min-height:44px;padding:6px 14px;border:1px solid var(--sillon-filet-fort);border-radius:var(--radius-chip);background:var(--sillon-feuille);color:var(--sillon-encre);font-family:var(--f-texte);font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.hira-sugg:hover{border-color:var(--sillon-encre)}
.hira-sugg .i{flex:none;width:16px;height:16px;color:var(--sillon-graphite)}
/* Touch screens: the chips step aside while the keyboard is up (D15) */
.hira-page.is-typing .hira-chips-slot{display:none}
.hira-composer{margin:0}
.hira-problem{display:flex;align-items:center;gap:6px;margin:0;padding:0 8px;color:var(--sillon-encre);font-size:13px;font-weight:700}
.hira-problem:not(:empty){margin-bottom:6px}
.hira-problem .i{flex:none;width:18px;height:18px}
.hira-field{display:flex;align-items:flex-end;gap:6px;min-height:52px;padding:4px 4px 4px 14px;border:1px solid var(--sillon-filet-fort);border-radius:26px;background:var(--sillon-feuille);box-shadow:var(--sillon-ombre-douce)}
.hira-field:focus-within{border-color:var(--sillon-encre);outline:3px solid var(--sillon-encre);outline-offset:2px}
.hira-pen{display:grid;align-self:center;place-items:center;color:var(--sillon-encre)}
.hira-pen .i{width:20px;height:20px}
.hira-input{flex:1;min-width:0;min-height:44px;max-height:130px;margin:0;padding:11px 4px;border:0;outline:0;resize:none;background:none;color:var(--sillon-encre);font-family:var(--f-texte);font-size:16px;line-height:22px}
.hira-input:focus-visible{outline:0;box-shadow:none}
.hira-input::placeholder{color:var(--sillon-graphite);opacity:1}
.hira-count{flex:none;align-self:center;font-family:var(--f-data);font-size:var(--data-size);color:var(--sillon-graphite);white-space:nowrap}
.hira-count.is-over{color:var(--sillon-encre);font-weight:800}
.hira-count[hidden]{display:none}
.hira-send{display:grid;flex:none;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--sillon-encre);color:var(--sillon-feuille);cursor:pointer}
.hira-send:hover{background:var(--sillon-encre-2)}
.hira-send:disabled{background:var(--sillon-voile);color:var(--sillon-graphite);cursor:default}
.hira-send .i{width:20px;height:20px;stroke-width:2}
.hira-composer .hira-info{margin:2px 0 0 10px}

/* ---------- The launcher in Découvrir (plan 2.2) ---------- */
.hira-launcher{display:flex;flex-direction:column;min-width:0}
.hira-launcher .hira-steps{margin:2px 0 10px}
.hira-launcher .hira-steps-labels li{letter-spacing:0}
.hira-launcher-hira{margin:6px 0 2px}
.hira-launcher .hira-plaque{max-width:none}
.hira-launcher .hira-plaque-q{font-size:22px;line-height:1.08}
.hira-launcher-figure{display:grid;grid-template-columns:118px minmax(0,1fr);align-items:center;gap:8px;margin:8px 0 0}
.hira-launcher-figure img{display:block;width:132px;height:auto;margin:-4px 0 -4px -16px;filter:drop-shadow(0 12px 14px color-mix(in srgb,var(--sillon-encre) 16%,transparent))}
.hira-launcher-figure figcaption{font-size:13px}
.hira-launcher .hira-doors{margin:14px 0 18px}
.hira-launcher .hira-door{min-height:132px}
.hira-launcher .hira-door-text{padding-top:62px}
.hira-launcher .hira-door-t{font-size:16px}
/* The side panel goes two columns between tablet and phone widths: the line and Hira on the left, the doors on the right */
@media (min-width:641px) and (max-width:860px){
  .guide:has(>.hira-launcher){display:flex;flex-direction:column}
  .hira-launcher{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"steps doors" "hira doors";column-gap:24px;align-items:start}
  .hira-launcher>.hira-steps{grid-area:steps}
  .hira-launcher>.hira-launcher-hira{grid-area:hira}
  .hira-launcher>.hira-doors{grid-area:doors;margin:2px 0 18px}
}

/* ---------- The support card (SPEC 5.5, owner decision 4): calm, never red, every number large and callable ---------- */
.hira-support{position:relative;padding:16px 16px 14px 18px;border:1px solid var(--sillon-filet);border-left:4px solid var(--sillon-encre);border-radius:16px;background:var(--sillon-feuille);color:var(--sillon-encre);box-shadow:var(--sillon-ombre)}
.hira-support-glyph{flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hira-support-message{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;margin:0 0 14px;font-size:15px;line-height:1.5}
.hira-support-message .hira-support-heart{width:26px;height:26px;color:var(--sillon-encre)}
.hira-support-rows{display:flex;flex-direction:column;gap:8px;margin:0 0 14px;padding:0;list-style:none}
.hira-support-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"number title glyph";align-items:center;gap:4px 14px;min-height:56px;padding:10px 14px;border:1px solid var(--sillon-filet);border-radius:12px;background:var(--sillon-papier);color:var(--sillon-encre);text-decoration:none}
.hira-support-row:hover{border-color:var(--sillon-encre)}
.hira-support-row .hira-support-number{grid-area:number}
.hira-support-row .hira-support-title{grid-area:title}
.hira-support-row .hira-support-glyph{grid-area:glyph;color:var(--sillon-graphite)}
.hira-support-number{font-family:var(--f-titre);font-weight:800;font-size:24px;line-height:1;letter-spacing:.01em;white-space:nowrap;font-variant-numeric:tabular-nums}
.hira-support-title{font-size:14px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.hira-support-page{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title glyph"}
.hira-support-page .hira-support-title{color:var(--sillon-bleu);text-decoration:underline;text-underline-offset:3px}
.hira-support-emergency{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hira-support-call{min-height:56px;gap:10px}
.hira-support-call .hira-support-number{font-size:28px;color:var(--sillon-feuille)}
@media (max-width:420px){
  .hira-support-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"number glyph" "title title"}
  .hira-support-page{grid-template-areas:"title glyph"}
}

/* ---------- Phones (≤ 690 px: the nav is the floating capsule) ---------- */
@media (max-width:690px){
  /* the bar sits above the capsule, and the carousels run to the screen's edges inside the 16 px gutter */
  .hira-bar{bottom:calc(var(--nav-capsule-space, 90px) + env(safe-area-inset-bottom, 0px))}
  .hira-cards,.hira-go-row{margin-inline:calc(-1 * var(--pad, 16px));padding-inline:var(--pad, 16px);scroll-padding-inline:var(--pad, 16px)}
  .hira-plaque-q{font-size:19px}
}
@media (max-width:520px){
  .hira-opening{grid-template-columns:104px minmax(0,1fr)}
  .hira-avatar.is-hero{width:120px;height:120px;margin:8px 0 0 -12px}
  .hira-ask{grid-template-columns:48px minmax(0,1fr);gap:8px}
  .hira-avatar{width:48px;height:48px}
  .hira-door{min-height:140px}
  .hira-door-text{padding-top:68px}
  .hira-domain{grid-template-columns:44px minmax(0,1fr) auto}
  .hira-domain-after{grid-column:2;grid-row:2}
  .hira-domain>.i{grid-column:3;grid-row:1 / span 2}
}
@media (max-width:420px){
  /* the parent placeholder « Écrivez ici ce que vous cherchez… » keeps one line on a 375 px phone */
  .hira-field{gap:4px;padding-left:10px}
  .hira-input{padding-inline:2px}
}
@media (max-width:360px){
  .hira-door-t{font-size:16px}
  .hira-card{flex-basis:180px}
}

/* ---------- Reduced motion: everything drawn at once ---------- */
@media (prefers-reduced-motion:reduce){
  .hira-steps-ink.is-inking,.hira-stop.station-pop{animation:none}
}
