/* Pages du serveur (connexion, créations, socles) : le thème vient de theme.css */

.page { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; display: grid; gap: 16px; }
.page h1 { font-family: "Fredoka", system-ui, sans-serif; font-size: 26px; margin: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.btn { text-decoration: none; color: inherit; }
.btn.primary { color: var(--accent-ink); }
.btn.danger { color: var(--err); }
.msg.success { background: var(--ok-soft); color: var(--ok); }
.empty { color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.hint a { color: var(--accent); text-decoration: none; }
.hint a:hover { text-decoration: underline; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.card input[type="email"], .card input[type="password"], .card input[type="text"], .card input[type="file"] {
    font: inherit;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 11px;
}
.check { display: flex !important; flex-direction: row; align-items: center; gap: 8px; }

.login { max-width: 400px; width: 100%; margin: 40px auto; display: grid; gap: 14px; }
.upload { display: grid; gap: 12px; grid-template-columns: 1fr 1fr auto; align-items: end; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.creation { display: grid; gap: 10px; padding: 10px; }
.creation .thumb { display: grid; place-items: center; height: 150px; background: var(--soft); border-radius: 10px; overflow: hidden; }
.creation .thumb img { max-width: 90%; max-height: 90%; }
.creation .info strong, .creation .info small { display: block; }
.creation .info small { color: var(--muted); }
.creation .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.more > summary { list-style: none; cursor: pointer; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] { display: grid; gap: 6px; width: 100%; }
.inline { display: flex; gap: 6px; }
.inline input { flex: 1; min-width: 0; font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: var(--panel); color: var(--ink); }

.list { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list th, .list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.list th { font-size: 12px; color: var(--muted); }
.list td.actions { display: flex; gap: 6px; justify-content: flex-end; }

@media (max-width: 700px) {
    .upload { grid-template-columns: 1fr; }
    .brand-by { display: none; }
}

/* Liens de l'en-tête (boutique, panier, connexion) : pastilles comme le menu du compte ; la page en cours est marquée */
.top-links { display: flex; align-items: center; gap: 6px 8px; }
.top-links a { color: var(--header-ink); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--header-soft); border: 1px solid transparent; }
.top-links a:hover { border-color: var(--header-muted); }
.top-links a[aria-current="page"] { border-color: var(--accent); }
.top-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.top-links a.btn { text-decoration: none; }
.top-links a.btn.primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); padding: 6px 14px; }

/* Titre de section (pages publiques) : titre, trait fin sur toute la largeur et court repère de couleur ; lien « Tout voir » à droite */
.section-head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 0 12px; margin: 14px 0 4px; border-bottom: 1px solid var(--line); }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; border-radius: 3px; background: var(--accent); }
.page .section-head h2 { font-family: "Fredoka", system-ui, sans-serif; font-size: 26px; line-height: 1.1; margin: 0; display: flex; align-items: center; gap: 10px; }
.page .section-head h2 a { color: inherit; text-decoration: none; }
.page .section-head h2 a:hover { color: var(--accent); }
.section-head > a, .section-head .hint a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; }
.section-head > a:hover, .section-head .hint a:hover { text-decoration: underline; }
.section-head .compte { background: var(--soft); color: var(--muted); border-radius: 999px; padding: 1px 10px; font-size: 13px; font-family: system-ui, sans-serif; }
/* Variante pour les titres nombreux ou imbriqués (étapes d'un formulaire, articles des conditions de vente) */
.page .section-head--compact h2 { font-size: 20px; }
.section-head h2 > span:first-child:not(.compte) { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-family: system-ui, sans-serif; flex: none; }

/* Fil d'Ariane */
.fil { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 14px; }
.fil li { display: inline-flex; align-items: center; min-width: 0; color: var(--muted); }
.fil li + li::before { content: ""; width: 7px; height: 7px; margin: 0 10px 0 6px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); opacity: .55; flex: none; }
.fil a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; padding: 3px 6px; margin: 0 -6px; border-radius: 8px; }
.fil a:hover { color: var(--accent); background: var(--accent-soft); }
.fil a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fil svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fil [aria-current="page"] { color: var(--ink); font-weight: 600; min-width: 0; }
.fil [aria-current="page"] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 38ch; }
@media (max-width: 560px) { .fil li:first-child a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
