/* GP Portfolio — planche-contact : papier, pellicule noire, marqueur rouge. */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { overflow-x: clip; }
h1, h2, h3, .gp-brand, .gp-display { font-stretch: 72%; text-wrap: balance; }
h3 { font-stretch: 80%; }
img { height: auto; }
.has-red-color { color: var(--wp--preset--color--red) !important; }

/* En-tête */
.gp-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--wp--preset--color--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .gp-header { top: 32px; }
.gp-nav { max-width: 1240px; margin: 0 auto; padding: 10px max(5vw, 16px); gap: 18px; }
.gp-brand { margin: 0; font-size: 20px; font-weight: 850; }
.gp-brand a { text-decoration: none; }
.gp-menu { font-size: 15px; gap: 6px 22px; }
.gp-menu .wp-block-navigation-item__content { color: var(--wp--preset--color--muted); text-decoration: none; padding: 8px 0; }
.gp-menu .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--ink); }
.gp-menu .gp-cta .wp-block-navigation-item__content { background: var(--wp--preset--color--red); color: #fff; padding: 8px 14px; border-radius: 99px; }
@media (max-width: 781px) { .admin-bar .gp-header { top: 46px; } }

/* Rythme des sections */
.gp-section { padding-top: clamp(28px, 4vw, 64px); padding-bottom: clamp(28px, 4vw, 64px); }
.gp-kicker { color: var(--wp--preset--color--red); font-weight: 700; font-size: 15px; margin-bottom: 0; }
.gp-kicker + h1, .gp-kicker + h2, .gp-kicker + h3 { margin-top: .4rem; }
.gp-muted, .gp-note, .gp-small { color: var(--wp--preset--color--muted); }
.gp-note { font-size: 14px; }
.gp-small { font-size: 13px; }
.gp-lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 44ch; margin-left: 0 !important; }

/* Hero */
.gp-hero { padding-top: clamp(28px, 4vw, 64px); padding-bottom: 28px; }
.gp-display { font-size: clamp(44px, 7.4vw, 96px) !important; letter-spacing: -.01em; }
.gp-tags, .gp-chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gp-tags li { border: 1px solid var(--wp--preset--color--line); border-radius: 99px; padding: 5px 12px; font-size: 14px; background: var(--wp--preset--color--card); }
.gp-chips { margin-top: 0; gap: 6px; }
.gp-chips li { font-size: 14px; padding: 4px 10px; border-radius: 4px; background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); }

/* Pellicule */
.wp-block-gallery.gp-strip { position: relative; background: var(--wp--preset--color--film); padding: 26px max(5vw, 16px) 40px !important; margin-top: 0 !important; display: flex; flex-wrap: nowrap !important; gap: 10px !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wp-block-gallery.gp-strip::-webkit-scrollbar { display: none; }
.wp-block-gallery.gp-strip::before, .wp-block-gallery.gp-strip::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: radial-gradient(circle at 9px 6px, var(--wp--preset--color--paper) 3.2px, transparent 3.7px) 0 0 / 22px 12px repeat-x; pointer-events: none; }
.wp-block-gallery.gp-strip::before { top: 7px; } .wp-block-gallery.gp-strip::after { bottom: 7px; }
.wp-block-gallery.gp-strip > figure.wp-block-image { flex: 0 0 auto !important; width: auto !important; scroll-snap-align: start; margin: 0 !important; overflow: visible !important; }
.wp-block-gallery.gp-strip > figure.wp-block-image img { height: clamp(220px, 34vw, 400px) !important; width: auto !important; aspect-ratio: 2 / 3; object-fit: cover; }
.wp-block-gallery.gp-strip > figure figcaption { position: static !important; background: none !important; padding: 6px 0 0 !important; text-align: left !important; font-size: 11px !important; font-weight: 600; font-stretch: 80%; color: #f2a33a !important; max-height: none !important; }

/* Études de cas */
.gp-case { gap: clamp(24px, 4vw, 56px) !important; }
.gp-facts { list-style: none; padding: 0; display: grid; gap: 10px; }
.gp-facts li { padding-left: 22px; position: relative; }
.gp-facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 3px; background: var(--wp--preset--color--red); border-radius: 2px; transform: rotate(-8deg); }
.wp-block-gallery.gp-feed { gap: 6px !important; }
.wp-block-gallery.gp-feed img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.wp-block-gallery.gp-feed.gp-square img { aspect-ratio: 1; }
.wp-block-gallery.gp-feed figcaption { background: none !important; left: 6px !important; bottom: 6px !important; right: auto !important; width: auto !important; padding: 0 !important; }
.wp-block-gallery.gp-feed figcaption::before { content: none; }
.wp-block-gallery.gp-feed figure.wp-block-image figcaption { display: inline-block; background: rgba(0, 0, 0, .65) !important; color: #fff; font-size: 11px !important; padding: 2px 6px !important; border-radius: 3px; max-height: none; }
@media (max-width: 781px) { .gp-rev > .wp-block-column:first-child { order: 2; } .wp-block-gallery.gp-feed { --wp--style--unstable-gallery-gap: 6px; } }

/* Sites web */
.gp-webs { gap: 22px !important; }
.gp-web { background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); border-radius: 6px; overflow: hidden; height: 100%; }
.gp-web > * { margin-left: 18px; margin-right: 18px; }
.gp-web > .gp-bar { margin: 0 !important; display: flex; align-items: center; gap: 5px; padding: 9px 10px 9px 54px; background: #e6e4de; font-size: 12px; color: var(--wp--preset--color--muted); position: relative; }
.gp-web > .gp-bar::before { content: ""; position: absolute; left: 10px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #c4c1b9; box-shadow: 12px 0 #c4c1b9, 24px 0 #c4c1b9; }
.gp-web > figure.gp-scr { margin: 0 !important; height: 360px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.gp-web > figure.gp-scr img { width: 100%; display: block; }
.gp-web > .gp-kicker { margin-top: 16px; }
.gp-web > :last-child { margin-bottom: 20px; }
.gp-web p:not(.gp-kicker):not(.gp-bar) { color: var(--wp--preset--color--muted); font-size: 15px; }
.gp-web p a { color: var(--wp--preset--color--ink); }

/* Identités */
.gp-ids { gap: 22px !important; }
.gp-card { background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); border-radius: 6px; overflow: hidden; }
.gp-card > * { margin-left: 18px; margin-right: 18px; }
.gp-card > .wp-block-gallery { margin: 0 !important; gap: 2px !important; background: var(--wp--preset--color--line); }
.gp-card > .wp-block-gallery img { aspect-ratio: 1; object-fit: cover; }
.gp-card > :last-child { margin-bottom: 18px; font-size: 15px; }

/* Photo (bande sombre) */
.gp-dark { background: var(--wp--preset--color--film); color: #ecebe6; }
.gp-dark .gp-lead-dark { color: #c9c8c1; }
.gp-series-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.gp-series-tabs button { font: 600 15px Archivo, system-ui, sans-serif; border: 1px solid #444; background: none; color: #ecebe6; border-radius: 99px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.gp-series-tabs button[aria-pressed="true"] { background: var(--wp--preset--color--red); border-color: var(--wp--preset--color--red); color: #fff; }
.gp-series-tabs button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.gp-series.is-tabbed .gp-serie-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gp-serie { margin-top: 28px; }
.gp-series.is-tabbed .gp-serie { margin-top: 0; }
.gp-series.is-tabbed .gp-serie[hidden] { display: none; }
.gp-serie > p { color: #c9c8c1; }
.wp-block-gallery.gp-photos { gap: 8px !important; }
.wp-block-gallery.gp-photos img { aspect-ratio: 2 / 3; object-fit: cover; }
.wp-block-gallery.gp-photos.gp-square img { aspect-ratio: 1; }
@media (max-width: 700px) { .wp-block-gallery.gp-photos.columns-4 > figure.wp-block-image { width: calc(50% - 4px) !important; } }

/* Parcours */
.gp-cols { gap: 36px !important; }
.gp-cols h4 { margin: 22px 0 10px; }
.gp-cols h4:first-child { margin-top: 0; }
.gp-tl { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--wp--preset--color--line); }
.gp-tl li { padding: 0 0 22px 20px; position: relative; color: var(--wp--preset--color--muted); }
.gp-tl li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--wp--preset--color--paper); border: 2px solid var(--wp--preset--color--red); }
.gp-tl em { display: block; font-style: normal; font-size: 14px; }
.gp-tl strong { display: block; font-size: 17px; color: var(--wp--preset--color--ink); }
.gp-tl strong + br { display: none; }

/* Contact */
#contact h2 mark { font-family: "Permanent Marker", cursive; font-weight: 400; }
.gp-contact { gap: 22px !important; margin-top: 26px; }
.gp-contact > .wp-block-column { background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); border-radius: 6px; padding: 18px; }
.gp-contact > .wp-block-column:hover { border-color: var(--wp--preset--color--red); }
.gp-label { font-size: 13px; color: var(--wp--preset--color--muted); margin: 0; }
.gp-big { font-size: 18px; font-weight: 700; margin-top: 2px !important; overflow-wrap: anywhere; }
.gp-big a { text-decoration: none; }

/* Pied de page */
.gp-footer { border-top: 1px solid var(--wp--preset--color--line); padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: var(--wp--preset--color--muted); }
.gp-footer p { margin: 0; }

@media (max-width: 600px) {
  .gp-menu .wp-block-navigation__responsive-container-open { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wp-block-gallery.gp-feed > figure.wp-block-image, .wp-block-gallery.gp-photos > figure.wp-block-image { flex-grow: 0 !important; }

/* Pellicule : les photos chargées en différé gardent leur hauteur (sinon elles restent invisibles). */
.wp-block-gallery.gp-strip > figure.wp-block-image img { flex: none !important; }
