/* Prophetix — vitrine des applications.
   Pétrole pour la marque, safran pour ce qui reste à venir et pour l'action principale.
   Chaque application apporte sa propre couleur (--app), vérifiée côté serveur. */

@font-face {
    font-family: "Schibsted Grotesk";
    src: url("../polices/schibsted-grotesk.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Schibsted Grotesk";
    src: url("../polices/schibsted-grotesk-italique.woff2") format("woff2");
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --encre: #17212B;
    --encre-douce: #4D5B67;
    --fond: #F4F6F7;
    --surface: #FFFFFF;
    --ligne: #D3DADF;
    --petrole: #0E4D55;
    --petrole-fonce: #093A40;
    --petrole-clair: #D8E8E9;
    --safran: #F2B705;
    --safran-fonce: #8A6700;
    --danger: #A12C2C;
    --succes: #1D6B3A;

    --rayon: 10px;
    --largeur: 1180px;
    --police: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --encre: #E6ECEF;
        --encre-douce: #A7B4BD;
        --fond: #0F1A1F;
        --surface: #16242A;
        --ligne: #2A3C44;
        --petrole: #0B3F46;
        --petrole-fonce: #072F34;
        --petrole-clair: #1C3A40;
        --safran-fonce: #F2B705;
        --danger: #F08080;
        --succes: #7ED29A;
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    background: var(--fond);
    color: var(--encre);
    font-family: var(--police);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 700; }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--safran); outline-offset: 3px; border-radius: 4px; }

/* Le titre reçoit le focus à chaque navigation (FocusOnNavigate), pour les lecteurs d'écran : ce
   focus programmatique n'a pas à se dessiner. */
h1:focus, h1:focus-visible { outline: none; }

.largeur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }

.visuellement-cache {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}

.evitement {
    position: absolute; left: 1rem; top: -4rem; z-index: 20;
    background: var(--safran); color: #17212B; padding: .5rem 1rem; border-radius: var(--rayon);
}
.evitement:focus { top: 1rem; }

/* ------------------------------------------------------------------ Boutons */

.bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .6rem 1.1rem; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 650; font-size: .98rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}
.bouton--grand { padding: .85rem 1.5rem; font-size: 1.05rem; }
.bouton--safran { background: var(--safran); color: #17212B; }
.bouton--safran:hover { background: #FFC933; }
.bouton--petrole { background: var(--petrole); color: #fff; }
.bouton--petrole:hover { background: var(--petrole-fonce); }
.bouton--contour { border-color: rgb(255 255 255 / .55); color: #fff; }
.bouton--contour:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.bouton--neutre { border-color: var(--ligne); color: var(--encre); background: var(--surface); }
.bouton--neutre:hover { border-color: var(--encre-douce); }
.bouton--danger { background: var(--danger); color: #fff; }
.bouton--sur-app { background: var(--sur-app); color: var(--app); }
.bouton--contour-app { border-color: color-mix(in srgb, var(--sur-app) 60%, transparent); color: var(--sur-app); }
.bouton--contour-app:hover { border-color: var(--sur-app); }
.bouton[disabled] { opacity: .6; cursor: default; }

.lien-discret {
    background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
    text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    text-underline-offset: 3px;
}
.lien-discret:hover { text-decoration-color: currentColor; }
.lien-discret--danger { color: var(--danger); }

/* ------------------------------------------------------------------ En-tête */

.entete {
    position: sticky; top: 0; z-index: 10;
    background: var(--petrole); color: #fff;
    border-bottom: 1px solid rgb(255 255 255 / .08);
}
.entete__barre { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.entete__nav { display: flex; gap: 1.5rem; margin-right: auto; font-size: .98rem; }
.entete__nav a { text-decoration: none; opacity: .85; }
.entete__nav a:hover { opacity: 1; text-decoration: underline; }
.entete__actions { display: flex; align-items: center; gap: 1.25rem; font-size: .98rem; }
.entete__actions .lien-discret { color: #fff; }

.marque { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.marque__symbole { color: currentColor; flex: none; }
.marque__nom { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.marque__suffixe { font-weight: 450; opacity: .75; }

@media (max-width: 860px) {
    .entete__nav { display: none; }
    .entete__barre { justify-content: space-between; gap: 1rem; }
    .marque__suffixe { display: none; }
}

@media (max-width: 420px) {
    .entete__actions .lien-discret { display: none; }
}

/* ------------------------------------------------------------------ Hero : le mur des applications */

.hero {
    background: var(--petrole);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
    overflow: hidden;
}
.hero__grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.02;
    margin-bottom: 1.5rem;
    max-width: 13ch;
}
.hero__chapeau { font-size: 1.15rem; line-height: 1.55; max-width: 34em; color: rgb(255 255 255 / .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.mur { margin: 0; }
.mur__cases {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem;
}
.mur__legende { margin-top: 1.1rem; font-size: .95rem; color: rgb(255 255 255 / .75); }

.case {
    position: relative;
    display: flex; flex-direction: column; justify-content: space-between;
    aspect-ratio: 1;
    padding: .8rem;
    border-radius: 14px;
    text-decoration: none;
    overflow: hidden;
}
.case__pied { display: grid; gap: .15rem; }
.case__nom { font-weight: 700; font-size: .95rem; line-height: 1.15; }
.case__etat { font-size: .78rem; opacity: .8; }

/* Une application ouverte est pleine, cernée de clair : elle doit se lire d'un coup d'œil, même
   quand sa couleur est proche du pétrole. */
.case--ouverte {
    background: var(--app); color: var(--sur-app);
    border: 2px solid rgb(255 255 255 / .7);
    box-shadow: 0 10px 24px -12px rgb(0 0 0 / .45);
}
.case--ouverte .case__etat { opacity: 1; font-weight: 650; }
.case--ouverte:hover { transform: translateY(-2px); }

.case--attendue {
    color: #fff;
    border: 2px dashed rgb(255 255 255 / .32);
    background: rgb(255 255 255 / .03);
}
.case--attendue .icone { opacity: .55; filter: saturate(.7); }
.case--attendue:hover { border-color: var(--safran); background: rgb(242 183 5 / .06); }
.case--attendue:hover .icone { opacity: .85; }

.case--suite {
    border: 2px dashed var(--safran);
    color: var(--safran);
    align-items: flex-start;
}
.case__plus { font-size: 2.1rem; font-weight: 300; line-height: 1; }

/* Une seule entrée orchestrée : les cases se posent l'une après l'autre au chargement. */
@media (prefers-reduced-motion: no-preference) {
    .mur__cases li { animation: pose .5s cubic-bezier(.2, .7, .2, 1) both; }
    .mur__cases li:nth-child(1) { animation-delay: .05s; }
    .mur__cases li:nth-child(2) { animation-delay: .1s; }
    .mur__cases li:nth-child(3) { animation-delay: .15s; }
    .mur__cases li:nth-child(4) { animation-delay: .2s; }
    .mur__cases li:nth-child(5) { animation-delay: .25s; }
    .mur__cases li:nth-child(6) { animation-delay: .3s; }
    .mur__cases li:nth-child(7) { animation-delay: .35s; }
    .mur__cases li:nth-child(8) { animation-delay: .4s; }
    .mur__cases li:nth-child(9) { animation-delay: .45s; }
    .mur__cases li:nth-child(10) { animation-delay: .5s; }
    .mur__cases li:nth-child(11) { animation-delay: .55s; }
    .mur__cases li:nth-child(n+12) { animation-delay: .6s; }
    .case { transition: transform .15s, border-color .15s, background-color .15s; }
}
@keyframes pose { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
    .hero__grille { grid-template-columns: 1fr; }
    .hero h1 { max-width: 16ch; }
}
@media (max-width: 560px) {
    .mur__cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
    .case { padding: .6rem; border-radius: 12px; }
    .case__nom { font-size: .85rem; }
    .case__etat { display: none; }
}

/* ------------------------------------------------------------------ Icônes */

.icone {
    display: inline-grid; place-items: center; flex: none;
    background: var(--app); color: var(--sur-app);
    border-radius: 22%;
    overflow: hidden;
    font-weight: 800; letter-spacing: -.02em;
}
.icone img { width: 100%; height: 100%; object-fit: cover; }
.icone__initiales { line-height: 1; }
.icone--case { width: 44px; height: 44px; font-size: 1.05rem; box-shadow: 0 0 0 2px rgb(255 255 255 / .18); }
.case--ouverte .icone--case { background: var(--sur-app); color: var(--app); }
.icone--ligne { width: 56px; height: 56px; font-size: 1.2rem; }
.icone--petite { width: 36px; height: 36px; font-size: .85rem; }
.icone--fiche { width: 96px; height: 96px; font-size: 2rem; background: var(--sur-app); color: var(--app); }

/* ------------------------------------------------------------------ Sections */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section__titre { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; margin-bottom: 1.75rem; }

.etapes {
    list-style: none; margin: 0; padding: 0; counter-reset: etape;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem;
}
.etape { counter-increment: etape; border-top: 2px solid var(--encre); padding-top: 1.1rem; }
.etape::before {
    content: counter(etape);
    display: block; font-size: 3rem; font-weight: 800; line-height: 1; color: var(--petrole);
    margin-bottom: .75rem; letter-spacing: -.04em;
}
.etape h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.etape p { color: var(--encre-douce); max-width: 30em; }

@media (prefers-color-scheme: dark) {
    .etape::before { color: var(--safran); }
}

@media (max-width: 760px) {
    .etapes { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ------------------------------------------------------------------ Catalogue */

.section--catalogue { background: var(--surface); border-block: 1px solid var(--ligne); }
.catalogue__entete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1rem; }
.catalogue__entete .section__titre { margin-bottom: 0; }
.catalogue__groupe { font-size: 1.15rem; margin: 2.25rem 0 .35rem; }
.catalogue__note { color: var(--encre-douce); margin: 0 0 .5rem; }
.catalogue__vide { color: var(--encre-douce); margin-top: 2rem; }

.filtres { display: flex; flex-wrap: wrap; gap: .4rem; }
.filtre {
    padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--ligne);
    text-decoration: none; font-size: .92rem; color: var(--encre-douce);
}
.filtre:hover { border-color: var(--encre-douce); color: var(--encre); }
.filtre[aria-current="true"] { background: var(--petrole); border-color: var(--petrole); color: #fff; }

.liste-apps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem;
}
.ligne-app {
    position: relative;
    display: flex; gap: 1.1rem; align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--ligne);
}
.ligne-app__texte { min-width: 0; }
.ligne-app__nom { font-size: 1.15rem; margin-bottom: .2rem; }
.ligne-app__nom a { text-decoration: none; }
.ligne-app__nom a::after { content: ""; position: absolute; inset: 0; }
.ligne-app:hover .ligne-app__nom a { text-decoration: underline; text-decoration-color: var(--app); text-decoration-thickness: 2px; }
.ligne-app__accroche { color: var(--encre-douce); margin: 0 0 .45rem; }
.ligne-app__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: 0; font-size: .88rem; color: var(--encre-douce); }

@media (max-width: 760px) {
    .liste-apps { grid-template-columns: 1fr; }
}

.statut {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.statut::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; }
.statut--disponible { color: var(--succes); }
.statut--disponible::before { background: currentColor; }
.statut--enpreparation { color: var(--safran-fonce); }
.statut--enpreparation::before { border: 2px dashed currentColor; width: .7rem; height: .7rem; }
.statut--brouillon { color: var(--encre-douce); }
.statut--brouillon::before { border: 1.5px solid currentColor; }

/* ------------------------------------------------------------------ Questions */

.questions__liste { max-width: 780px; border-top: 1px solid var(--ligne); }
.questions details { border-bottom: 1px solid var(--ligne); }
.questions summary {
    cursor: pointer; list-style: none;
    padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
    font-weight: 650; font-size: 1.08rem;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
    content: ""; position: absolute; right: .4rem; top: 50%;
    width: .6rem; height: .6rem; margin-top: -.45rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .2s;
}
.questions details[open] summary::after { transform: rotate(-135deg); margin-top: -.1rem; }
.questions details p { color: var(--encre-douce); max-width: 62ch; padding-bottom: .6rem; }

/* ------------------------------------------------------------------ Appel final et pied */

.appel { background: var(--petrole-fonce); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.appel__contenu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.appel h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.02em; max-width: 20ch; }

.pied { background: var(--petrole-fonce); color: rgb(255 255 255 / .8); border-top: 1px solid rgb(255 255 255 / .1); font-size: .95rem; }
.pied__contenu { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem; padding-block: 2.5rem; align-items: start; }
.pied__marque { display: flex; gap: .75rem; align-items: flex-start; color: #fff; }
.pied__marque p { color: rgb(255 255 255 / .75); max-width: 32ch; }
.pied__liens { display: grid; gap: .35rem; }
.pied__liens a { text-decoration: none; }
.pied__liens a:hover { text-decoration: underline; }
.pied__mention { margin: 0; }

@media (max-width: 760px) {
    .pied__contenu { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Fiche d'une application */

.bandeau-brouillon { margin: 0; padding: .7rem 1.25rem; background: var(--safran); color: #17212B; text-align: center; font-weight: 600; }

.fiche__entete { background: var(--app); color: var(--sur-app); padding: 2rem 0 clamp(2.5rem, 5vw, 3.5rem); }
.fiche__retour { display: inline-block; font-size: .95rem; margin-bottom: 1.75rem; opacity: .85; }
.fiche__retour::before { content: "‹ "; }
.fiche__retour--admin { color: var(--encre-douce); margin-bottom: 1rem; }
.fiche__identite { display: flex; gap: 1.5rem; align-items: center; }
.fiche__identite h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.035em; font-weight: 800; }
.fiche__accroche { font-size: 1.2rem; margin: .5rem 0 0; max-width: 38em; opacity: .92; }
.fiche__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; margin-top: 2rem; }
.fiche__actions .statut { color: var(--sur-app); font-size: 1rem; }

.fiche__corps {
    display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 6vw, 4rem);
}
.fiche__texte { font-size: 1.12rem; max-width: 64ch; }
.fiche__texte ul { padding-left: 1.2rem; }
.fiche__annonce { border-left: 3px dashed var(--safran); padding-left: 1rem; color: var(--encre-douce); }
.fiche__points { align-self: start; border-top: 4px solid var(--app); padding-top: 1.1rem; }
.fiche__points h2 { font-size: 1.1rem; margin-bottom: .75rem; }
.fiche__points ul { list-style: none; margin: 0; padding: 0; }
.fiche__points li { padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid var(--ligne); position: relative; }
.fiche__points li::before {
    content: ""; position: absolute; left: .15rem; top: 1.05rem;
    width: .7rem; height: .38rem; border-left: 2px solid var(--app); border-bottom: 2px solid var(--app);
    transform: rotate(-45deg);
}
@media (prefers-color-scheme: dark) {
    .fiche__points li::before { border-color: var(--encre); }
}
.fiche__capture { margin-top: 0; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.fiche__capture img { border-radius: var(--rayon); border: 1px solid var(--ligne); box-shadow: 0 20px 50px -25px rgb(15 30 40 / .35); }

.autres { border-top: 1px solid var(--ligne); }
.autres__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.autre {
    display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .9rem .35rem .35rem;
    border: 1px solid var(--ligne); border-radius: 999px; text-decoration: none; background: var(--surface);
}
.autre:hover { border-color: var(--encre-douce); }
.autre .icone--petite { width: 30px; height: 30px; border-radius: 50%; font-size: .75rem; }

@media (max-width: 760px) {
    .fiche__corps { grid-template-columns: 1fr; }
    .fiche__identite { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .icone--fiche { width: 72px; height: 72px; font-size: 1.5rem; }
}

.page-simple { max-width: 640px; }
.page-simple h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; letter-spacing: -.02em; }

/* ------------------------------------------------------------------ Administration */

.admin-entete { background: var(--surface); border-bottom: 1px solid var(--ligne); }
.admin-entete__barre { display: flex; align-items: center; gap: 2rem; min-height: 60px; flex-wrap: wrap; }
.marque--admin { color: var(--petrole); }
.marque--admin .marque__nom { color: var(--encre); font-size: 1.05rem; }
.marque--admin .marque__suffixe { color: var(--encre-douce); opacity: 1; }
@media (prefers-color-scheme: dark) { .marque--admin { color: var(--safran); } }
.admin-entete__nav { display: flex; gap: 1.25rem; margin-right: auto; font-size: .95rem; }
.admin-entete__compte { display: flex; align-items: center; gap: 1rem; font-size: .92rem; }
.admin-entete__compte form { margin: 0; }
.admin-entete__qui { display: grid; line-height: 1.25; text-align: right; }
.admin-entete__qui small { color: var(--encre-douce); }

.admin-principal { padding-bottom: 4rem; }
.admin-page { padding-top: 2rem; }
.admin-page h1 { font-size: 1.9rem; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.admin-page__entete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.admin-page__entete h1 { margin-bottom: .3rem; }
.admin-page__resume { color: var(--encre-douce); margin: 0; }
.admin-vide { padding-block: 3rem; max-width: 620px; }
.admin-vide h1 { font-size: 1.8rem; margin-bottom: 1rem; }

.message { border-radius: var(--rayon); padding: .8rem 1rem; margin: 0 0 1.25rem; }
.message p { margin: 0; }
.message ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.message--succes { background: color-mix(in srgb, var(--succes) 12%, var(--surface)); color: var(--succes); border: 1px solid color-mix(in srgb, var(--succes) 35%, transparent); }
.message--erreur { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }

.tableau { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; font-size: .95rem; }
.tableau th { text-align: left; font-weight: 600; color: var(--encre-douce); padding: .7rem .9rem; border-bottom: 1px solid var(--ligne); font-size: .88rem; }
.tableau td { padding: .75rem .9rem; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau__ordre { width: 1%; white-space: nowrap; }
.tableau__app { display: flex; gap: .8rem; align-items: center; }
.tableau__app a { text-decoration: none; }
.tableau__app a:hover { text-decoration: underline; }
.tableau__accroche { color: var(--encre-douce); font-size: .88rem; max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tableau__actions { white-space: nowrap; text-align: right; }
.tableau__actions a + a { margin-left: .9rem; }

@media (max-width: 860px) {
    .tableau th:nth-child(4), .tableau td:nth-child(4),
    .tableau th:nth-child(5), .tableau td:nth-child(5) { display: none; }
    .tableau__accroche { max-width: 28ch; }
}

.bouton-icone {
    width: 1.9rem; height: 1.9rem; border-radius: 6px; border: 1px solid var(--ligne);
    background: var(--surface); color: var(--encre-douce); cursor: pointer; font-size: .7rem;
}
.bouton-icone:hover:not([disabled]) { border-color: var(--encre-douce); color: var(--encre); }
.bouton-icone[disabled] { opacity: .35; cursor: default; }

.formulaire__colonnes { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .formulaire__colonnes { grid-template-columns: 1fr; } }

.groupe { border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); padding: 1.1rem 1.25rem .4rem; margin: 0 0 1.5rem; min-width: 0; }
.groupe legend { font-weight: 700; padding: 0 .4rem; margin-left: -.4rem; }

.champ { margin-bottom: 1.1rem; }
.champ label, .champ__libelle { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.champ input[type="text"], .champ input[type="url"], .champ input:not([type]), .champ textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--encre);
    background: var(--fond); border: 1px solid var(--ligne); border-radius: 8px; padding: .55rem .7rem;
}
.champ textarea { resize: vertical; line-height: 1.5; }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--petrole); outline-offset: 0; border-color: var(--petrole); }
.champ__aide { font-size: .85rem; color: var(--encre-douce); margin: .35rem 0 0; }
.champ__aide--attention { color: var(--safran-fonce); }
.champ__prefixe { display: flex; align-items: stretch; }
.champ__prefixe span { display: flex; align-items: center; padding: 0 .6rem; background: var(--ligne); border-radius: 8px 0 0 8px; font-size: .9rem; color: var(--encre-douce); }
.champ__prefixe input { border-radius: 0 8px 8px 0 !important; }
.champ__couleur { display: flex; gap: .6rem; align-items: center; }
.champ__couleur input[type="color"] { width: 3rem; height: 2.5rem; padding: 0; border: 1px solid var(--ligne); border-radius: 8px; background: none; cursor: pointer; }
.champ__couleur input:not([type="color"]) { max-width: 9rem; font-variant-numeric: tabular-nums; }

.champ--image { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; align-items: start; }
.champ--image .champ__libelle { grid-column: 1 / -1; }
.image-apercu { display: grid; place-items: center; border: 1px dashed var(--ligne); border-radius: 12px; overflow: hidden; background: var(--fond); }
.image-apercu--icone { width: 72px; height: 72px; }
.image-apercu--icone img { width: 100%; height: 100%; object-fit: cover; }
.image-apercu--capture { width: 160px; aspect-ratio: 16 / 10; }
.image-apercu--capture img { width: 100%; height: 100%; object-fit: cover; }
.image-apercu__vide { font-size: .85rem; color: var(--encre-douce); }

.choix { display: grid; gap: .5rem; margin-bottom: 1.1rem; }
.choix label { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; font-weight: 600; cursor: pointer; padding: .55rem .7rem; border: 1px solid var(--ligne); border-radius: 8px; }
.choix label:has(input:checked) { border-color: var(--petrole); background: var(--petrole-clair); }
.choix input { grid-row: span 2; margin-top: .3rem; accent-color: var(--petrole); }
.choix small { font-weight: 400; color: var(--encre-douce); }

.apercu-ligne { border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); padding: 1rem 1.25rem 0; }
.liste-apps--apercu { grid-template-columns: 1fr; }
.liste-apps--apercu .ligne-app { border-bottom: 0; }

.formulaire__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding-top: .5rem; }
.formulaire__suppression { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }

/* ------------------------------------------------------------------ Erreur Blazor */

#blazor-error-ui {
    display: none; position: fixed; inset: auto 0 0 0; z-index: 1000;
    padding: .8rem 1.25rem; background: var(--safran); color: #17212B; font-weight: 600;
}
#blazor-error-ui .reload { margin-left: .5rem; }
