/* ==========================================================================
   css/pages/accueil.css (Arthur) : « Visuels et supports », la vue d'ensemble (ex-« Ma communication »).
   Téléphone d'abord. Les deux colonnes (agir à gauche, suivre à droite) ne viennent
   que si la page a la place (requête de conteneur) : à 1 024 px, une colonne large.
   ========================================================================== */
.acc-page { container: acc-page / inline-size; min-width: 0; }
.acc-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.acc-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@container acc-page (min-width: 760px) {
    .acc-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
    .acc-col { gap: 24px; }
}

/* Un bloc : sa tête, son contenu, son pied */
.acc-bloc { display: flex; flex-direction: column; gap: 14px; }
.acc-bloc__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acc-bloc__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.acc-erreur { display: grid; justify-items: start; gap: 10px; padding: 14px; border-radius: var(--rayon-creux); background: var(--creux); }
.acc-erreur p { font-size: 16px; line-height: 1.5; color: var(--encre-2); }
.acc-lignes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.acc-vignette--vide { display: grid; place-items: center; color: var(--encre-3); }
.acc-vignette--vide svg { width: 24px; height: 24px; }

/* ---------- À faire ---------- */
.acc-afaire__liste { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.acc-afaire__ligne {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px 12px;
    padding: 12px;
    border-radius: var(--rayon-creux);
    background: var(--creux);
}
.acc-afaire__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--objet); color: var(--encre); }
.acc-afaire__ic svg { width: 20px; height: 20px; }
.acc-afaire__texte { font-size: 16px; line-height: 1.45; color: var(--encre); overflow-wrap: anywhere; }
.acc-afaire__texte strong { font-weight: 800; }
.acc-afaire__ligne > .llv-btn { grid-column: 2; justify-self: start; }
@container acc-page (min-width: 560px) {
    .acc-afaire__ligne { grid-template-columns: 40px minmax(0, 1fr) auto; }
    .acc-afaire__ligne > .llv-btn { grid-column: auto; }
}

/* ---------- Prochains temps forts ---------- */
.acc-bloc--tf { container: acc-tf / inline-size; }
.acc-tf { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.acc-tf__carte {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 92px;
    padding: 10px;
    border: 1.5px solid var(--trait-f);
    border-radius: 14px;
    background: var(--objet);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform var(--t-survol) var(--courbe), box-shadow var(--t-survol) var(--courbe), border-color var(--t-survol) ease;
}
.acc-tf__carte:hover { border-color: var(--encre); transform: translate(-1px, -1px); box-shadow: var(--ombre-p); }
.acc-tf__carte:active { transform: translate(1px, 1px); box-shadow: none; }
.acc-tf__carte:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.acc-tf__vignette { display: block; width: 72px; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--creux); }
.acc-tf__vignette svg { display: block; width: 100%; height: 100%; }
.acc-tf__textes { display: grid; gap: 2px; min-width: 0; }
.acc-tf__nom { font: 800 17px/1.3 var(--police); color: var(--encre); }
.acc-tf__date { font-size: 15px; line-height: 1.4; color: var(--encre-2); }
.acc-tf__prets { font-size: 14px; line-height: 1.4; color: var(--encre-3); }
.acc-tf__fleche { color: var(--encre-3); }
.acc-tf__fleche svg { width: 20px; height: 20px; }
@container acc-tf (max-width: 519px) {
    .acc-tf > li:nth-child(n+3) { display: none; }
}
@container acc-tf (min-width: 520px) {
    .acc-tf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .acc-tf__carte { grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; height: 100%; padding: 10px 10px 14px; }
    .acc-tf__vignette { width: 100%; }
    .acc-tf__fleche { display: none; }
}

/* ---------- Vos supports ---------- */
.acc-total { font-size: 16px; line-height: 1.5; color: var(--encre-2); }
.acc-total strong { font-weight: 800; color: var(--encre); }
.acc-support {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 60px;
    padding: 10px 12px;
    border: 1.5px solid var(--trait-f);
    border-radius: 12px;
    background: var(--objet);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform var(--t-survol) var(--courbe), box-shadow var(--t-survol) var(--courbe), border-color var(--t-survol) ease;
}
.acc-support:hover { border-color: var(--encre); transform: translate(-1px, -1px); box-shadow: var(--ombre-p); }
.acc-support:active { transform: translate(1px, 1px); box-shadow: none; }
.acc-support:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.acc-support__textes { display: grid; min-width: 0; }
.acc-support__nom { font: 700 16px/1.35 var(--police); color: var(--encre); overflow-wrap: anywhere; }
.acc-support__n { font-size: 15px; color: var(--encre-2); }
.acc-support .sui-courbe { width: 96px; height: auto; }
.acc-support__fleche { color: var(--encre-3); }
.acc-support__fleche svg { width: 20px; height: 20px; }

/* ---------- Mes derniers visuels ---------- */
.acc-vis { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.acc-vis__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.acc-vis__vignette { display: grid; place-items: center; width: 64px; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--creux); }
.acc-vis__vignette > svg, .acc-vis__vignette img { display: block; width: 100%; height: 100%; object-fit: contain; }
.acc-vis__vignette .sur-apercu { width: 100%; height: 100%; aspect-ratio: auto !important; border-radius: 0; }
.acc-vis__textes { min-width: 0; }
.acc-vis__nom { font: 700 16px/1.35 var(--police); color: var(--encre); overflow-wrap: anywhere; }
.acc-vis__meta { font-size: 15px; line-height: 1.4; color: var(--encre-2); }
@container acc-page (max-width: 759px) {
    .acc-vis__item:nth-child(n+4) { display: none; }
}
@container acc-page (min-width: 760px) {
    .acc-vis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .acc-vis__item { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 8px; }
    .acc-vis__vignette { width: 100%; aspect-ratio: 4 / 3; padding: 8px; }
    .acc-vis__item > .llv-btn { justify-self: start; }
}

/* ---------- Mon kit de marque ---------- */
.acc-kit { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px 14px; }
.acc-kit__logo { display: grid; place-items: center; width: 56px; height: 56px; padding: 6px; border-radius: 12px; background: var(--creux); color: var(--encre-3); }
.acc-kit__logo img { display: block; max-width: 100%; max-height: 100%; }
.acc-kit__milieu { display: grid; gap: 6px; min-width: 0; }
.acc-kit__couleurs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.acc-kit__couleurs li { width: 22px; height: 22px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(34, 23, 38, 0.25); }
.acc-kit__etat { font-size: 15px; color: var(--vert); font-weight: 600; }
.acc-kit__etat.est-a-completer { color: #B4590F; }
.acc-kit > .llv-btn { grid-column: 1 / -1; justify-self: start; }
@container acc-page (min-width: 560px) {
    .acc-kit { grid-template-columns: 56px minmax(0, 1fr) auto; }
    .acc-kit > .llv-btn { grid-column: auto; }
}

/* ---------- Le squelette ---------- */
.acc-sq-tf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.acc-sq-tf > :nth-child(n+3) { display: none; }
.acc-sq-tf > * { height: 92px !important; }
@container acc-tf (min-width: 520px) {
    .acc-sq-tf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .acc-sq-tf > :nth-child(n+3) { display: block; }
    .acc-sq-tf > * { height: 230px !important; }
}

/* Les liens texte de la page : 44 px sous le doigt */
.acc-page .llv-lien { display: inline-flex; align-items: center; min-height: 44px; }
