/* Portfolio public KentraPix : bleu Kentra, mobile d'abord. */
:root { --b: #1265d8; --b-dark: #0c4088; --ink: #0b2447; --mut: #5b6f8c; --bg: #f4f7fc; --card: #fff; --line: #d9e4f5; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: inherit; }
h1, h2 { font-family: Sora, Inter, sans-serif; letter-spacing: -0.02em; margin: 0; }

.pf-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left)); background: rgba(244, 247, 252, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.pf-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 800 1.1rem Sora, sans-serif; }
.pf-brand b { color: var(--b); }
.pf-bar nav { display: flex; align-items: center; gap: 6px; }
.pf-bar nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.pf-bar nav .pf-cta-sm { background: var(--b); color: #fff; }
.pf-bar nav .pf-ghost { border: 1px solid var(--line); }
@media (max-width: 560px) { .pf-bar nav a:first-child, .pf-bar nav .pf-ghost { display: none; } }

.pf-hero { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-height: min(78vh, 640px); min-height: min(78dvh, 640px); padding: 90px 20px clamp(36px, 7vw, 80px); text-align: center; color: #fff;
  background: linear-gradient(180deg, rgba(8, 36, 69, 0.15) 0%, rgba(12, 64, 136, 0.55) 55%, rgba(8, 36, 69, 0.92) 100%), url("/img/portfolio-hero.webp") center 18% / cover no-repeat, var(--b-dark); }
@media (min-width: 800px) { .pf-hero { min-height: 560px; background-position: center, center 22%; } }
.pf-kicker { margin: 0 0 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; opacity: 0.85; }
.pf-hero h1 { max-width: 760px; margin: 0 auto; font-size: clamp(2rem, 6.5vw, 3.6rem); line-height: 1.08; font-weight: 800; }
.pf-hero em { font-style: normal; color: #9cc8ff; }
.pf-lead { max-width: 560px; margin: 18px auto 0; font-size: clamp(1rem, 2.4vw, 1.15rem); opacity: 0.92; }
.pf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

.pf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: #fff; color: var(--b); font: 700 1rem Inter, sans-serif; text-decoration: none; cursor: pointer; transition: transform 0.15s; }
.pf-btn:active { transform: scale(0.97); }
.pf-btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.pf-form .pf-btn { background: var(--b); color: #fff; }
.pf-btn:disabled { opacity: 0.6; cursor: wait; }

.pf-section { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 7vw, 80px) 16px; }
.pf-section > h2, .pf-book h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.pf-filters { display: flex; gap: 8px; overflow-x: auto; margin: 18px 0 22px; padding-bottom: 4px; scrollbar-width: none; }
.pf-filters::-webkit-scrollbar { display: none; }
.pf-filters button { flex: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 0.9rem Inter, sans-serif; cursor: pointer; }
.pf-filters button[aria-selected="true"] { background: var(--b); border-color: var(--b); color: #fff; }

.pf-grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; grid-auto-flow: dense; }
.pf-item.pf-big { grid-column: span 2; aspect-ratio: 8 / 5; } /* mobile : une photo large toutes les sept */
@media (min-width: 700px) { .pf-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; } .pf-item.pf-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }
@media (min-width: 1200px) { .pf-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; } }
.pf-item { position: relative; margin: 0; padding: 0; border: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: #dbe6f7; cursor: zoom-in; box-shadow: 0 6px 20px rgba(8, 36, 69, 0.1); }
.pf-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
@media (hover: hover) { .pf-item:hover img { transform: scale(1.05); } }
.pf-item span { position: absolute; left: 10px; bottom: 10px; padding: 5px 12px; border-radius: 999px; background: rgba(8, 36, 69, 0.7); color: #fff; font-size: 0.78rem; font-weight: 600; backdrop-filter: blur(6px); }

.pf-book { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .pf-book { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.pf-book-copy p { color: var(--mut); max-width: 420px; }
.pf-wa { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: #1fa855; color: #fff; font-weight: 700; text-decoration: none; }
.pf-form { display: grid; gap: 14px; padding: clamp(18px, 4vw, 30px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(8, 36, 69, 0.08); }
.pf-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.88rem; }
.pf-form input, .pf-form select, .pf-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: 400 1rem Inter, sans-serif; }
.pf-form input:focus, .pf-form select:focus, .pf-form textarea:focus { outline: 2px solid var(--b); outline-offset: 1px; background: #fff; }
.pf-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.88rem; }
.pf-alt[hidden] { display: none; }
.pf-alt button { padding: 8px 14px; border: 1px solid var(--b); border-radius: 999px; background: #fff; color: var(--b); font: 600 0.88rem Inter, sans-serif; cursor: pointer; }
.pf-alt button:hover { background: var(--b); color: #fff; }
.pf-opt { font-weight: 400; color: var(--mut); }
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .pf-two { grid-template-columns: 1fr; } }
.pf-trap { position: absolute !important; left: -9999px; width: 1px !important; height: 1px !important; opacity: 0; }
.pf-msg { margin: 0; min-height: 1.4em; font-weight: 600; font-size: 0.92rem; }
.pf-msg.ok { color: #14803c; }
.pf-msg.err { color: #c0392b; }

.pf-foot { padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); text-align: center; color: var(--mut); font-size: 0.85rem; }
.pf-lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(6, 24, 52, 0.92); }
.pf-lightbox[hidden] { display: none; }
.pf-lightbox img { max-width: 100%; max-height: 88vh; max-height: 88dvh; object-fit: contain; border-radius: 12px; }
.pf-lightbox button { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 14px; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.6rem; cursor: pointer; }
.pf-more { display: flex; margin: 26px auto 0; background: var(--b); color: #fff; }
.pf-more[hidden] { display: none; }

.pf-filters button small { margin-left: 6px; opacity: 0.65; font-weight: 600; }
.pf-lightbox .lb-nav { top: 50%; right: auto; left: 12px; transform: translateY(-50%); width: 44px; height: 56px; font-size: 2rem; line-height: 1; }
.pf-lightbox .lb-nav.lb-next { left: auto; right: 12px; }

/* Petits écrans : boutons du haut pleine largeur, flèches de la visionneuse plus discrètes, pastilles de catégorie réduites. */
@media (max-width: 480px) {
  .pf-actions { flex-direction: column; align-self: stretch; }
  .pf-actions .pf-btn { width: 100%; }
  .pf-hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .pf-item { border-radius: 14px; }
  .pf-item span { left: 8px; bottom: 8px; padding: 4px 9px; font-size: 0.7rem; }
  .pf-lightbox .lb-nav { width: 38px; height: 48px; font-size: 1.7rem; }
  .pf-wa { width: 100%; justify-content: center; }
}
/* Grands écrans : le texte du haut reste centré et lisible. */
@media (min-width: 1400px) { .pf-hero { min-height: 640px; } }
