/* DeuxBr · feuille de style unique, aucune dépendance externe */

@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/big-shoulders-display-900.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-700.woff2") format("woff2"); }

:root {
  --bg: #12121F;
  --bg-deep: #0C0C17;
  --surface: #1A1930;
  --line: #4A4578;
  --text: #ECEAF5;
  --text-soft: #D4D0E8;
  --muted: #ABA6C9;
  --accent: #FF8A1F;
  --code: #7DD3FC;
  --paper: #ECEAF5;
  --ink: #12121F;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: #FFB066; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--accent); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 8px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: 0.02em; }
.brand:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 500; }
.nav a { color: var(--text); text-decoration: none; padding: 12px 0; }
.nav a:hover { color: var(--accent); }
.nav .nav-cta { color: var(--ink); background: var(--accent); padding: 10px 18px; font-weight: 600; }
.nav .nav-cta:hover { color: var(--ink); background: #FFA04A; }

/* ---------- Accueil ---------- */
.hero { position: relative; margin-top: -80px; padding-top: 80px; border-bottom: 1.5px solid var(--line); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,31,.6) 0%, rgba(18,18,31,.4) 50%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; padding-block: clamp(48px, 8vw, 112px) clamp(48px, 6vw, 88px); }
.hero-text { flex: 999 1 620px; min-width: 0; }
.kicker { margin: 0 0 20px; font-family: var(--mono); font-size: 15px; color: var(--muted); }
.hero h1 { margin: 0; max-width: 11ch; font-family: var(--display); font-weight: 900; font-size: clamp(56px, 9.5vw, 148px); line-height: 0.88; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 28px 0 0; max-width: 52ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-soft); }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; font: inherit; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #FFA04A; color: var(--ink); }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--ink); }

/* Badge */
.badge-holder { flex: 1 1 280px; max-width: 360px; padding: 12px 20px 28px 8px; }
.badge { position: relative; transform: rotate(-3deg); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--accent); transition: transform .25s ease; }
.badge:hover { transform: rotate(-1deg) translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .badge, .badge:hover { transition: none; } }
.badge-slot { position: absolute; top: 10px; left: 50%; width: 56px; height: 10px; margin-left: -28px; border-radius: 6px; background: var(--ink); }
.badge-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; background: var(--accent); padding: 30px 16px 12px; border-bottom: 2px solid var(--ink); }
.badge-name { font-family: var(--display); font-weight: 900; font-size: 52px; line-height: 0.85; text-transform: uppercase; }
.badge-role { font-family: var(--mono); font-size: 12px; font-weight: 700; line-height: 1.3; text-transform: uppercase; text-align: right; }
.badge-body { display: flex; align-items: flex-start; gap: 14px; padding: 16px; }
.badge-body img { width: 112px; height: 112px; flex: 0 0 auto; object-fit: cover; border: 2px solid var(--ink); }
.badge-body dl { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.badge-body dt { margin-bottom: 4px; font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--line); }
.badge-body dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; font-family: var(--mono); font-size: 13px; font-weight: 700; }
.chip { background: var(--ink); color: var(--paper); padding: 2px 7px; }
.chip-outline { border: 1.5px solid var(--ink); padding: 1px 6px; }
.badge-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 12px; border-top: 2px dashed var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.barcode { width: 96px; height: 26px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 13px); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head p { margin: 0; max-width: 46ch; color: var(--muted); }
h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(48px, 7vw, 96px); line-height: 0.9; text-transform: uppercase; }

/* Projets */
#projets { padding-bottom: 0; }
.projects-title { margin-bottom: 32px; }
.project .desc { flex: 1 1 100%; margin: 0; max-width: 60ch; color: var(--text-soft); }
.project { border-top: 1.5px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; padding-block: 28px; align-items: center; }
.project:last-child { border-bottom: 1.5px solid var(--line); }
.project h3 { margin: 0; flex: 999 1 280px; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 4.5vw, 60px); line-height: 0.95; text-transform: uppercase; }
.project .tag { flex: 1 1 200px; font-family: var(--mono); font-size: 14px; color: var(--code); }
.project .link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; text-decoration: none; }
.project-featured { align-items: stretch; gap: 24px 48px; padding-block: 32px; }
.project-featured .info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.project-featured h3 { flex: none; font-size: clamp(40px, 5vw, 68px); line-height: 0.9; }
.project-featured .tag { flex: none; }
.project-featured p { margin: 0; max-width: 48ch; color: var(--text-soft); }
.project-featured .shot { flex: 1.4 1 420px; min-width: 0; aspect-ratio: 16 / 10; background: var(--surface); border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; overflow: hidden; }
.project-featured .shot img { width: 100%; height: 100%; object-fit: cover; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--line); }
.service-main { flex-grow: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px 20px; }
.service h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 38px; line-height: 0.95; text-transform: uppercase; }
.service p { margin: 0; color: var(--text-soft); }
.service dl { margin: 0; display: grid; grid-template-columns: 1fr max-content; gap: 6px 16px; padding: 16px 20px; border-top: 1.5px solid var(--line); font-size: 15px; }
.service dt { color: var(--muted); }
.service dd { margin: 0; font-weight: 600; }
.service-highlight { border-color: var(--accent); }
.custom-note { margin: 24px 0 0; color: var(--text-soft); }
.custom-note a { font-weight: 600; }

/* Contact */
.contact { background: var(--surface); border-top: 1.5px solid var(--line); }
.contact .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.contact-text { flex: 999 1 480px; min-width: 0; }
.contact-text p { margin: 20px 0 0; max-width: 44ch; color: var(--text-soft); }
.mail { display: inline-block; margin-top: 16px; padding: 8px 0; font-family: var(--mono); font-size: clamp(17px, 2vw, 22px); font-weight: 700; word-break: break-all; }
.form { flex: 1 1 320px; max-width: 520px; display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.form input, .form textarea { font: inherit; font-size: 17px; padding: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); border-radius: 0; }
.form input { min-height: 48px; }
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .consent { font-size: 14px; color: var(--muted); }
.form button { align-self: flex-start; border: none; }

/* Pied de page */
.site-footer { background: var(--bg-deep); color: var(--muted); border-top: 1.5px solid var(--line); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px; }
.site-footer .copy { display: flex; align-items: center; gap: 10px; }
.site-footer .copy img { width: 32px; height: 32px; border-radius: 50%; }
.site-footer a { color: var(--text); }

/* Pages simples (mentions, merci, erreur, 404) */
.page-header { border-bottom: 1.5px solid var(--line); }
.prose { max-width: 820px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(56px, 8vw, 120px); line-height: 1.6; }
.prose h1 { margin: 0 0 12px; font-family: var(--display); font-weight: 900; font-size: clamp(52px, 9vw, 112px); line-height: 0.9; text-transform: uppercase; }
.prose .updated { margin: 0 0 48px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.prose section { border-top: 1.5px solid var(--line); padding-block: 28px; }
.prose section:last-of-type { border-bottom: 1.5px solid var(--line); }
.prose h2 { margin: 0 0 14px; font-family: var(--mono); font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: 0.06em; color: var(--accent); }
.prose p { margin: 0 0 12px; color: var(--text-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose dl { margin: 0 0 12px; display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 8px 24px; color: var(--text-soft); }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; }

/* ---------- Téléphone ---------- */
@media (max-width: 640px) {
  .site-header .wrap { padding-block: 14px; }
  .nav { gap: 4px 16px; font-size: 15px; }
  .hero { margin-top: -132px; padding-top: 132px; }
  .badge-holder { max-width: 100%; padding: 8px 14px 24px 4px; }
  .badge-name { font-size: 44px; }
  .badge-body img { width: 88px; height: 88px; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 10px; }
}
