/* =============================================================
   Espace professionnels (nov. 2026)
   professionnels.html (page d'accueil publique) et espace-pro.html (section réservée)
   Compléments au thème du site (site.css) ; couleurs du mois via --brick, --note…
   ============================================================= */

/* Héros : texte à gauche, animation à droite (dessous sur mobile) */
.pro-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px 48px; align-items: center; }
@media (max-width: 900px) { .pro-hero { grid-template-columns: 1fr; } }
.pro-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 4px 12px 4px 8px; border: 1px solid var(--brick); color: var(--brick); font: 600 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.pro-badge .i { width: 20px; height: 20px; }

/* Animation (reprend le cadre .anim de site.css) */
.pro-anim { margin: 0; }
.pro-anim .an-segments { margin-bottom: 4px; }
.pro-anim canvas { display: block; width: 100%; }
.pro-anim .anim-lecture { min-height: 2.9em; }

/* Ce que permettent les outils : trois colonnes à icônes */
.pro-usages { list-style: none; margin: 1.2em 0 1.4em; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 28px; }
.prose .pro-usages li { margin: 0; padding: 14px 0 16px; border-top: 2px solid var(--ink); font-size: 16px; }
.pro-usages .i { display: block; width: 30px; height: 30px; margin-bottom: 8px; color: var(--brick); stroke-width: 1.3; }
.pro-usages b { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--ink); margin-bottom: 4px; }

/* Galerie des questionnaires */
.outils { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 24px; margin: 8px 0 1.6em; }
.outil { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); }
.outil .ecrans { padding: 10px 10px 0; }
.outil .ecrans .fig { margin: 0; }
.outil .zoomable { border-color: var(--rule); }
.outil .ecran-1 .zoomable img { aspect-ratio: 16 / 10; width: 100%; height: auto; max-height: none; object-fit: cover; object-position: top left; }
.outil .mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.outil .mini .zoomable img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; max-height: none; }
.outil .mini .zoom-ic { width: 28px; height: 28px; right: 6px; bottom: 6px; }
.outil .mini .zoom-ic .i { width: 14px; height: 14px; }
.outil-ph { display: grid; place-items: center; align-content: center; gap: 8px; aspect-ratio: 16 / 10; border: 1.5px dashed rgba(var(--acc-rgb), .55); background: #fff; color: var(--muted); font-style: italic; font-size: 14px; text-align: center; padding: 12px; }
.outil-ph .i { width: 30px; height: 30px; color: var(--brick); stroke-width: 1.2; }
.outil-ph code { font-style: normal; font-size: 12px; color: var(--ink); }
.outil .fig.missing { display: block; }
.outil .fig.missing .zoomable { display: none; }
.outil .fig:not(.missing) .outil-ph { display: none; }
.outil-corps { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.outil h3 { margin: 0; font-size: 22px; }
.outil .src { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.outil p.interet { margin: 4px 0 0; font-size: 16px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 10px 0 0; list-style: none; }
.prose .tags li, .tags li { margin: 0; padding: 1px 8px; border: 1px solid var(--rule); font-size: 12.5px; letter-spacing: .03em; color: var(--muted); background: var(--stone); }
.tags li.fort { border-color: var(--brick); color: var(--brick); background: transparent; }
.legende-ecrans { font-size: 14px; color: var(--muted); margin: -4px 0 1.4em; }

/* Conditions d'utilisation */
.conditions { margin: 1.2em 0; padding: 18px 22px; border: 1px solid var(--ink); background: var(--paper); }
.prose .conditions h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.conditions h3 .i { color: var(--brick); width: 24px; height: 24px; }
.prose .conditions ul { margin: 0; }
.conditions .resp { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-weight: 600; color: var(--ink); }

/* Accès : formulaire RPPS / ADELI */
.acces { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; margin: 1.2em 0 1em; padding: 24px; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--brick); scroll-margin-top: 96px; }
@media (max-width: 760px) { .acces { grid-template-columns: 1fr; padding: 18px 16px; } }
.prose .acces h3 { margin: 0 0 10px; }
.acces form { display: grid; gap: 12px; align-content: start; }
.acces label.num { display: grid; gap: 6px; font-weight: 600; color: var(--ink); }
.acces label.num small { font-weight: 400; font-size: 14px; color: var(--muted); }
.acces input[type=text] { width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #BDB7AB; background: #fff; color: var(--ink); font: 600 22px/1 var(--sans); letter-spacing: .12em; border-radius: 0; }
.acces input[type=text]:focus { outline: 2px solid var(--brick); outline-offset: 1px; }
.acces .check { font-size: 15px; }
.acces .btn { justify-self: start; }
.pro-msg { min-height: 1.5em; margin: 0; font-size: 15px; }
.pro-msg.err { color: var(--brick); font-weight: 600; }
.pro-msg.ok { color: var(--ink); font-weight: 600; }
.anonyme { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 10px; }
.prose .anonyme li { display: flex; gap: 10px; margin: 0; font-size: 15.5px; line-height: 1.45; }
.anonyme .i { color: var(--brick); margin-top: .15em; }

/* ---------- Section réservée (espace-pro.html) ---------- */
html.verrou main#contenu, html.verrou .crumbs { display: none; }
.verrou-msg { display: none; }
html.verrou .verrou-msg { display: block; }
.pro-bandeau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 0 0 28px; padding: 10px 14px; background: var(--note); border-left: 3px solid var(--brick); font-size: 15px; }
.pro-bandeau span { display: inline-flex; align-items: center; gap: 8px; }
.pro-bandeau .i { color: var(--brick); }
.pro-bandeau a { font-weight: 600; }

/* Tableau des outils */
.t-outils td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.t-outils td small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; white-space: normal; }
.t-outils .liens { white-space: nowrap; }
.t-outils .liens a { margin-right: 12px; font-weight: 600; text-decoration: none; }
.t-outils .liens a:hover { text-decoration: underline; }
.t-outils .na { color: var(--muted); }

/* Veille : résumés d'articles */
.veille { display: grid; gap: 18px; margin: 1em 0 1.4em; }
.article { padding: 18px 20px; background: var(--paper); border: 1px solid var(--rule); }
.article.placeholder { border: 1.5px dashed rgba(var(--acc-rgb), .55); font-style: normal; color: var(--text); }
.article .a-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.article .a-meta .theme { color: var(--brick); font-weight: 600; }
.prose .article h3 { margin: 0 0 8px; font-size: 21px; }
.article .resume { margin: 0 0 10px; font-size: 16px; }
.article .apa { margin: 0; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.article .ph { color: var(--muted); font-style: italic; }

/* Titres de section hors colonne de texte ; lien du menu */
.sec-titre { margin-top: 1.6em; }
.menu .pro-lien .i { color: var(--brick); }
@media (max-width: 960px) { .menu > li > a.pro-lien { justify-content: flex-start; } }
