/* Accueil, piste C. Texte sur carte ivoire : #0F1013 / #3A3830 ; repères bronze sur carte : #6E4F0F ; or plein : #E8B04A. */

.ac-k { margin: 0; font-size: 12px; color: var(--acc); }
.ac-h2 { margin: 0; font: 400 56px/1 var(--f-serif); }
.ac-h2--s { font-size: 44px; }
.ac-muted { color: var(--mut); }
.ac-muted2 { margin: 0; color: var(--fg2); }
.ac-sec { padding-block: 88px; }
.ac-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 36px; }
.ac-head--tight { align-items: baseline; margin-bottom: 28px; }
.ac-band { background: var(--bg2); border-block: 1px solid var(--line); }
.ac-btn { padding: 16px 24px; font-size: 16px; }
.ac-btn--line { align-self: flex-start; border-color: var(--fg); padding: 14px 22px; }
.c-main .c-btn--gold, .c-main .c-btn--gold:hover { color: #0F1013; }

/* ---------- Héros + jeu de cartes ---------- */
.ac-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-block: 80px 72px; }
.ac-intro { flex: 1 1 520px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ac-h1 { margin: 0; font-weight: 500; font-size: 14px; letter-spacing: .04em; color: var(--acc); }
.ac-claim { margin: 0; font: 400 100px/.95 var(--f-serif); }
.ac-claim em { color: var(--acc); }
.ac-lede { margin: 0; max-width: 560px; font-size: 19px; color: var(--fg2); }
.ac-lede a { color: var(--fg); text-underline-offset: 3px; }
.ac-status {
  margin: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border: 1px solid var(--okbd); border-radius: 999px; background: var(--okbg); color: var(--oktx); font-size: 14px;
}
.ac-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.ac-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.ac-deck-zone { flex: 1 1 520px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.ac-deck { position: relative; width: 340px; height: 470px; touch-action: pan-y; }
.ac-back { position: absolute; inset: 0; border: 6px solid #6B5220; border-radius: 14px; }
.ac-back--l { background: var(--ph2); transform: rotate(-7deg) translate(-18px, 6px); }
.ac-back--r { background: var(--ph1); transform: rotate(4deg) translate(14px, 2px); }
.ac-card { position: absolute; inset: 0; perspective: 1400px; transform: translateX(var(--dx, 0px)) rotate(calc(var(--tilt) + var(--dx, 0px) / 40)); transition: transform .3s var(--ease-c), opacity .2s; cursor: grab; }
.ac-card.is-drag { transition: none; cursor: grabbing; }
.ac-card[hidden] { display: none; }
.ac-flipper { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s var(--ease-c); }
.ac-card.is-flipped .ac-flipper { transform: rotateY(180deg); }
.ac-face {
  position: absolute; inset: 0; border: 6px solid #E8B04A; border-radius: 14px; backface-visibility: hidden;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 48px var(--sh); overflow: hidden;
}
.ac-front { background: var(--card); color: #0F1013; padding: 14px; }
.ac-card-top, .ac-card-foot { display: flex; justify-content: space-between; font-size: 11px; color: #3A3830; }
.ac-stamp { display: inline-block; }
.ac-ini {
  flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 6px;
  background: repeating-linear-gradient(135deg, #DDD8CE 0 8px, #E5E1D8 8px 16px);
  font: 400 96px/1 var(--f-serif); color: #6E4F0F;
}
.ac-ini { position: relative; overflow: hidden; min-height: 0; }
.ac-ini.has-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-ini-badge {
  position: absolute; left: 8px; bottom: 8px; padding: 2px 10px 4px; border-radius: 4px;
  background: var(--card); color: #6E4F0F; font: 400 28px/1 var(--f-serif); box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}
.ac-ini-cap { margin-top: -4px; font-size: 10px; color: #3A3830; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-card-name { margin: 0; font: 400 38px/1 var(--f-serif); }
.ac-card-desc { margin: 0; font-size: 14px; line-height: 1.4; color: #3A3830; }
.ac-card-foot { padding-top: 8px; border-top: 1px solid #C9C4B9; }
.ac-card-foot span + span { color: #6E4F0F; }
.ac-verso { transform: rotateY(180deg); background: var(--ph2); color: var(--fg); padding: 22px; gap: 14px; }
.ac-verso-k { margin: 0; font-size: 11px; color: var(--acc); }
.ac-verso-name { margin: 0; font: 400 34px/1 var(--f-serif); }
.ac-verso ul { list-style: none; margin: 0; padding: 0; }
.ac-verso li { border-bottom: 1px solid var(--line2); }
.ac-verso li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; text-decoration: none; }
.ac-verso li .c-mono { color: var(--mut); }
.ac-verso-all { margin-top: auto; font-size: 14px; }
.ac-deck-ctrl { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ac-deck-ctrl .c-btn { min-height: 48px; background: var(--bg); }
.ac-sq { width: 48px; padding: 0; font-size: 18px; }
.ac-flip { border-color: var(--fg); }
.ac-flip[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.c-main .ac-shuffle { border-color: #E8B04A; color: var(--acc); gap: 0; white-space: pre; }
html:not(.js) .ac-deck-ctrl, html:not(.js) .ac-minis { display: none; }

/* Animations du jeu (désactivées par prefers-reduced-motion dans theme.css) */
.ac-card.is-dealt { animation: ac-deal .45s var(--ease-c) both; }
.ac-card.is-dealt .ac-stamp { animation: ac-stamp .4s ease-out .2s both; }
.ac-deck.is-riffle .ac-back--l { animation: ac-riffL .7s ease-in-out both; }
.ac-deck.is-riffle .ac-back--r { animation: ac-riffR .7s ease-in-out both; }
.ac-deck.is-riffle .ac-card { opacity: 0; }
@keyframes ac-deal { from { transform: translate(40px, -36px) rotate(8deg); opacity: 0; } }
@keyframes ac-stamp { from { transform: scale(1.35); opacity: 0; } }
@keyframes ac-riffL { 35% { transform: translateX(-150px) rotate(-14deg); } 70% { transform: translateX(-20px) rotate(-4deg); } }
@keyframes ac-riffR { 35% { transform: translateX(150px) rotate(14deg); } 70% { transform: translateX(20px) rotate(4deg); } }

/* ---------- Nouveauté (roman) ---------- */
.ac-spot-sec { padding-bottom: 72px; }
.ac-spot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 20px 32px 20px 20px;
  background: var(--card); border-radius: 14px; text-decoration: none; box-shadow: 0 20px 40px var(--sh);
  transform: rotate(-.6deg); transition: transform .25s var(--ease-c);
}
.c-main .ac-spot, .c-main .ac-spot:hover { color: #0F1013; }
.ac-spot:hover, .ac-spot:focus-visible { transform: rotate(0deg) translateY(-6px) scale(1.01); }
.ac-spot-pic { flex: none; width: 120px; height: 168px; border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(135deg, #DDD8CE 0 8px, #E5E1D8 8px 16px); }
.ac-spot-pic img, .ac-tz-pic img { width: 100%; height: 100%; object-fit: cover; }
.is-blur img { filter: blur(14px); transform: scale(1.15); }
.ac-spot-body { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.ac-spot-k { font-size: 12px; color: #6E4F0F; }
.ac-spot-t { font: 400 44px/1 var(--f-serif); }
.ac-spot-d { color: #3A3830; }
.ac-spot-cta { padding: 14px 20px; border-radius: 6px; background: #0F1013; color: #ECE9E3; font-weight: 600; }

/* ---------- Showreel ---------- */
.ac-reel { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 64px; }
.ac-reel-txt { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.ac-reel-txt a { align-self: flex-start; }
.ac-reel-player { flex: 2 1 640px; min-width: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); }

/* ---------- Projets récents ---------- */
.ac-recent { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px 32px; }
.ac-piece {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px; border-radius: 12px;
  background: var(--card); text-decoration: none; box-shadow: 0 16px 32px var(--sh);
  transform: rotate(var(--tilt)); transition: transform .25s var(--ease-c), box-shadow .25s;
}
.c-main .ac-piece, .c-main .ac-piece:hover { color: #0F1013; }
.ac-piece:hover, .ac-piece:focus-visible { transform: rotate(0deg) translateY(-6px); box-shadow: 0 26px 44px var(--sh); }
.ac-piece-top { display: flex; justify-content: space-between; font-size: 11px; color: #3A3830; }
.ac-piece-pic { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(135deg, #DDD8CE 0 8px, #E5E1D8 8px 16px); }
.ac-piece-pic img, .ac-blog-pic img { width: 100%; height: 100%; object-fit: cover; }
.ac-piece-t { margin: 0; font: 400 32px/1 var(--f-serif); }
.ac-piece-c { margin-top: auto; padding-top: 6px; border-top: 1px solid #C9C4B9; font-size: 13px; color: #3A3830; }

/* ---------- La collection complète ---------- */
.ac-col { padding-block: 56px; }
.ac-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 16px; }
.ac-mini {
  aspect-ratio: 5 / 7; padding: 10px; border: 3px solid var(--fg); border-radius: 10px; background: var(--card); color: #0F1013;
  display: flex; flex-direction: column; justify-content: space-between; text-align: left; cursor: pointer;
  transform: rotate(var(--tilt)); transition: transform .2s ease-out;
  animation: ac-fan .6s var(--ease-c) var(--d) both;
}
.ac-mini:hover, .ac-mini:focus-visible { transform: translateY(-8px) rotate(0deg); }
.ac-mini[aria-pressed="true"] { border-color: var(--acc); }
.ac-mini .c-mono { font-size: 11px; color: #3A3830; }
.ac-mini-pic { position: relative; flex: 1; margin: 8px 0; border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(135deg, #DDD8CE 0 8px, #E5E1D8 8px 16px); display: flex; align-items: flex-end; }
.ac-mini-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-mini-pic span { position: relative; margin: 6px; padding: 0 6px 2px; border-radius: 3px; background: var(--card); color: #6E4F0F; font: 400 18px/1.1 var(--f-serif); }
.ac-mini-t { font: 400 22px/1.05 var(--f-serif); }
@keyframes ac-fan { from { transform: translate(-120px, -80px) rotate(-20deg); opacity: 0; } }

/* ---------- Ce que je fais ---------- */
.ac-svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.ac-svc a, .ac-medias a {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px;
  border: 1px solid var(--bd); border-radius: 10px; background: var(--bg); text-decoration: none;
}
.ac-svc a:hover, .ac-medias a:hover { border-color: var(--acc); }
.ac-svc .c-mono, .ac-medias .c-mono { font-size: 12px; color: var(--acc); }
.ac-svc-t, .ac-med-t { font: 400 30px/1 var(--f-serif); color: var(--fg); }
.ac-svc-d, .ac-med-d { font-size: 14px; color: var(--mut); }

/* ---------- Dans l'atelier ---------- */
.ac-atelier { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 24px; }
.ac-tz { display: flex; align-items: center; gap: 20px; height: 100%; padding: 16px; border: 1px solid var(--bd); border-radius: 12px; background: var(--bg); text-decoration: none; }
.ac-tz:hover { border-color: var(--acc); }
.ac-tz-pic { flex: none; width: 132px; height: 132px; border-radius: 6px; overflow: hidden; background: var(--ph1); }
.ac-tz-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ac-stampbox { align-self: flex-start; padding: 1px 8px; border: 1.5px solid var(--mut); border-radius: 4px; font-size: 11px; color: var(--fg2); }
.ac-stampbox.is-soon, .ac-stampbox.is-out { border-color: var(--acc); color: var(--acc); }
.ac-tz-t { font: 400 32px/1 var(--f-serif); color: var(--fg); }
.ac-tz-d { font-size: 14px; color: var(--mut); }
.ac-prog { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--mut); }
.ac-prog-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.ac-prog-bar span { display: block; height: 100%; border-radius: 3px; background: #E8B04A; transform-origin: left; transform: scaleX(var(--p)); transition: transform 1.2s ease-out .3s; }
.js .ac-prog-bar span:not(.is-in) { transform: scaleX(0); }
.ac-tz:hover .ac-stampbox, .ac-tz:focus-visible .ac-stampbox { animation: ac-print .4s ease-out; }
@keyframes ac-print { from { transform: scale(1.3); opacity: 0; } }

/* ---------- Mes médias ---------- */
.ac-med-sub { margin: 8px 0 36px; }
.ac-medias { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.ac-medias a { transform: rotate(var(--tilt)); gap: 6px; }

/* ---------- Moodboard ---------- */
.ac-mood-sec { border-top: 1px solid var(--line); padding-block: 80px; }
.ac-mood-sec .ac-h2 { margin-bottom: 32px; }
.ac-mood { position: relative; height: 440px; }
.ac-pin { position: absolute; margin: 0; background: var(--card); box-shadow: 0 16px 32px var(--sh); transition: transform .25s var(--ease-c); }
.ac-pin:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); }
.ac-pin figcaption { position: absolute; bottom: 12px; left: 12px; font-size: 11px; color: #3A3830; }
.ac-pin img { width: 100%; object-fit: cover; }
.ac-pin--a { left: 0; top: 20px; width: 28%; padding: 12px 12px 40px; transform: rotate(-3deg); }
.ac-pin--a img { aspect-ratio: 4 / 3; }
.ac-pin--b { left: 32%; top: 0; width: 22%; padding: 20px; color: #0F1013; transform: rotate(2deg); }
.ac-pin--b p { margin: 0; }
.ac-pin--b .c-mono { font-size: 11px; color: #3A3830; }
.ac-aa { font: 400 96px/1 var(--f-serif); }
.ac-pin--c { right: 6%; top: 40px; width: 28%; padding: 12px 12px 40px; transform: rotate(4deg); }
.ac-pin--c img { aspect-ratio: 1; }
.ac-tape { position: absolute; top: -10px; left: 50%; width: 72px; height: 22px; background: color-mix(in srgb, #E8B04A 35%, transparent); transform: translateX(-50%) rotate(-3deg); z-index: 1; }
.ac-pin-sw { position: absolute; left: 31%; top: 270px; list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; transform: rotate(-2deg); }
.ac-pin-sw li { width: 96px; padding: 6px 6px 8px; background: var(--card); }
.ac-pin-sw li span:first-child { display: block; height: 80px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.ac-pin-sw .is-gold { background: #E8B04A; }
.ac-pin-sw .c-mono { font-size: 11px; color: #3A3830; }

/* ---------- Travaillons ensemble ---------- */
.ac-tw { display: flex; flex-direction: column; gap: 40px; padding-block: 80px; }
.ac-tw-txt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 16px 48px; }
.ac-tw-txt .ac-k { grid-column: 1 / -1; }
.ac-tw-txt .ac-h2 { grid-row: 2; }
.ac-tw-txt .ac-muted2 { grid-row: 2; max-width: 520px; }
.ac-tw-txt .ac-btn--line { grid-row: 2; align-self: end; white-space: nowrap; }
.ac-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ac-steps li { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 10px; background: var(--card); color: #0F1013; transform: rotate(var(--tilt)); }
.ac-steps .c-mono { font-size: 11px; color: #6E4F0F; }
.ac-step-t { font: 400 26px/1.1 var(--f-serif); }
.ac-step-d { font-size: 14px; color: #3A3830; }

/* ---------- Blog ---------- */
.ac-blog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.ac-blog a { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; }
.ac-blog-pic { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--ph1); }
.ac-blog .c-mono { font-size: 12px; }
.ac-blog-t { font: 400 26px/1.15 var(--f-serif); }
.ac-tools { justify-content: space-between; gap: 16px; padding: 24px; border-radius: 10px; background: #E8B04A; transform: rotate(1.5deg); }
.c-main .ac-tools, .c-main .ac-tools:hover { color: #0F1013; }
.ac-tools-n { font: 400 64px/.9 var(--f-serif); }
.ac-tools-d { font-weight: 500; }

/* ---------- Mobile (390 px) ---------- */
@media (max-width: 1023px) {
  .ac-sec { padding-block: 40px; }
  .ac-h2 { font-size: 40px; }
  .ac-h2--s { font-size: 32px; }
  .ac-head { margin-bottom: 16px; }
  .ac-hero { padding-block: 24px 40px; gap: 32px; }
  .ac-intro { gap: 16px; }
  .ac-h1 { font-size: 13px; letter-spacing: 0; }
  .ac-claim { font-size: 52px; line-height: .98; }
  .ac-lede { font-size: 16px; }
  .ac-status { font-size: 13px; padding: 5px 12px; }
  .ac-actions { flex-direction: column; gap: 10px; }
  .ac-btn { justify-content: center; }
  .ac-deck { width: 270px; height: 380px; }
  .ac-back, .ac-face { border-width: 5px; border-radius: 12px; }
  .ac-ini { font-size: 72px; }
  .ac-card-name { font-size: 30px; }
  .ac-card-desc { font-size: 13px; }
  .ac-verso { padding: 18px; }
  .ac-verso-name { font-size: 28px; }
  .ac-long { display: none; }
  .ac-deck-ctrl { gap: 8px; }
  .ac-deck-ctrl .c-btn:not(.ac-sq) { padding-inline: 14px; font-size: 14px; }
  .ac-spot-sec { padding-bottom: 40px; }
  .ac-spot { gap: 14px; padding: 12px; flex-wrap: nowrap; transform: rotate(-1deg); }
  .ac-spot-pic { width: 76px; height: 106px; }
  .ac-spot-body { flex: 1 1 auto; gap: 4px; }
  .ac-spot-k { font-size: 10px; }
  .ac-spot-t { font-size: 24px; }
  .ac-spot-d { display: none; }
  .ac-spot-cta { display: none; }
  .ac-reel { padding-block: 36px; gap: 16px; }
  .ac-reel-txt .ac-muted2, .ac-reel-txt a { display: none; }
  .ac-reel-player { flex-basis: 100%; }
  /* Carrousels aimantés */
  .ac-recent, .ac-atelier { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: -16px; padding: 12px 16px 20px; }
  .ac-recent li { flex: none; width: 78%; scroll-snap-align: start; }
  .ac-atelier li { flex: none; width: 88%; scroll-snap-align: start; }
  .ac-piece-t { font-size: 26px; }
  .ac-tz { flex-direction: column; align-items: stretch; }
  .ac-tz-pic { width: 100%; height: 160px; }
  .ac-tz-t { font-size: 26px; }
  .ac-col { padding-block: 36px; }
  .ac-minis { display: flex; overflow-x: auto; margin-inline: -16px; padding: 12px 16px; scroll-snap-type: x mandatory; }
  .ac-mini { flex: none; width: 110px; scroll-snap-align: start; }
  .ac-mini-t { font-size: 19px; }
  .ac-svc-t, .ac-med-t { font-size: 26px; }
  .ac-medias a { transform: none; }
  .ac-mood { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .ac-pin, .ac-pin-sw { position: relative; left: auto; right: auto; top: auto; width: auto; }
  .ac-pin--a { grid-column: 1 / -1; }
  .ac-aa { font-size: 64px; }
  .ac-pin-sw { grid-column: 1 / -1; justify-content: center; }
  .ac-pin-sw li { width: 30%; }
  .ac-tw { padding-block: 40px; gap: 24px; }
  .ac-tw-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
  .ac-steps { display: flex; overflow-x: auto; margin-inline: -16px; padding: 8px 16px 16px; scroll-snap-type: x mandatory; }
  .ac-steps li { flex: none; width: 70%; scroll-snap-align: start; }
  .ac-step-t { font-size: 22px; }
  .ac-blog-t { font-size: 22px; }
}
