/* ORYKA — page « Nos créations » : en-tête, filtres, cartes des projets et fiche d'un projet.
   S'ajoute à pages.css (couleurs, typographies, menu et pied de page communs). */
:root { --mist: #f5f8fe; --glacier: #cfddff; --azur: #6e9bff; --r-card: 24px; }
html.projet-ouvert { overflow: hidden; }
.show-xs { display: none; }
@media (max-width: 600px) { .show-xs { display: inline; } }

/* header */
.port-head {
  margin-top: 24px; border-radius: 32px; padding: clamp(32px, 6vw, 72px) clamp(22px, 5vw, 56px);
  background: radial-gradient(42% 90% at 92% 100%, rgba(36,89,230,.28), rgba(110,155,255,0) 70%), linear-gradient(160deg, #f8faff 0%, #eef3fc 60%, #e6edfb 100%);
  box-shadow: inset 0 0 0 1px rgba(36,89,230,.08); display: grid; gap: 16px; justify-items: start;
}
.port-head .eyebrow span:not(:empty)::before { content: " · "; }
.port-head h1 { font: 500 clamp(40px, 6.4vw, 72px)/1 var(--sans); letter-spacing: -0.035em; color: var(--nuit); text-wrap: balance; }
.port-head .lead { max-width: 58ch; font: 500 clamp(16px, 1.6vw, 18px)/1.5 var(--geist); color: var(--text-2); }

/* filters */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filtre { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 16px; border: 0; border-radius: 9999px; cursor: pointer;
  background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px var(--hairline); font: 500 14px/1.3 var(--sans); color: var(--text-2);
  transition: background-color .15s ease, color .15s ease; }
.filtre span { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 9999px; display: grid; place-items: center; background: var(--tint); color: var(--cobalt); font-size: 12px; }
.filtre:hover { background: var(--white); color: var(--nuit); }
.filtre[aria-pressed="true"] { background: var(--cobalt); color: var(--white); box-shadow: none; }
.filtre[aria-pressed="true"] span { background: rgba(255,255,255,.2); color: var(--white); }

/* grid of projects */
.port-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
@media (max-width: 980px) { .port-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .port-grid { grid-template-columns: 1fr; } }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; font: 500 12px/1.3 var(--sans); letter-spacing: .02em; }
.chip.light { background: var(--tint); color: var(--nuit); }

.crea {
  position: relative; border-radius: var(--r-card); background: var(--mist); padding: 12px; display: grid; gap: 14px; align-content: start;
  box-shadow: inset 0 0 0 1px rgba(36,89,230,.08); transition: transform .25s ease, box-shadow .25s ease;
}
.crea-shot { display: block; border-radius: 16px; overflow: hidden; background: var(--white); box-shadow: rgba(10,20,48,.06) 0 0 0 1px, rgba(21,48,127,.16) 0 16px 36px -22px; }
.crea-bar { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 12px; background: #f3f6fb; border-bottom: 1px solid #e6ebf4; }
.crea-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d3dae7; flex: none; }
.crea-bar span { margin-inline: auto; padding-right: 26px; font: 500 11px/1 var(--sans); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crea-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.crea-info { padding: 4px 10px 10px; display: grid; gap: 8px; justify-items: start; }
.crea-info h3 { font: 500 20px/1.3 var(--geist); color: var(--nuit); letter-spacing: -0.01em; }
.crea-info p { color: var(--text-2); font-size: 15px; }
/* in preparation: a soft wireframe */
.crea-ph { aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto 1fr; gap: 8% 6%; padding: 8% 7%; align-content: start;
  background: radial-gradient(70% 80% at 85% 20%, rgba(110,155,255,.28), rgba(110,155,255,0) 70%), var(--white); }
.crea-ph b { display: block; height: 9px; border-radius: 6px; background: #e3eaf7; grid-column: 1; }
.crea-ph b:nth-child(1) { width: 80%; height: 14px; background: #cfd9ee; }
.crea-ph b:nth-child(2) { width: 62%; height: 14px; background: #cfd9ee; }
.crea-ph b:nth-child(3) { width: 90%; }
.crea-ph span { grid-column: 2; grid-row: 1 / span 3; border-radius: 10px; min-height: 100%; background: linear-gradient(160deg, #dce6ff, #8fb0ff 55%, #2459e6); opacity: .8; }
.crea-ph em { display: none; }
.crea-ph.is-shop { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto 1fr; gap: 10% 5%; }
.crea-ph.is-shop b { grid-column: 1 / -1; }
.crea-ph.is-shop b:nth-child(2), .crea-ph.is-shop b:nth-child(3) { display: none; }
.crea-ph.is-shop span { display: none; }
.crea-ph.is-shop em { display: block; border-radius: 10px; min-height: 64%; background: linear-gradient(170deg, #eef3fc, #cfddff); box-shadow: inset 0 -26% 0 #fff; }
.is-soon .chip.light { background: var(--white); box-shadow: inset 0 0 0 1px var(--hairline); }
.is-soon .crea-info h3 { color: var(--text-2); }
/* the invitation card */
.crea-cta {
  overflow: hidden; isolation: isolate; color: var(--white); padding: clamp(24px, 3vw, 32px); align-content: space-between; gap: 28px; min-height: 100%;
  background: radial-gradient(80% 70% at 85% 100%, rgba(110,155,255,.55), rgba(110,155,255,0) 70%), linear-gradient(155deg, #2f66f0 0%, #2459e6 45%, #1b46c2 100%);
  box-shadow: rgba(36,89,230,.35) 0 24px 48px -28px;
}
.crea-cta-mark { position: absolute; right: -40px; top: -30px; width: 190px; height: 230px; color: rgba(255,255,255,.12); z-index: -1; }
.crea-cta-mark svg { width: 100%; height: 100%; }
.crea-cta-text { display: grid; gap: 10px; }
.crea-cta-text b { font: 500 clamp(24px, 2.4vw, 28px)/1.15 var(--geist); letter-spacing: -0.015em; }
.crea-cta-text span { color: rgba(255,255,255,.82); font-size: 15px; }
.pill svg { width: 16px; height: 16px; flex: none; }
.pill-white { justify-self: start; background: var(--white); color: var(--cobalt); padding: 10px 18px; }
.crea-cta .pill-white svg { transition: transform .2s ease; }
@media (hover: hover) {
  .crea:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(36,89,230,.16), rgba(21,48,127,.16) 0 24px 44px -26px; }
  .crea:hover .crea-shot img { transform: scale(1.03); }
  .crea-cta:hover { box-shadow: rgba(36,89,230,.45) 0 28px 52px -26px; }
  .crea-cta:hover .pill-white svg { transform: translateX(3px); }
}
@media (max-width: 980px) { .crea-cta { grid-column: 1 / -1; } }

/* ---------- one project, opened over the page ---------- */
.projet {
  width: min(1120px, calc(100vw - 32px)); max-width: none; height: calc(100dvh - 32px); max-height: none; margin: auto; padding: 0; border: 0;
  border-radius: 28px; background: var(--white); color: var(--text); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 40px 120px -40px rgba(10,20,48,.6);
}
.projet::backdrop { background: rgba(10,20,48,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.projet-inner { position: relative; padding: clamp(22px, 4.5vw, 56px); display: grid; gap: clamp(28px, 4vw, 44px); outline: 0; }
.projet-close {
  position: sticky; top: 0; z-index: 2; justify-self: end; margin-bottom: -84px; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--nuit); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--hairline-strong), 0 8px 20px -10px rgba(10,20,48,.35); transition: background-color .15s ease;
}
.projet-close svg { width: 20px; height: 20px; }
.projet-close:hover { background: var(--tint); }

.projet-head { display: grid; gap: 16px; justify-items: start; padding-right: 56px; }
.projet-head h2 { font: 500 clamp(36px, 5.4vw, 64px)/1.02 var(--sans); letter-spacing: -0.035em; color: var(--nuit); text-wrap: balance; }
.projet-resume { max-width: 60ch; font: 500 clamp(16px, 1.7vw, 19px)/1.5 var(--geist); color: var(--text-2); }
.projet-meta { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 4px 0 0; }
.projet-meta dt { font: 500 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.projet-meta dd { margin: 2px 0 0; font: 500 16px/1.4 var(--sans); color: var(--nuit); }
.projet-head .pill { margin-top: 4px; }

.projet-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.projet-texte { color: var(--text-2); font-size: 17px; line-height: 1.65; }
.projet-texte > * + * { margin-top: 14px; }
.projet-texte h2 { font: 500 22px/1.25 var(--geist); color: var(--nuit); margin-top: 28px; }
.projet-texte h3 { font: 500 18px/1.35 var(--geist); color: var(--nuit); margin-top: 22px; }
.projet-texte ul, .projet-texte ol { padding-left: 22px; margin-bottom: 0; }
.projet-texte li::marker { color: var(--cobalt); }
.projet-texte strong { color: var(--nuit); font-weight: 500; }
.projet-texte a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.projet-side { display: grid; gap: 24px; padding: 24px; border-radius: 22px; background: var(--mist); box-shadow: inset 0 0 0 1px rgba(36,89,230,.08); }
.projet-bloc { display: grid; gap: 10px; }
.projet-bloc h3 { font: 500 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.projet-bloc p { color: var(--nuit); font-weight: 500; }
.projet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.projet-chips .chip { background: var(--white); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 13px; }
.projet-palette { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.swatch { display: grid; justify-items: center; gap: 6px; font: 500 11px/1.2 var(--sans); letter-spacing: .03em; color: var(--text-2); }
.swatch i { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(10,20,48,.1), 0 6px 14px -8px rgba(10,20,48,.35); }

.projet-images { display: grid; gap: clamp(12px, 2vw, 20px); }
.projet-images figure { margin: 0; display: grid; gap: 10px; }
.projet-images img { display: block; width: 100%; height: auto; border-radius: 18px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--hairline), 0 18px 40px -30px rgba(21,48,127,.4); }
.projet-images figcaption { font-size: 14px; color: var(--text-3); padding-left: 4px; }

.projet-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.projet-nav a { display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; background: var(--mist); box-shadow: inset 0 0 0 1px rgba(36,89,230,.08); transition: background-color .15s ease; }
.projet-nav a:hover { background: var(--tint); }
.projet-nav small { font: 500 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.projet-nav b { font: 500 17px/1.3 var(--geist); color: var(--nuit); }
.projet-next { text-align: right; grid-column: 2; }
.projet-prev small::before { content: "← "; }
.projet-next small::after { content: " →"; }

.projet-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px); border-radius: 22px;
  color: var(--white); background: radial-gradient(80% 120% at 90% 100%, rgba(110,155,255,.55), rgba(110,155,255,0) 70%), linear-gradient(155deg, #2f66f0 0%, #2459e6 45%, #1b46c2 100%); }
.projet-cta b { font: 500 clamp(20px, 2.2vw, 24px)/1.2 var(--geist); letter-spacing: -0.01em; }
.projet-cta .pill-blue { background: var(--white); color: var(--cobalt); box-shadow: none; }
.projet-cta .pill-blue:hover { background: var(--tint); }

@media (max-width: 760px) {
  .projet { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .projet-body { grid-template-columns: 1fr; }
  .projet-nav { grid-template-columns: 1fr; }
  .projet-next { grid-column: auto; }
}

/* entrances */
@media (prefers-reduced-motion: no-preference) {
  .port-head { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .port-grid > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .port-grid > :nth-child(2) { animation-delay: .06s; } .port-grid > :nth-child(3) { animation-delay: .12s; }
  .port-grid > :nth-child(4) { animation-delay: .18s; } .port-grid > :nth-child(5) { animation-delay: .24s; }
  .port-grid > :nth-child(n+6) { animation-delay: .3s; }
  .projet[open] { animation: projet-in .4s cubic-bezier(.2,.7,.2,1); }
  .projet[open]::backdrop { animation: fade .3s ease; }
}
@keyframes projet-in { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .crea, .crea-shot img { transition: none; } }
