@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Hanken+Grotesk:wght@400..700&display=swap');
/* Look « A · Comptoir » : bandeau sombre, cartes à aperçu, panneaux blancs. S'ajoute à commun.css. */

/* Typographie : un caractère de titrage (Bricolage Grotesque) et un texte courant (Hanken Grotesk).
   Plus de police à chasse fixe : les étiquettes passent dans la police de texte. Pour revenir en arrière, supprimer ce bloc. */
:root { --titre: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif; --sans: 'Hanken Grotesk', system-ui, sans-serif; --mono: 'Hanken Grotesk', system-ui, sans-serif; }
h1, h2, h3, .chiffre b { font-family: var(--titre); }
.sigle, .avatar { font-weight: 700; letter-spacing: 0.02em; }
body { font-variant-numeric: tabular-nums; }

body { background: #F6F5F3; }

/* ——— Bandeau sombre ——— */
.scene { position: relative; isolation: isolate; overflow: hidden; background: #130E0F; color: #fff; padding-bottom: 168px; }
.scene.basse { padding-bottom: 112px; }
.scene::before { content: ''; position: absolute; inset: -20% -10%; z-index: -2;
  background:
    radial-gradient(42% 60% at 82% 8%, rgba(214, 42, 39, 0.62), transparent 70%),
    radial-gradient(36% 52% at 8% 96%, rgba(142, 16, 20, 0.50), transparent 72%),
    radial-gradient(30% 40% at 52% 40%, rgba(192, 30, 30, 0.14), transparent 70%);
  animation: derive 18s ease-in-out infinite alternate; }
.scene::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 90% at 50% 0%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 30%, transparent 85%); }
@keyframes derive { to { transform: translate3d(-3%, 4%, 0) scale(1.08); } }
.scene .trefle { position: absolute; z-index: -1; right: -60px; top: 40px; width: 520px; opacity: 0.07; pointer-events: none; }

.tete { padding-block: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.tete img { height: 34px; width: auto; display: block; }
.tete nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; }
.tete nav a { padding: 12px 14px; border-radius: 8px; text-decoration: none; color: rgba(255,255,255,0.82); }
.tete nav a:hover, .tete nav a[aria-current] { color: #fff; background: rgba(255,255,255,0.08); }
.tete .compte { margin-left: 8px; background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.22); color: #fff; }

.fil { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.66); }
.fil a { color: rgba(255,255,255,0.86); text-underline-offset: 3px; }
.scene h1 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }

/* ——— Boutons ——— */
.btn-plein { background: var(--encre); border-color: var(--encre); }
.btn-plein:hover { background: var(--accent); border-color: var(--accent); }
.btn-clair { background: #fff; border-color: #fff; color: var(--encre); }
.btn-clair:hover { background: var(--accent-lavis); border-color: var(--accent-lavis); }
.btn-fantome { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); color: #fff; }
.btn-fantome:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.4); }

/* ——— Panneaux et remontée sur le bandeau ——— */
.remonte { position: relative; margin-top: -72px; }
.panneau { background: #fff; border-radius: 18px; border: 1px solid rgba(19,14,15,0.08); box-shadow: 0 1px 2px rgba(19,14,15,0.05), 0 18px 40px -18px rgba(19,14,15,0.28); }

/* ——— Cartes d'application ——— */
.carte { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 18px; border: 1px solid rgba(19,14,15,0.08); overflow: hidden;
  box-shadow: 0 1px 2px rgba(19,14,15,0.05), 0 18px 40px -18px rgba(19,14,15,0.28);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s cubic-bezier(.2,.8,.2,1); }
.carte:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(19,14,15,0.05), 0 32px 56px -20px rgba(19,14,15,0.36); }
.vue { height: 176px; background: var(--teinte); border-bottom: 1px solid rgba(19,14,15,0.06); overflow: hidden; }
.vue svg { width: 100%; height: 100%; display: block; }
.vue .ecran { filter: drop-shadow(0 10px 18px rgba(19,14,15,0.16)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.carte:hover .ecran { transform: translateY(-8px); }
.corps { flex: 1; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.ligne { display: flex; align-items: center; gap: 12px; }
.sigle { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--teinte); color: var(--ton); display: flex; align-items: center; justify-content: center; font: 500 11px var(--mono); }
.ligne h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.ligne h3 a { text-decoration: none; }
.ligne h3 a::after { content: ''; position: absolute; inset: 0; }
.ligne small { display: block; font-size: 13px; color: var(--encre-3); }
.etat { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #24552F; white-space: nowrap; }
.etat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2E8B57; box-shadow: 0 0 0 3px rgba(46,139,87,0.16); }
.corps p { flex: 1; font-size: 14.5px; line-height: 1.55; color: var(--encre-2); }
.pied-carte { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.pied-carte a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.pied-carte .doc { color: var(--encre-2); }
.pied-carte .doc:hover { color: var(--encre); }
.pied-carte .ouvrir { padding: 0 16px; border-radius: 10px; background: var(--encre); color: #fff; transition: background .2s; }
.carte:hover .ouvrir { background: var(--accent); }
.pied-carte svg { width: 16px; height: 16px; }
.ouvrir svg { transition: transform .25s; }
.carte:hover .ouvrir svg { transform: translate(2px, -2px); }

/* ——— Cartes de projet : aperçu « plan », au trait ——— */
.projet { --teinte: color-mix(in srgb, var(--ton) 11%, #fff); }
.projet .vue.plan { height: 136px; color: var(--ton);
  background-color: #F3F1ED; background-image: radial-gradient(rgba(19,14,15,0.13) 1px, transparent 1.2px); background-size: 14px 14px; }
.plan .cadre { fill: #fff; stroke: #B0A99F; stroke-width: 1.5; stroke-dasharray: 5 5; }
.carte:hover .plan .cadre { animation: marche .9s linear infinite; }
@keyframes marche { to { stroke-dashoffset: -20; } }
.plan .gris { fill: #DDD8D0; }
.plan .trait { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.plan .plein { fill: currentColor; }
.projet .corps { padding: 18px 20px 20px; gap: 16px; }
.projet .ligne h3 { font-size: 16.5px; }
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 11.5px; color: #6B6B6B; }
.etapes span { padding-top: 8px; border-top: 3px solid #E4E2DE; }
.etapes .fait { border-color: color-mix(in srgb, var(--ton) 40%, #fff); }
.etapes .ici { border-color: var(--ton); color: var(--encre); font-weight: 600; }
.projet .pied-carte { padding-top: 12px; }
.projet .pied-carte a { color: var(--encre-2); }
.projet .pied-carte .ouvrir { color: #fff; }

@media (prefers-reduced-motion: reduce) { .scene::before, .carte, .carte:hover .plan .cadre { animation: none; } .carte, .ecran, .ouvrir svg { transition: none; } }
