/*
Theme Name: Kevin Bivouac
Theme URI: https://kevinliotard.ch/
Author: Kevin Liotard
Description: Portfolio personnel inspiré du Bivouac, avec projets aboutis et expérimentations.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: kevin-bivouac
*/

:root {
  --kb-night: #071b21;
  --kb-night-2: #0c2830;
  --kb-turquoise: #20d4c3;
  --kb-turquoise-soft: #9ff3e9;
  --kb-paper: #f3f1e9;
  --kb-ink: #10252a;
  --kb-muted: #789095;
  --kb-dark-line: rgba(230, 255, 250, .17);
  --kb-light-line: rgba(16, 37, 42, .17);
  --kb-sans: "Aptos", "Segoe UI", Arial, sans-serif;
  --kb-display: "Aptos Display", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--kb-paper); color: var(--kb-ink); font: 16px/1.55 var(--kb-sans); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; padding: 12px; margin: 8px; background: #fff; color: #000; z-index: 10000; }
.kb-wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

.kb-header { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--kb-dark-line); position: relative; z-index: 20; }
.kb-brand { display: flex; align-items: center; gap: 12px; color: var(--kb-paper); font-weight: 700; letter-spacing: -.03em; }
.kb-brand-mark { width: 26px; height: 26px; border: 1px solid var(--kb-turquoise); border-radius: 50%; position: relative; box-shadow: 0 0 22px rgba(32, 212, 195, .2); }
.kb-brand-mark::after { content: ""; position: absolute; inset: 8px; background: var(--kb-turquoise); border-radius: 50%; box-shadow: 0 0 14px var(--kb-turquoise); }
.kb-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.kb-nav a { color: rgba(243, 241, 233, .75); font-size: 13px; transition: color .2s; }
.kb-nav a:hover, .kb-nav a:focus-visible, .kb-nav .current-menu-item > a { color: var(--kb-turquoise); }
.kb-nav li:last-child a { border: 1px solid var(--kb-turquoise); border-radius: 999px; padding: 9px 17px; color: var(--kb-turquoise); }
.kb-menu-toggle { display: none; background: transparent; color: var(--kb-paper); border: 1px solid var(--kb-dark-line); border-radius: 999px; padding: 8px 14px; }

.kb-dark { color: var(--kb-paper); background: var(--kb-night); position: relative; overflow: hidden; }
.kb-dark::after { content: ""; position: absolute; width: 600px; height: 600px; top: 40px; right: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(32,212,195,.13), transparent 68%); filter: blur(8px); pointer-events: none; }
.kb-contours { position: absolute; width: 720px; height: 720px; top: 15px; right: -240px; opacity: .2; pointer-events: none; }
.kb-contours path { fill: none; stroke: var(--kb-turquoise); stroke-width: 1; }
.kb-hero { min-height: 680px; padding: 72px 0 42px; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 2; }
.kb-hero-grid { display: grid; grid-template-columns: 1.55fr .45fr; gap: 80px; align-items: end; }
.kb-kicker, .kb-label { font-size: 11px; text-transform: uppercase; letter-spacing: .17em; }
.kb-kicker { color: var(--kb-turquoise); display: flex; align-items: center; gap: 11px; }
.kb-kicker::before { content: ""; width: 29px; height: 1px; background: currentColor; }
.kb-hero h1 { font: 600 clamp(64px, 9vw, 132px)/.88 var(--kb-display); letter-spacing: -.07em; margin: 25px 0 0; }
.kb-hero h1 span { display: block; color: var(--kb-turquoise); text-shadow: 0 0 36px rgba(32, 212, 195, .18); }
.kb-intro p { color: rgba(243, 241, 233, .72); font-size: 19px; line-height: 1.45; margin: 0 0 28px; }
.kb-text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--kb-turquoise); font-size: 13px; }
.kb-text-link::after { content: "↗"; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; transition: transform .2s; }
.kb-text-link:hover::after { transform: rotate(45deg); }
.kb-hero-foot { border-top: 1px solid var(--kb-dark-line); padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: var(--kb-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.kb-signal { display: flex; align-items: center; gap: 8px; color: var(--kb-turquoise-soft); }
.kb-signal::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kb-turquoise); box-shadow: 0 0 12px var(--kb-turquoise); animation: kb-glow 1.8s ease-in-out infinite; }
@keyframes kb-glow { 50% { opacity: .35; box-shadow: 0 0 2px var(--kb-turquoise); } }

.kb-statement { overflow: hidden; background: var(--kb-turquoise); color: var(--kb-night); padding: 23px 0; }
.kb-ticker { display: flex; align-items: center; width: max-content; will-change: transform; animation: kb-move 80s linear infinite; }
.kb-ticker-group { display: flex; flex-shrink: 0; gap: 34px; align-items: center; padding-right: 34px; }
.kb-ticker span { white-space: nowrap; font: 600 21px var(--kb-display); letter-spacing: -.02em; }
.kb-ticker i { font-style: normal; font-size: 12px; }
@keyframes kb-move { to { transform: translateX(-50%); } }

.kb-section { padding: 104px 0; }
.kb-section-head { display: grid; grid-template-columns: .48fr 1.52fr; gap: 35px; margin-bottom: 52px; align-items: end; }
.kb-label { color: #52696e; }
.kb-head-right { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.kb-head-right h2, .kb-about-copy, .kb-footer h2, .kb-page h1 { font-family: var(--kb-display); }
.kb-head-right h2 { font-size: clamp(44px, 6vw, 76px); line-height: .97; letter-spacing: -.055em; margin: 0; }
.kb-head-right p { max-width: 430px; margin: 12px 0 0; color: #52696e; }
.kb-all-link { white-space: nowrap; font-size: 13px; padding-bottom: 4px; border-bottom: 1px solid currentColor; }
.kb-featured { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.kb-project { min-height: 460px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; isolation: isolate; background: #dfe5df; }
.kb-project:nth-child(2) { background: #d9e6e4; }
.kb-project::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 70% 25%, rgba(32,212,195,.55), transparent 22%), repeating-radial-gradient(ellipse at 80% 40%, transparent 0 31px, rgba(7,27,33,.11) 32px 33px); transition: transform .5s ease; }
.kb-project:nth-child(2)::before { background: linear-gradient(130deg, transparent 48%, rgba(7,27,33,.08) 49% 50%, transparent 51%), radial-gradient(circle at 28% 66%, rgba(32,212,195,.7), transparent 25%); }
.kb-project:hover::before { transform: scale(1.06); }
.kb-project-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.kb-project h3, .kb-lab-item h3 { font-family: var(--kb-display); letter-spacing: -.045em; }
.kb-project h3 { font-size: clamp(34px, 4vw, 58px); line-height: 1; margin: 0 0 12px; }
.kb-project p { max-width: 430px; margin: 0; color: #395158; font-size: 14px; }
.kb-arrow { position: absolute; right: 25px; bottom: 25px; font-size: 25px; }

.kb-lab { background: var(--kb-night-2); color: var(--kb-paper); }
.kb-lab .kb-label, .kb-lab .kb-all-link { color: var(--kb-turquoise); }
.kb-lab .kb-head-right p { color: var(--kb-muted); }
.kb-lab-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--kb-dark-line); }
.kb-lab-item { min-height: 275px; padding: 24px; border-right: 1px solid var(--kb-dark-line); display: flex; flex-direction: column; justify-content: space-between; transition: background .25s; }
.kb-lab-item:last-child { border-right: 0; }
.kb-lab-item:hover { background: rgba(32,212,195,.06); }
.kb-lab-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--kb-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.kb-status { color: var(--kb-turquoise-soft); }
.kb-lab-item h3 { font-size: 30px; line-height: 1.05; margin: 0 0 10px; }
.kb-lab-item p { color: var(--kb-muted); font-size: 13px; margin: 0; }

.kb-about { display: grid; grid-template-columns: .48fr 1.52fr; gap: 35px; }
.kb-about-copy { max-width: 940px; font-size: clamp(30px, 4vw, 52px); line-height: 1.15; letter-spacing: -.045em; margin: 0; }
.kb-about-copy em { color: #0da99c; font-style: normal; }
.kb-about-foot { grid-column: 2; border-top: 1px solid var(--kb-light-line); padding-top: 22px; margin-top: 55px; display: flex; justify-content: space-between; align-items: center; }
.kb-snore { color: #71888d; font-size: 11px; }

.kb-footer { background: var(--kb-turquoise); color: var(--kb-night); padding: 80px 0 28px; }
.kb-footer-top { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.kb-footer h2 { max-width: 850px; font-size: clamp(50px, 7.5vw, 103px); line-height: .98; letter-spacing: -.055em; margin: 0; }
.kb-mail { width: 110px; height: 110px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-size: 25px; transition: transform .25s, background .25s; }
.kb-mail:hover { background: var(--kb-night); color: var(--kb-turquoise); transform: rotate(-10deg); }
.kb-footer-bottom { margin-top: 70px; padding-top: 20px; border-top: 1px solid rgba(7,27,33,.35); display: flex; justify-content: space-between; gap: 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.kb-page-shell { min-height: 100vh; background: var(--kb-paper); }
.kb-page-hero { background: var(--kb-night); color: var(--kb-paper); padding: 74px 0 62px; }
.kb-page-hero .kb-kicker { margin-bottom: 22px; }
.kb-page-hero h1 { max-width: 980px; font-size: clamp(52px, 8vw, 104px); line-height: .95; letter-spacing: -.06em; margin: 0; }
.kb-page { width: min(860px, calc(100% - 48px)); margin-inline: auto; padding: 82px 0 110px; }
.kb-page > *:first-child { margin-top: 0; }
.kb-page h2 { margin-top: 52px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.kb-page h3 { margin-top: 36px; font-size: 25px; }
.kb-page p, .kb-page li { color: #3f565c; font-size: 18px; }
.kb-page a { color: #087f76; text-decoration: underline; text-underline-offset: 3px; }
.kb-page .wpforms-container { margin-top: 45px; }
.kb-page .wpforms-field-label { color: var(--kb-ink) !important; }
.kb-page input, .kb-page textarea { border: 1px solid #9bb1b4 !important; border-radius: 0 !important; background: #fff !important; }
.kb-page button[type="submit"] { background: var(--kb-night) !important; color: var(--kb-turquoise) !important; border: 1px solid var(--kb-night) !important; border-radius: 999px !important; padding: 12px 22px !important; }

@media (max-width: 850px) {
  .kb-wrap { width: calc(100% - 30px); }
  .kb-menu-toggle { display: block; }
  .kb-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 24px; background: var(--kb-night-2); border: 1px solid var(--kb-dark-line); }
  .kb-nav.is-open { display: block; }
  .kb-nav ul { flex-direction: column; align-items: stretch; }
  .kb-hero { min-height: 700px; padding-top: 58px; }
  .kb-hero-grid, .kb-section-head, .kb-about { grid-template-columns: 1fr; }
  .kb-hero-grid { gap: 42px; }
  .kb-hero h1 { font-size: clamp(58px, 18vw, 90px); }
  .kb-intro { max-width: 430px; }
  .kb-contours { right: -450px; opacity: .12; }
  .kb-section { padding: 74px 0; }
  .kb-head-right { display: block; }
  .kb-head-right .kb-all-link { display: inline-block; margin-top: 20px; }
  .kb-featured, .kb-lab-row { grid-template-columns: 1fr; }
  .kb-project { min-height: 370px; }
  .kb-lab-item { min-height: 215px; border-right: 0; border-bottom: 1px solid var(--kb-dark-line); }
  .kb-about-foot { grid-column: 1; align-items: flex-start; flex-direction: column; gap: 20px; }
  .kb-footer-top { align-items: flex-start; flex-direction: column; }
  .kb-mail { width: 80px; height: 80px; }
  .kb-footer-bottom, .kb-hero-foot { flex-direction: column; align-items: flex-start; }
  .kb-page { width: calc(100% - 30px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  .kb-ticker { animation: kb-move 100s linear infinite !important; }
}
