/* malou la da : feuille de style du site
   Les blocs plus bas affinent les réglages du haut (ordre = priorité). */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #6b6b6b;
  --soft: #f1f1ef;
  --max: 1600px;
  --gutter: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.is-hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

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

/* Petites capitales : la voix "interface" du site */
.caps, .nav, .caption {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.muted { color: var(--muted); }

/* Les trois voix typographiques */
.w-light { font-weight: 400; letter-spacing: -0.035em; }
.w-script { font-family: var(--script); font-weight: 400; font-size: 1.32em; letter-spacing: 0; line-height: 0.6; display: inline-block; margin: 0 -0.06em; transform: translateY(0.06em) rotate(-3deg); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}
.nav .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px 24px; padding-top: 22px; padding-bottom: 20px; }
.nav .middle { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
.nav .links { grid-column: 1 / -1; grid-row: 2; justify-content: center; margin-top: 52px; }
@media (max-width: 700px) {
  .nav .wrap { grid-template-columns: 1fr; justify-items: center; padding-top: 24px; }
  .nav .links { grid-column: 1; grid-row: 2; }
}
.nav a { text-decoration: none; }
.nav .links a { color: var(--muted); transition: color 0.2s ease; }
.nav .links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.nav .links a:hover, .nav .links a:focus-visible, .nav .links a[aria-current="page"] { color: var(--ink); }

/* ---------- Accueil : un seul écran, pas de scroll ---------- */
body.home { min-height: 100svh; display: flex; flex-direction: column; }
body.home .nav { position: static; }
body.home .hero { flex: 1; min-height: 0; }
.home-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 16px; padding-bottom: 18px; }
.home-foot a { text-decoration: none; }
.home-foot a:hover { text-decoration: underline; }

/* ---------- En-tête des onglets ---------- */
.page-head { text-align: center; }
.page-title { margin: 0 auto; font-size: clamp(48px, 7vw, 120px); line-height: 0.95; }
.nav .middle { color: var(--muted); }

/* ---------- Héros : l'offre en composition ---------- */
.hero {
  min-height: calc(100svh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: center;
}
.compo {
  margin: 0;
  max-width: 1280px;
}
.compo a { text-decoration: none; }
.compo > * { transition: opacity 0.2s ease; }
.compo:hover > * { opacity: 0.22; }
.compo:hover a:hover, .compo a:focus-visible { opacity: 1; }
.hero .sub { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; }
.hero .sub a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.hero .sub a:hover, .hero .sub a:focus-visible { color: var(--ink); }

/* Aperçu d'image qui suit le curseur */
.cursor-preview {
  position: fixed;
  top: 0;
  left: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.cursor-preview.on { transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .cursor-preview { display: none; } }

/* ---------- Projets ---------- */
.work { padding-bottom: 120px; }
.work-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 0 18px; }
.chip {
  font: inherit;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  color: var(--muted);
  text-transform: uppercase;
}
.chip[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 44px 16px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.card .media { overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; }
.card img, .card .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.card:hover img { transform: scale(1.04); }
.caption { display: flex; justify-content: space-between; gap: 12px; }
.card .what { text-transform: none; font-weight: 400; color: var(--muted); margin-top: -6px; }

.ph { display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; }

.list { display: none; border-top: 1px solid var(--ink); }
.work[data-view="liste"] .grid { display: none; }
.work[data-view="liste"] .list { display: block; }
.row {
  display: grid;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}
.row .name { line-height: 1; }
.row:hover .name { font-weight: 400; }

/* ---------- Manifeste + à propos ---------- */
.clients-block { text-align: center; display: flex; flex-direction: column; }
.clients-block p { margin: 0; }
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.about img { width: 100%; transform: rotate(-2.5deg); }
.about .text { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.about h2 { margin: 0; font-size: clamp(38px, 4vw, 64px); line-height: 1; }
.about p { margin: 0; font-size: 18px; }

/* ---------- Services (la partie commerciale) ---------- */
.services { padding-bottom: 120px; }
.steps-title { margin: 72px 0 0; font-size: 12px; font-weight: 600; }
.services h2 { margin: 0 0 40px; text-align: center; font-size: clamp(38px, 5vw, 84px); line-height: 1; font-weight: 400; }
.svc-table { border-top: 1px solid var(--ink); }
.svc-head, .svc {
  display: grid;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
  align-items: baseline;
}
.svc-head { color: var(--muted); }
.svc h3 { margin: 0; }
.svc p { margin: 0; }
@media (max-width: 760px) {
  .svc-head { display: none; }
  .svc { gap: 6px; }
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.steps div { display: flex; flex-direction: column; gap: 8px; }
.steps p { margin: 0; }

.cta-center { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 26px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 0;
  transition: background 0.2s ease;
}
.btn:hover { background: #333333; }

/* ---------- Contact ---------- */
.contact { padding-bottom: 20px; border-top: 1px solid var(--ink); }
.contact .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.contact-title { font-weight: 400; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
body.contact-page .contact { border-top: 0; }
body.contact-page .contact-title { margin-bottom: 32px; }
.contact .mail { line-height: 1; text-decoration: none; overflow-wrap: anywhere; }
.contact .mail:hover .w-light { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.contact .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.contact .bottom a { text-decoration: none; }
.contact .bottom a:hover { text-decoration: underline; }

/* ---------- Pages projet ---------- */
.p-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.p-title { margin: 0; }
.p-lead { margin: 0; max-width: 820px; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
.p-meta { margin: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 14px 0; text-align: left; }
.p-meta dt { color: var(--muted); }
.p-meta dd { margin: 4px 0 0; text-transform: none; font-weight: 500; }
.p-cover img, .p-cover .ph { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.p-story { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.p-story h2 { font-weight: 400; }
.p-story p { margin: 0; }
.p-quote { text-align: center; }
.p-quote figure { margin: 0; }
.p-quote blockquote { margin: 0 auto; }
.p-quote figcaption { margin-top: 16px; }
.p-next { display: block; text-decoration: none; text-align: center; border-top: 1px solid var(--ink); }
.p-next .title { display: block; line-height: 0.9; }
.p-next:hover .w-cap { font-weight: 400; }

/* Mentions légales */
.legal { padding-top: 64px; padding-bottom: 120px; max-width: 820px; }
.legal h1 { font-size: clamp(44px, 6vw, 80px); line-height: 0.95; }
.legal h2 { font-size: 15px; margin: 36px 0 8px; }
.legal p { margin: 0 0 8px; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .nav .middle { display: none; }
  .work, .services { padding-top: 72px; padding-bottom: 72px; }
   .about { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   Typos de la charte : Block Berthold (titres) + Code Saver (texte)
   Ce bloc remplace les anciennes typos (Familjen, Pinyon, Bagel).
   ========================================================= */
@font-face {
  font-family: "Block Berthold";
  src: url("../fonts/block-berthold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Code Saver";
  src: url("../fonts/code-saver.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --display: "Block Berthold", "Arial Black", sans-serif;
  --sans: "Code Saver", ui-monospace, Menlo, monospace;
  --script: var(--sans);
  --blob: var(--display);
}
h1, h2, h3, strong, b, dd { font-weight: 400; }
.caps, .nav, .caption, .btn, .chip { font-weight: 400; letter-spacing: 0.02em; }

/* Deux voix seulement : le gros (Block) et le mono (Code Saver) */
.w-cap { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0; }
.w-blob { font-family: var(--display); font-weight: 400; text-transform: none; letter-spacing: 0; }
.w-light, .w-script {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1em;
  letter-spacing: -0.04em;
  text-transform: none;
  transform: none;
  margin: 0;
  line-height: inherit;
  display: inline;
}

/* Héros : les mots de liaison en petit mono, les services en gros Block */
.compo { line-height: 1.02; font-size: clamp(32px, 5vw, 84px); }
.compo .w-light { font-size: 0.34em; text-transform: uppercase; letter-spacing: 0.02em; vertical-align: 0.6em; margin: 0 0.25em; }
.compo .w-script { font-size: 0.62em; letter-spacing: -0.05em; }

.page-title, .p-title { line-height: 0.92; }
.row .name { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
.p-next:hover .w-cap { font-family: var(--sans); text-transform: lowercase; letter-spacing: -0.04em; }
.lead-about { font-size: clamp(20px, 2vw, 30px); line-height: 1.2; }
.p-lead { letter-spacing: -0.03em; }
.compo { font-family: var(--display); }
.compo > * { white-space: nowrap; }
.services h2.steps-title { font-family: var(--sans); font-size: 12px; text-align: left; margin: 72px 0 0; line-height: 1.3; }
@media (max-width: 700px) { .nav .links { gap: 6px 18px; } }

/* =========================================================
   Inter : texte neutre (paragraphes, descriptions, citations)
   Code Saver reste pour les infos importantes (menu, labels, prix, CTA)
   Block Berthold reste pour les titres
   ========================================================= */
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root { --text: "Inter", "Helvetica Neue", Arial, sans-serif; }

body { font-family: var(--text); font-size: 15px; line-height: 1.55; letter-spacing: -0.006em; }

/* Les infos importantes restent en Code Saver */
.caps, .nav, .caption, .chip, .btn, .home-foot, .hero .sub, .p-meta dd, .contact .mail, .contact-title, .steps .caps { font-family: var(--sans); letter-spacing: 0.02em; }

/* Le texte courant passe en Inter */
.svc p:not(.caps), .steps p, .about .text p, .p-story p, .legal p, .card .what { font-family: var(--text); }
.p-lead.w-light { font-family: var(--text); font-weight: 400; letter-spacing: -0.025em; }
 .p-quote blockquote { font-family: var(--text); }
.lead-about .w-light { font-family: var(--text); font-weight: 500; letter-spacing: -0.03em; }
.card .what { letter-spacing: 0; font-size: 13px; }

/* =========================================================
   Échelle typo sobre (pages intérieures)
   Block : titres de page et noms, tailles mesurées
   Code Saver : labels et infos, 12 px
   Inter : texte, 15 à 20 px
   ========================================================= */
.page-head { padding-top: 64px; padding-bottom: 0; }
.page-title, .legal h1 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.05;
  max-width: 900px;
}
.legal h1 { margin: 0 0 40px; text-align: left; }

/* Projets */
.work { padding-top: 48px; }
.row { grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr) minmax(0, 2fr); }
.row .name { font-size: clamp(20px, 2vw, 28px); text-transform: uppercase; }
.row:hover .name { font-family: var(--display); text-transform: uppercase; letter-spacing: 0; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } .row .client, .row .tags { grid-column: 1; } }

/* Services */
.services { padding-top: 48px; }
.svc { padding: 22px 0; }
.svc h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: 0; line-height: 1.1; }
.steps { margin-top: 32px; }
.steps .n { font-family: var(--sans); font-size: 12px; line-height: 1.3; color: var(--muted); }
.steps .n::before { content: "Étape "; }
.steps p { font-size: 15px; }
.cta-center { margin-top: 56px; }
 .p-quote blockquote { font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; max-width: 760px; }

/* À propos */
.about { padding-top: 48px; padding-bottom: 96px; gap: 40px 72px; }
.about img { max-width: 560px; }
.about .text p.lead-about { font-family: var(--text); letter-spacing: -0.02em; }
.clients-block { padding-bottom: 96px; gap: 10px; }

/* Contact (bloc de fin de page + page Contact) */
.contact { padding-top: 64px; }
.contact-title { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); margin: 0 0 10px; line-height: 1.3; }
.contact .mail:hover { color: var(--muted); }
.contact .bottom { margin-top: 40px; }
body.contact-page .contact { padding-top: 64px; }
body.contact-page .contact-title { font-family: var(--display); color: var(--ink); text-transform: uppercase; letter-spacing: 0; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; margin: 0 0 28px; }

/* Pages projet */
.p-head { padding-top: 56px; padding-bottom: 32px; gap: 18px; }
.p-title { font-family: var(--display); text-transform: uppercase; letter-spacing: 0; font-size: clamp(32px, 4.4vw, 64px); line-height: 1; }
.p-lead, .p-lead.w-light { max-width: 680px; }
.p-meta dd { font-size: 14px; }
.p-story { padding-top: 72px; padding-bottom: 72px; gap: 32px 48px; }
.p-story h2 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); margin: 0 0 10px; line-height: 1.3; }
.p-quote { padding-bottom: 72px; }
.p-next { padding-top: 56px; padding-bottom: 72px; }
.p-next .title { font-family: var(--display); text-transform: uppercase; font-size: clamp(28px, 3.4vw, 48px); margin-top: 10px; }
.page-title { max-width: 1100px; }

/* Textes du doc : plusieurs paragraphes, récompense au-dessus des citations */
.p-story p + p, .p-quote blockquote p + p { margin-top: 12px; }
.p-quote blockquote p { margin: 0; }
.p-quote .award { margin: 0 0 16px; }

/* À propos : deux photos de Malou côte à côte, sans rotation */
.about .about-photos { display: grid; gap: 12px; }
.about .about-photos img { width: 100%; height: auto; max-width: none; transform: none; display: block; }
.about .about-photos { grid-template-columns: 1fr; max-width: 480px; justify-self: center; }
.about .text p.about-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--sans); font-size: 12px; }
.about-links a { text-decoration: underline; text-underline-offset: 3px; }

/* Services : la méthode en 4 cases, comme une frise qu'on suit de gauche à droite */
.services .steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); gap: 0; }
.services .step { position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; border-right: 1px solid var(--ink); transition: background-color 0.25s ease; }
.services .step:last-child { border-right: 0; }
.services .step:hover { background: var(--soft); }
.services .step-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.services .step-title { margin: 18px 0 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 2.3vw, 36px); line-height: 0.95; letter-spacing: 0; }
.services .step p { margin: 0; font-family: var(--text); font-size: 15px; line-height: 1.5; }
.services .step-tag { font-size: 11px; padding: 6px 10px; border: 1px solid var(--ink); border-radius: 999px; }
.services .step-last { background: var(--ink); color: #fff; }
.services .step-last:hover { background: #222; }
.services .step-last .step-top { color: #fff; }
.services .step-last .step-top span:first-child { color: rgba(255,255,255,0.6); }
.services .step-last .step-tag { border-color: #fff; }
@media (max-width: 900px) {
  .services .steps { grid-template-columns: 1fr 1fr; }
  .services .step { min-height: 0; border-bottom: 1px solid var(--ink); }
  .services .step:nth-child(2n) { border-right: 0; }
  .services .step:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .services .step { border-right: 0; }
  .services .step:nth-last-child(2) { border-bottom: 1px solid var(--ink); }
  .services .step:last-child { border-bottom: 0; }
}
.services .steps .step-top { flex-direction: row; gap: 0; text-align: left; }
/* Cases centrées, sans flèches */
.services .step { align-items: center; text-align: center; }
.services .steps .step-top { justify-content: center; }
.services .step-tag { align-self: center; }

/* Galerie projet : lignes à hauteur égale, chaque visuel garde son format */
.p-gallery-v2 { display: flex; flex-direction: column; gap: 12px; padding-bottom: 96px; }
.p-gallery-v2 .g-row { display: flex; gap: 12px; }
.p-gallery-v2 .g-item { margin: 0; min-width: 0; background: var(--soft); overflow: hidden; }
.p-gallery-v2 .g-item img, .p-gallery-v2 .g-item video { display: block; width: 100%; height: 100%; object-fit: cover; }
.p-gallery-v2 .g-film { background: #000; }
.p-gallery-v2 .g-film video { object-fit: contain; }
@media (max-width: 700px) {
  .p-gallery-v2 .g-row { flex-direction: column; }
  .p-gallery-v2 .g-item { flex: none !important; width: 100%; }
}

/* Ajustements : textes plus fins, logo en en-tête, footer plus discret */
.nav .brand img { display: block; height: 28px; width: auto; }
@media (max-width: 700px) { .nav .brand img { height: 36px; } }
.contact .mail { font-family: var(--sans); font-size: 14px; letter-spacing: 0; }
body.contact-page .contact .mail { font-size: clamp(18px, 1.8vw, 24px); }

/* Accueil : le texte reste lisible, l'image passe derrière, plus petite et légèrement transparente */
body.home .compo { position: relative; z-index: 2; }
body.home .compo:hover > * { opacity: 1; }
body.home .compo a:hover { text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
body.home .cursor-preview { width: 190px; }
body.home .cursor-preview.on { opacity: 0.55; }

/* Visuels cliquables vers Instagram */
.p-gallery-v2 .g-link { position: relative; display: block; width: 100%; height: 100%; }
.p-gallery-v2 .g-badge { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; background: #fff; color: var(--ink); font-size: 11px; border-radius: 999px; opacity: 0; transform: translateY(4px); transition: opacity 0.2s ease, transform 0.2s ease; }
.p-gallery-v2 .g-link:hover .g-badge, .p-gallery-v2 .g-link:focus-visible .g-badge { opacity: 1; transform: none; }
@media (hover: none) { .p-gallery-v2 .g-badge { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .p-gallery-v2 .g-row.g-tall { flex-direction: row; flex-wrap: wrap; }
  .p-gallery-v2 .g-row.g-tall .g-item { width: calc(50% - 6px); }
}

/* Accueil : pas de soulignement, l'image passe au-dessus du texte en transparence */
body.home .compo a:hover { text-decoration: none; }
body.home .cursor-preview { z-index: 50; }
body.home .compo .w-group { white-space: nowrap; }

/* Carrousels (posts Instagram) */
.g-carousel { position: relative; }
.car { position: relative; width: 100%; height: 100%; }
.car-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.car-slide img, .car-slide video { display: block; width: 100%; height: 100%; object-fit: cover; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.9); color: var(--ink); font-size: 16px; cursor: pointer; opacity: 0; transition: opacity 0.2s ease; }
.car-prev { left: 12px; } .car-next { right: 12px; }
.car:hover .car-btn, .car-btn:focus-visible { opacity: 1; }
.car-btn[disabled] { opacity: 0 !important; pointer-events: none; }
.car-count { position: absolute; top: 12px; right: 12px; padding: 4px 9px; background: rgba(10,10,10,0.6); color: #fff; font-size: 11px; border-radius: 999px; }
.car-ig { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; background: #fff; color: var(--ink); font-size: 11px; border-radius: 999px; text-decoration: none; }
@media (hover: none) { .car-btn { display: none; } }

/* Aperçu au survol, partout : au-dessus du texte, en transparence */
.cursor-preview { width: 190px; z-index: 50; }
.cursor-preview.on { opacity: 0.55; }
.p-next:hover .title { color: var(--ink); }

/* « Voir sur Instagram » : visible seulement au survol (toujours visible sur mobile) */
.car-ig { opacity: 0; transform: translateY(4px); transition: opacity 0.2s ease, transform 0.2s ease; }
.car:hover .car-ig, .car-ig:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .car-ig { opacity: 1; transform: none; } }

/* Textes courants en Code Saver, plus petits : À propos, accroche et récit des projets, Services */
.about .text p, .about .text p.lead-about { font-family: var(--sans); letter-spacing: 0; }
.about .text p { font-size: 13px; line-height: 1.7; }
.about .text p.lead-about { font-size: 15px; line-height: 1.5; font-weight: 400; }
.p-lead, .p-lead.w-light { font-family: var(--sans); font-size: 14px; line-height: 1.6; letter-spacing: 0; font-weight: 400; }
.p-story p { font-family: var(--sans); font-size: 13px; line-height: 1.7; }
.svc p:not(.caps) { font-size: 14px; line-height: 1.5; }
/* Corps de texte en Inter (récit des projets, texte d'À propos) ; accroches en Code Saver */
.p-story p, .about .text p:not(.lead-about):not(.about-links) { font-family: var(--text); font-size: 14px; line-height: 1.6; letter-spacing: -0.005em; }
/* Ligne de reels : plus compacte, centrée */
@media (min-width: 701px) { .p-gallery-v2 .g-row.g-tall { width: 100%; max-width: 1100px; margin: 0 auto; } }
/* Phrase « budget serré » : petite, en Code Saver */

/* Bande de logos clients qui défile */
.marquee { overflow: hidden; margin-top: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 40s linear infinite; }
.marquee-track li { flex: none; display: flex; align-items: center; padding: 0 44px; }
.marquee-track img { height: 34px; width: auto; opacity: 0.4; }
.marquee-track span { font-family: var(--display); text-transform: uppercase; font-size: 22px; line-height: 1; color: var(--ink); opacity: 0.4; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .marquee-track li[aria-hidden] { display: none; } .marquee { -webkit-mask-image: none; mask-image: none; } }
.marquee-track img[alt="Samu Social"] { opacity: 0.55; }
@media (max-width: 700px) { .marquee-track li { padding: 0 26px; } .marquee-track img { zoom: 0.75; } .marquee-track span { font-size: 17px; } }

/* Accueil : tous les mots centrés verticalement sur leur ligne, quelle que soit leur taille */
.compo > *, .compo .w-group > * { vertical-align: middle; }
.compo .w-light, .compo .w-script { vertical-align: middle; transform: none; line-height: 1; display: inline-block; }
.compo .w-group { display: inline-block; }

/* Mobile, page Projets : 2 colonnes et en-tête plus compact pour voir plusieurs projets d'un coup */
@media (max-width: 700px) {
  .work .grid { grid-template-columns: 1fr 1fr; gap: 22px 10px; }
  .card { gap: 6px; }
  .card .caption { font-size: 11px; flex-direction: column; align-items: flex-start; gap: 0; }
  .card .what { display: none; }
  .card .ph { font-size: 10px; }
  .page-head { padding-top: 28px; padding-bottom: 8px; }
  .work-bar { gap: 8px 14px; padding-bottom: 12px; }
}
/* Étapes : moins d'espace entre « Étape X » et le titre, cases moins hautes */
.services .step { gap: 10px; }
/* Juste milieu : un peu d'air sous « Étape X », et l'étiquette proche du texte */
.services .step { min-height: 0; padding-top: 26px; padding-bottom: 24px; }
.services .step-title { margin-top: 10px; }
.services .step-tag { margin-top: 14px; }
.services .step p { flex: 1; }
/* Mobile : les 4 étapes en 2 x 2, compactes */
@media (max-width: 560px) {
  .services .steps { grid-template-columns: 1fr 1fr; }
  .services .step { padding: 16px 10px 14px; gap: 6px; border-bottom: 1px solid var(--ink); }
  .services .step:nth-child(odd) { border-right: 1px solid var(--ink); }
  .services .step:nth-child(even) { border-right: 0; }
  .services .step:nth-last-child(-n+2) { border-bottom: 0; }
  .services .step-top { font-size: 10px; }
  .services .step-title { margin-top: 6px; font-size: 19px; }
  .services .step p { font-size: 12.5px; line-height: 1.4; }
  .services .step-tag { margin-top: 8px; font-size: 9px; padding: 4px 8px; }
}
/* Services sans colonne prix */
.svc-head, .svc { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr); }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } }
/* Page 404 */
.nf { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding-top: 40px; padding-bottom: 0; min-height: calc(100vh - 160px); }
.nf .page-title { margin: 14px 0 0; text-align: left; max-width: none; font-size: clamp(40px, 5.6vw, 92px); }
.nf-sub { margin: 24px 0 0; max-width: 460px; font-family: var(--text); font-size: 15px; line-height: 1.5; }
.nf-links { display: flex; align-items: center; gap: 24px; margin: 32px 0 0; }
.nf-links a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.nf-photo { width: 100%; max-width: 440px; height: auto; justify-self: center; align-self: end; }
@media (max-width: 760px) {
  .nf { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .nf-photo { max-width: 260px; }
}

/* Mobile : galerie projet en 2 colonnes façon mosaïque, pour voir le projet dans son ensemble.
   Les films et carrousels restent en pleine largeur. */
@media (max-width: 700px) {
  .p-gallery-v2 { display: block; columns: 2; column-gap: 8px; padding-bottom: 64px; }
  .p-gallery-v2 .g-row, .p-gallery-v2 .g-row.g-tall { display: contents; }
  .p-gallery-v2 .g-item, .p-gallery-v2 .g-row.g-tall .g-item { display: block; width: 100%; margin: 0 0 8px; break-inside: avoid; }
  .p-gallery-v2 .g-film { column-span: all; }
  .p-gallery-v2 .car-count { top: 6px; right: 6px; padding: 3px 6px; font-size: 9px; }
  .p-gallery-v2 .car-prev, .p-gallery-v2 .car-next { display: none; }
  .p-gallery-v2 .car-ig { left: 6px; bottom: 6px; padding: 4px 7px; font-size: 9px; }
  .p-gallery-v2 .g-badge { left: 6px; bottom: 6px; padding: 4px 7px; font-size: 9px; }
}

/* Aperçu de site web dans une fenêtre de navigateur (CAN'EL) */
.p-gallery-v2 .g-site { flex: 1 1 100%; width: 100%; display: flex; flex-direction: column; }
.site-bar { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ink); }
.site-dots { display: flex; gap: 6px; }
.site-dots i { width: 10px; height: 10px; border-radius: 50%; }
.site-open { color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-open:hover { text-decoration: underline; }
.site-frame { aspect-ratio: 16 / 10; }
.site-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 700px) {
  .p-gallery-v2 .g-site { column-span: all; margin-bottom: 8px; }
  .site-frame { aspect-ratio: 9 / 14; }
  .site-url { text-align: left; font-size: 11px; }
}
/* Site CAN'EL : dans la DA du portfolio, sans contour ni barre de navigateur */
.site-url { font-family: var(--sans); }
.site-frame { background: var(--soft); }
/* Page Contact : LinkedIn, Instagram, Email sous l'adresse */
.contact-links { display: flex; flex-wrap: wrap; gap: 22px; margin: 22px 0 0; font-size: 12px; }
.contact-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.contact-links a:hover { text-decoration: none; }
/* Site CAN'EL : fenêtre de navigateur douce, sans contour noir */
.p-gallery-v2 .g-site { border: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06); margin: 24px 0; }
.site-bar { padding: 12px 16px; background: var(--soft); border: 0; justify-content: flex-start; }
.site-dots i { border: 0; background: #d6d5d1; }
.site-url { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.site-open { font-size: 11px; }
/* Page Contact : le pied de page (logo + liens) se cale en bas de l'écran */
body.contact-page { min-height: 100dvh; display: flex; flex-direction: column; }
body.contact-page > main { flex: 1; display: flex; flex-direction: column; }
body.contact-page > main > .contact { flex: 1; display: flex; flex-direction: column; width: 100%; box-sizing: border-box; }
body.contact-page .contact .bottom { margin-top: auto; }
