/* Polices hébergées sur le site (pas de transfert vers Google) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff") format("woff"); }
/* =========================================================
   LYRA — feuille de style commune
   Couleurs : modifier les variables ci-dessous.
   ========================================================= */
:root {
  --bg: #070707;
  --bg-2: #0c0c0d;
  --text: #f2ede7;
  --muted: #a39d96;
  --line: rgba(255, 255, 255, 0.09);
  --red: #e2452b;
  --blue: #4f66f6;
  --accent: var(--red);          /* couleur d'accent de la page */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --max: 1680px;                 /* largeur max du contenu */
  --pad: clamp(20px, 5.5vw, 110px); /* marges gauche/droite, comme la maquette */
}
.theme-ia { --accent: var(--red); }
.theme-graphisme { --accent: var(--blue); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior: none; } /* empêche la page de « glisser » au pavé tactile */
html, body { overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Typo ---------- */
.eyebrow {
  font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin: 0 0 18px;
}
.eyebrow .sep { display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 14px; opacity: .7; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(42px, 5vw, 72px); }
h2 { font-size: clamp(34px, 4.2vw, 56px); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.c-red { color: var(--red) !important; }
.c-blue { color: var(--blue) !important; }
.lead { color: #d9d3cc; max-width: 460px; margin: 26px 0 0; }

/* ---------- Boutons / liens ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
  padding: 15px 26px; border: 1px solid var(--accent); transition: .25s;
}
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { filter: brightness(1.12); }
.btn--ghost { color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
  padding-bottom: 7px; border-bottom: 1px solid var(--accent); transition: .25s;
}
.link:hover { gap: 18px; }
.link--accent { color: var(--accent); }
.arrow { width: 11px; height: 11px; flex: none; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(7,7,7,.86); backdrop-filter: blur(10px); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; max-width: none; padding: 0 clamp(20px, 2.6vw, 56px); }
.logo { font-family: var(--serif); font-size: 26px; letter-spacing: .18em; font-weight: 400; }
.nav { display: flex; gap: 46px; }
.nav a { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: #cfc9c2; position: relative; padding: 6px 0; }
.nav a:hover, .nav a.active { color: #fff; font-weight: 500; }
.nav a.active::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.header .btn { padding: 11px 18px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 1px; background: #fff; margin: 6px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100vh, 860px); display: flex; align-items: center; overflow: hidden; padding: 120px 0 70px; }
.hero__visual { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; pointer-events: none; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 60% 45%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 75% at 60% 45%, #000 45%, transparent 100%); }
.hero__content { position: relative; z-index: 2; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 34px; margin-top: 40px; }
.float { animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* Hero accueil : plein écran, texte centré sur l'image des deux créatures */
.hero--home {
  height: 100vh; height: 100svh; min-height: 600px; padding: 0;
  justify-content: center; text-align: center;
  background: #01050c; /* même bleu nuit que le fond de l'image */
}
.hero__bg {
  position: absolute; inset: 0;
  transform: scale(1); /* taille des créatures : diminuer (ex. .9) pour les réduire */
  /* fondu sur les 4 bords pour que l'image se fonde dans le noir de la page */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 85%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 85%, transparent);
          mask-composite: intersect;
}
.hero--home::before { /* voile sombre derrière le texte */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 38% 34% at 50% 52%, rgba(4,4,6,.86), rgba(4,4,6,.55) 55%, transparent 100%);
}
.hero__bg::after { /* fondu vers la section suivante */
  content: ""; position: absolute; inset: auto 0 0; height: 18%;
  background: linear-gradient(transparent, var(--bg));
}
.hero--home .hero__content { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 0 var(--pad); }
.hero--home h1 { font-size: clamp(34px, 3.9vw, 72px); line-height: 1.06; letter-spacing: .005em; }
.hero--home h1 span { display: block; white-space: nowrap; }
.hero--home h1, .hero--home .lead, .hero__tag { text-shadow: 0 2px 18px rgba(0,0,0,.9); }
.hero--home .lead { margin: 32px auto 0; max-width: 480px; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.75; color: #e6e0d9; }
.hero--home .hero__actions { justify-content: center; margin-top: clamp(40px, 6vh, 72px); }
.hero--home .link { border-color: rgba(255,255,255,.35); color: #ddd6cf; }
.hero__tag {
  position: absolute; z-index: 2; left: clamp(20px, 3.8vw, 56px); top: 26%; margin: 0;
  text-align: left; font-size: 10.5px; letter-spacing: .26em; line-height: 2.1; color: #b9b2ab;
}
.hero__tag .dot { margin: 0 .6em; }
.hero__tag::after { content: ""; display: inline-block; width: 90px; height: 1px; background: #555; vertical-align: middle; margin-left: 16px; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section--flush { border-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.section-head p { color: #cfc9c2; font-size: 13px; max-width: 300px; margin: 0; }

/* Services (4 colonnes) */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service { text-align: center; padding: 44px 26px; }
.service + .service { border-left: 1px solid var(--line); }
.service svg { width: 50px; height: 50px; color: var(--accent); margin: 0 auto 22px; }
.service h3 { font-family: var(--sans); font-weight: 500; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 10px; }
.service p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button {
  background: none; border: 1px solid transparent; color: #b9b2ab; cursor: pointer; border-radius: 99px;
  font: 500 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; padding: 11px 20px;
}
.filters button:hover { color: #fff; }
.filters button.active { border-color: var(--accent); color: #fff; }

/* Grille projets */
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 34px 14px; }
.project { grid-column: span 2; }
.project--wide { grid-column: span 3; }
.project.is-hidden { display: none; }
.project__img { overflow: hidden; aspect-ratio: 4 / 3; background: #151515; }
.project--wide .project__img { aspect-ratio: 16 / 9; }
.projects--ia .project__img { aspect-ratio: 4 / 3.05; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.project:hover .project__img img { transform: scale(1.05); }
.project__meta { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px 0; }
.project__meta h3 { font-family: var(--sans); font-weight: 400; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.project__meta p { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
.project__meta .arrow { margin-top: 4px; transition: transform .3s; }
.project:hover .project__meta .arrow { transform: translate(3px, -3px); color: var(--accent); }

/* Deux univers (accueil) */
.universes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.universe { position: relative; min-height: 440px; background: #060608; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: flex-end; padding: 44px 40px; }
.universe img { position: absolute; top: 0; right: 0; width: 82%; height: 78%; object-fit: cover; opacity: .95; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 45%, transparent 100%); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.universe::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 60%); }
.universe:hover img { transform: scale(1.04); }
.universe__body { position: relative; z-index: 2; }
.universe__num { font-family: var(--serif); font-size: 17px; }
.universe h3 { font-size: clamp(32px, 3vw, 42px); margin: 4px 0 12px; }
.universe p { font-size: 13px; color: #d4cec7; margin: 0 0 26px; max-width: 260px; }
.universe--blue { color: var(--blue); } .universe--red { color: var(--red); }
.universe--blue .link, .universe--red .link { border-color: currentColor; }
.universe p, .universe--blue .universe__body > p { color: #d4cec7; }

/* À propos */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about__img { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); }
.about__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.about h2 { margin-bottom: 26px; }
.about p { color: #d4cec7; font-size: 14px; max-width: 470px; margin: 0 0 16px; }
.about .link { margin-top: 14px; }

/* Méthode */
.method { display: grid; grid-template-columns: 1fr 2.2fr; gap: 50px; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding: 0 24px; border-left: 1px solid var(--line); }
.step__num { font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1; display: block; margin-bottom: 18px; }
.step h3 { font-family: var(--sans); font-size: 13px; font-weight: 400; margin-bottom: 14px; }
.step p { margin: 0; font-size: 12px; color: var(--muted); }
.method--compact .step__num { font-size: 22px; color: #d4cec7; }
.method--compact .step p { color: #d4cec7; font-size: 12.5px; }

/* Bandeau CTA */
.cta { position: relative; overflow: hidden; padding: 74px 0; border-top: 1px solid var(--line); background: #050506; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; max-width: 1060px; }
.cta h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 14px; }
.cta p { margin: 0; color: #d4cec7; font-size: 13px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; }
.footer__grid > div { padding: 0 34px; }
.footer__grid > div + div { border-left: 1px solid var(--line); }
.footer__grid > div:first-child { padding-left: 0; }
.footer .logo { display: inline-block; margin-bottom: 10px; }
.footer p { margin: 0; font-size: 12px; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; line-height: 2.3; }
.footer li a:hover { color: var(--accent); }
.footer .mail { font-size: 12px; color: #cfc9c2; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; font-size: 11px; font-weight: 500; transition: .25s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 14px; height: 14px; }
.footer__star { display: grid; place-items: center; }
.footer__star svg { width: 34px; height: 34px; color: var(--accent); }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { gap: 28px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3) { border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
  .method { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer__grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
  .burger { display: block; z-index: 2; }
  .header .btn { display: none; }
  .nav {
    position: fixed; inset: 0; background: rgba(7,7,7,.97); flex-direction: column; align-items: center; justify-content: center; gap: 30px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav a { font-size: 13px; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav .nav__cta { display: inline-flex; margin-top: 10px; color: var(--accent); border: 1px solid var(--accent); padding: 14px 22px; }

  .hero { min-height: auto; padding: 130px 0 80px; flex-direction: column; align-items: stretch; }
  .hero__visual { position: relative; width: 100%; height: 360px; margin: -40px 0 -60px; order: -1; }
  .hero--home { padding: 0; }
  .hero--home h1 span { white-space: normal; }
  .hero__bg { --hero-size: 125% auto; --hero-pos: 50% 96%; }
  .hero--home .hero__content { margin-top: -18vh; }
  .hero__bg { background-color: #01050c; transform: none; -webkit-mask-image: none; mask-image: none; }
  .hero__bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#01050c 0, #01050c 60%, transparent 76%); }
  .hero__tag { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .projects { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .project, .project--wide { grid-column: span 1; }
  .project--wide .project__img { aspect-ratio: 4 / 3; }
  .universes, .about { grid-template-columns: 1fr; }
  .universe { min-height: 340px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:first-child { padding-left: 0; border-left: 0; }
  .cta .container { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 861px) { .nav .nav__cta { display: none; } }
@media (max-width: 560px) {
  .service { padding: 30px 14px; }
  .projects { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; padding: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > div { border-left: 0 !important; padding: 0 !important; }
}

/* Bande de services pleine largeur */
.section--services { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--services .services { max-width: var(--max); margin: 0 auto; border: 0; }


/* =========================================================
   Accueil — section « Deux univers » + « Sélection » (maquette)
   ========================================================= */
.section--univers { border-top: 0; padding-top: clamp(60px, 7vw, 100px); padding-bottom: clamp(50px, 6vw, 80px); }
.section--univers .section-head { align-items: center; margin-bottom: clamp(36px, 4vw, 56px); }
.section--univers .section-head h2 { font-size: clamp(38px, 4.1vw, 60px); line-height: 1.1; }
.section--univers .section-head p { max-width: none; font-size: 13px; line-height: 1.8; color: #d4cec7; }
.section--univers .eyebrow { font-size: 10px; letter-spacing: .3em; margin-bottom: 22px; }

.universes { gap: 20px; }
.universe {
  aspect-ratio: 778 / 564; min-height: 0; padding: 0 0 7.5% 7.7%;
  background: #05070c; border: 1px solid rgba(255,255,255,.07);
  align-items: flex-end;
}
.universe--red { background: #0c0605; border-color: rgba(226,69,43,.14); }
.universe img {
  inset: 0; top: 0; right: auto; width: 100%; height: 100%; opacity: 1;
  -webkit-mask-image: none; mask-image: none;
}
.universe::before { display: none; }
.universe__num { font-size: 15px; letter-spacing: .08em; }
.universe h3 { font-size: clamp(30px, 3.3vw, 48px); margin: 6px 0 16px; }
.universe p { font-size: clamp(12px, 1.05vw, 14.5px); line-height: 1.75; color: #e8e2db; margin: 0 0 clamp(26px, 3.4vw, 50px); max-width: none; }
.universe .link { font-size: 11px; letter-spacing: .26em; padding-bottom: 9px; border-bottom-width: 2px; gap: 30px; }
.universe .link .arrow { width: 13px; height: 13px; }
.universe .link::after { display: none; }

.section--selection { padding-top: clamp(30px, 4vw, 60px); }
.section--selection .section-head { align-items: flex-end; margin-bottom: clamp(26px, 3vw, 40px); }
.section--selection .section-head h2 { font-size: clamp(36px, 3.9vw, 56px); }
.section--selection .eyebrow { font-size: 10px; letter-spacing: .3em; margin-bottom: 18px; }
.section--selection .link--accent { font-size: 10.5px; letter-spacing: .26em; margin-bottom: 10px; }
.section--selection .projects { gap: 40px clamp(36px, 5.5vw, 100px); } /* écart plus grand = vignettes plus petites */
.section--selection .project__img { aspect-ratio: 1 / 1; }
.section--selection .project__meta { padding: 16px 4px 0; }
.section--selection .project__meta h3 { font-size: 13.5px; letter-spacing: .07em; }
.section--selection .project__meta p { font-size: 12.5px; }
@media (max-width: 860px) {
  .universe { aspect-ratio: 4 / 3.4; }
  .section--univers .section-head, .section--selection .section-head { align-items: flex-start; }
}

.footer .copy { margin-top: 14px; font-size: 11px; color: #6f6a64; }

/* Accueil — « Derrière Lyra » : photo et texte de même largeur, photo à la hauteur du texte */
#apropos .about { grid-template-columns: 1fr 1fr; gap: clamp(30px, 4.5vw, 80px); align-items: stretch; }
#apropos .about__img { aspect-ratio: auto; height: auto; min-height: 320px; position: relative; border: 0; }
#apropos .about__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 50% 40%; }
#apropos .eyebrow { font-size: 10px; letter-spacing: .3em; margin-bottom: 20px; }
#apropos h2 { font-size: clamp(36px, 3.6vw, 54px); margin-bottom: 30px; }
#apropos p { font-size: clamp(13px, 1.05vw, 15px); line-height: 1.8; max-width: none; color: #d9d3cc; margin-bottom: 18px;
  text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
#apropos .link { margin-top: 18px; font-size: 11px; letter-spacing: .26em; border-bottom-width: 2px; padding-bottom: 9px; gap: 30px; }
@media (max-width: 860px) {
  #apropos .about { grid-template-columns: 1fr; gap: 34px; }
  #apropos .about__img { aspect-ratio: 4 / 3; min-height: 0; }
}

/* Accueil — « Méthode » (maquette) */
#methode.home-methode { border-top: 0; padding: clamp(40px, 5vw, 70px) 0; }
#methode.home-methode .method { grid-template-columns: 1.05fr 2fr; align-items: center; gap: clamp(30px, 3vw, 60px); }
#methode.home-methode h2 { white-space: nowrap; }
#methode.home-methode .eyebrow { font-size: 10px; letter-spacing: .3em; margin-bottom: 20px; }
#methode.home-methode h2 { font-size: clamp(36px, 3.6vw, 54px) !important; line-height: 1.12 !important; }
#methode.home-methode .step { padding: 6px clamp(18px, 2.4vw, 40px) 10px; }
#methode.home-methode .step:first-child { border-left: 0; padding-left: 0; }
#methode.home-methode .step__num { font-size: clamp(24px, 2vw, 32px); color: #e6e0d9; margin-bottom: 16px; }
#methode.home-methode .step p { font-size: clamp(12.5px, 1vw, 14.5px); line-height: 1.85; color: #e6e0d9; }
@media (min-width: 1100px) { #methode.home-methode .step p { white-space: nowrap; } }
@media (max-width: 860px) { #methode.home-methode h2 { white-space: normal; } }

/* Accueil — bandeau « Vous avez un projet ? » (maquette) */
.cta--home {
  aspect-ratio: 2172 / 317; min-height: 190px; padding: 0; display: flex; align-items: center;
  background: #07070a url("../img/cta-fond.jpg?v=2") center / cover no-repeat;
}
.cta--home .container { max-width: none; width: 100%; padding: 0 16% 0 16.8%; }
.cta--home h2 { font-size: clamp(28px, 2.6vw, 44px); margin-bottom: 12px; }
.cta--home p { font-size: clamp(12.5px, 1vw, 15px); line-height: 1.75; color: #e0dad3; }
.cta--home .btn {
  flex: none; max-width: 100%; width: auto; min-width: 23.2%; white-space: nowrap; justify-content: center; gap: 22px;
  padding: clamp(18px, 1.9vw, 30px) clamp(22px, 2.2vw, 40px); border-radius: 3px; border: 0;
  background: #c9432c; font-size: clamp(10px, .78vw, 12px); letter-spacing: .24em;
  box-shadow: 0 8px 30px rgba(201,67,44,.18);
}
.cta--home .btn:hover { background: #dd4d33; filter: none; }
@media (max-width: 860px) {
  .cta--home { aspect-ratio: auto; padding: 60px 0; }
  .cta--home .container { padding: 0 var(--pad); }
  .cta--home .btn { width: auto; min-width: 0; padding: 18px 26px; }
}

/* =========================================================
   Pied de page (maquette) + animation d'onde
   ========================================================= */
.footer { padding: clamp(36px, 3.4vw, 56px) 0; border-top: 1px solid var(--line); background: #050505; }
.footer__grid { grid-template-columns: 1fr 1fr 1fr 1fr; align-items: center; }
.footer__grid > div { padding: 0 clamp(20px, 3vw, 56px); }
.footer__grid > div + div { border-left: 1px solid rgba(255,255,255,.08); }
.footer__grid > div:first-child { padding-left: 0; border-left: 0; }
.footer__brand .logo { font-size: clamp(24px, 1.7vw, 30px); margin-bottom: 18px; }
.footer__brand p { font-size: clamp(13px, .95vw, 15px); line-height: 1.75; color: #8d8780; }
.footer__nav { align-self: stretch; display: flex; align-items: center; }
.footer__nav li a { font-size: clamp(10.5px, .78vw, 12.5px); letter-spacing: .24em; line-height: 2.75; color: #d9d3cc; font-weight: 500; }
.footer__contact { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.footer .mail { font-size: clamp(13px, .98vw, 15.5px); color: #d9d3cc; font-weight: 400; }
.footer .mail:hover { color: var(--red); }
.footer .socials { gap: 12px; margin-top: 22px; }
.footer .socials a { width: 34px; height: 34px; border-radius: 8px; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.02); color: #d9d3cc; }
.footer .socials svg { width: 17px; height: 17px; }

/* Point rouge avec onde qui se répand */
.footer__pulse { position: relative; height: 110px; display: grid; place-items: center; }
.footer__pulse > span { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.pulse__dot { width: 9px; height: 9px; background: var(--red); box-shadow: 0 0 10px 2px rgba(226,69,43,.65), 0 0 26px 6px rgba(226,69,43,.25); }
.pulse__ring--static { border: 1px solid rgba(226,69,43,.22); }
.pulse__ring--static.r1 { width: 34px; height: 34px; border-color: rgba(226,69,43,.28); }
.pulse__ring--static.r2 { width: 66px; height: 66px; border-color: rgba(226,69,43,.16); }
.pulse__ring--static.r3 { width: 96px; height: 96px; border-color: rgba(226,69,43,.07); }
.pulse__wave { width: 10px; height: 10px; border: 1px solid rgba(226,69,43,.7); animation: pulse-wave 4.2s cubic-bezier(.2,.6,.3,1) infinite; }
.pulse__wave:nth-of-type(5) { animation-delay: 1.4s; }
.pulse__wave:nth-of-type(6) { animation-delay: 2.8s; }
@keyframes pulse-wave {
  0%   { width: 10px;  height: 10px;  opacity: .9; }
  80%  { opacity: .08; }
  100% { width: 120px; height: 120px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pulse__wave { animation: none; opacity: 0; } }

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer__grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > div { border-left: 0 !important; padding: 0 !important; }
  .footer__pulse { justify-content: start; }
}

/* Petit message « Adresse copiée » */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #151515; color: #f2ede7; border: 1px solid rgba(255,255,255,.12); padding: 12px 20px; border-radius: 6px;
  font-size: 13px; transition: opacity .3s, transform .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Fenêtre de contact */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.modal__box { position: relative; width: min(520px, 100%); background: #0c0c0d; border: 1px solid rgba(255,255,255,.1); padding: clamp(28px, 4vw, 44px); transform: translateY(14px); transition: transform .3s; }
.modal.open .modal__box { transform: none; }
.modal__close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #a39d96; font-size: 28px; cursor: pointer; line-height: 1; }
.modal__close:hover { color: #fff; }
.modal h2 { font-size: clamp(32px, 3vw, 42px); margin-bottom: 26px; }
.contact-form label { display: block; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: #a39d96; margin-bottom: 18px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 8px; background: transparent; color: var(--text);
  border: 0; border-bottom: 1px solid rgba(255,255,255,.18); padding: 10px 0; font: 300 15px/1.6 var(--sans); resize: vertical; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.modal__actions { display: flex; align-items: center; gap: 28px; margin-top: 8px; flex-wrap: wrap; }
.modal__actions .btn { border: 0; cursor: pointer; font-family: var(--sans); }
.modal__actions .link { background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); color: #d9d3cc; cursor: pointer; font-family: var(--sans); padding: 0 0 6px; }
.form-status { min-height: 1.4em; font-size: 13px; margin: 0 0 10px; }
.form-status.ok { color: #8fd19e; } .form-status.err { color: #ff8a73; }

/* =========================================================
   Accueil — raie et méduse animées (deux calques séparés)
   ========================================================= */
.hero__bg { --hero-size: 100% auto; --hero-pos: center 55%; }
.creature, .creature__img { position: absolute; inset: 0; }
.creature { mix-blend-mode: screen; will-change: transform; }
.creature__img { background: center / cover no-repeat; background-size: var(--hero-size); background-position: var(--hero-pos); will-change: transform, filter; }
.creature--raie .creature__img   { background-image: url("../img/hero-raie.jpg"); }
.creature--meduse .creature__img { background-image: url("../img/hero-meduse.jpg"); }

/* La raie glisse lentement, en planant, avec un léger battement d'ailes */
.creature--raie { transform-origin: 24% 50%; animation: raie-glisse 26s ease-in-out infinite; }
.creature--raie .creature__img { transform-origin: 24% 50%; animation: raie-ailes 6s ease-in-out infinite; }
@keyframes raie-glisse {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(.5%, -.8%) rotate(-.5deg); }
  50%      { transform: translate(.8%, .2%) rotate(.25deg); }
  75%      { transform: translate(.3%, .7%) rotate(.5deg); }
}
@keyframes raie-ailes {
  0%, 100% { transform: scale(1, 1); }
  50%      { transform: scale(1.005, .985); }
}

/* La méduse pulse (contraction de l'ombrelle), remonte doucement et brille */
.creature--meduse { transform-origin: 90% 30%; animation: meduse-nage 10s ease-in-out infinite; }
.creature--meduse .creature__img { transform-origin: 90% 22%; animation: meduse-pulse 5s ease-in-out infinite; }
@keyframes meduse-nage {
  0%, 100% { transform: translate(0, .4%) rotate(0deg); }
  50%      { transform: translate(-.2%, -.8%) rotate(-.3deg); }
}
@keyframes meduse-pulse {
  0%, 100% { transform: scale(1, 1);       filter: brightness(1); }
  35%      { transform: scale(1.012, .983); filter: brightness(1.08); }
  60%      { transform: scale(.997, 1.006); filter: brightness(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .creature, .creature__img { animation: none !important; }
}
@media (max-width: 860px) { .hero__bg { --hero-size: 125% auto; --hero-pos: 50% 96%; } }

/* Mention « Direction artistique · Graphisme · IA » : remontée dans la zone noire, sous le menu */
.hero__tag { top: clamp(96px, 13vh, 130px); }

/* Pictogrammes des services (Graphisme) : traits fins lumineux */
.service .svc-ico { width: clamp(96px, 9vw, 140px); height: auto; aspect-ratio: 120 / 90; margin: 0 auto 20px;
  color: #6f86ff; filter: drop-shadow(0 0 4px rgba(79,102,246,.55)) drop-shadow(0 0 12px rgba(79,102,246,.25)); }
.service .svc-bar { display: block; width: 32px; height: 1.5px; background: var(--accent); margin: 14px auto 16px; }
.theme-graphisme .service h3 { margin-bottom: 0; }
.theme-graphisme .service { padding: clamp(40px, 4vw, 64px) 26px; }
.theme-graphisme .service h3 { font-size: clamp(11px, .85vw, 13.5px); letter-spacing: .3em; color: #f2ede7; }
.theme-graphisme .service p { font-size: clamp(13px, 1vw, 15.5px); color: #d9d3cc; line-height: 1.7; }
.service .svc-ico { width: clamp(110px, 10vw, 160px); }
.service .svc-ico { width: clamp(64px, 5.6vw, 92px); margin-bottom: 16px; }
.service .svc-ico { width: clamp(52px, 4.4vw, 72px); margin-bottom: 14px; }

/* Emplacement d'image vide (en attendant les visuels) */
.project__img--empty { display: grid; place-items: center; background: #0d0d0f; border: 1px solid rgba(255,255,255,.07); }
.project__img--empty span { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: #4d4a47; }

/* Projet mis en avant (pleine largeur) */
.project--feature { grid-column: 1 / -1; }
.project--feature .project__img { aspect-ratio: 16 / 9; }
@media (max-width: 860px) { .project--feature { grid-column: 1 / -1; } }

/* =========================================================
   Fenêtre de projet (pop-up)
   ========================================================= */
.pmodal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: clamp(12px, 3vw, 48px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.pmodal.open { opacity: 1; pointer-events: auto; }
.pmodal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.pmodal__box {
  position: relative; width: min(1500px, 100%); max-height: 100%; overflow: auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 4.5vw, 90px);
  padding: clamp(28px, 4.5vw, 90px); background: #0b0b0c; border: 1px solid rgba(255,255,255,.09); border-radius: 18px;
  transform: translateY(18px) scale(.985); transition: transform .4s cubic-bezier(.2,.7,.2,1);
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.pmodal.open .pmodal__box { transform: none; }
.pmodal__close { position: absolute; top: clamp(16px, 2vw, 34px); right: clamp(16px, 2vw, 34px); width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.02); color: #e6e0d9; cursor: pointer; display: grid; place-items: center; z-index: 2; transition: .25s; }
.pmodal__close:hover { border-color: var(--accent); color: var(--accent); }
.pmodal__close svg { width: 22px; height: 22px; }
.pmodal__main { border-radius: 10px; overflow: hidden; background: #151515; }
.pmodal__main img { width: 100%; height: auto; display: block; }
.pmodal__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.pmodal__thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 1; opacity: .75; transition: .25s; }
.pmodal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmodal__thumb:hover { opacity: 1; }
.pmodal__thumb.active { border-color: var(--accent); opacity: 1; }
.pmodal__info { padding-top: 6px; padding-right: 30px; }
.pmodal__kicker { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.5vw, 24px); color: var(--accent); margin: 0 0 14px; }
.pmodal__title { font-size: clamp(44px, 4.6vw, 76px); text-transform: uppercase; letter-spacing: .02em; margin-bottom: clamp(30px, 3vw, 50px); }
.pmodal__info h3 { font-family: var(--sans); font-weight: 500; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.pmodal__info > p { font-size: clamp(14px, 1.15vw, 18px); line-height: 1.85; color: #d4cec7; margin: 0 0 clamp(26px, 2.6vw, 42px); }
.pmodal__lists { margin-top: clamp(20px, 3vw, 50px); display: grid; gap: 26px; }
.pmodal__lists h4 { font-family: var(--sans); font-weight: 500; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: #a39d96; margin: 0 0 12px; }
.pmodal__lists ul { list-style: none; margin: 0; padding: 0; }
.pmodal__lists li { font-size: clamp(14px, 1.1vw, 17px); color: #e6e0d9; line-height: 2.1; }
.pmodal__lists li::before { content: "•"; color: var(--accent); margin-right: 10px; }
.project[data-project] { cursor: pointer; }
@media (max-width: 900px) {
  .pmodal__box { grid-template-columns: 1fr; border-radius: 12px; }
  .pmodal__info { padding-right: 0; }
  .pmodal__close { width: 42px; height: 42px; background: rgba(0,0,0,.6); }
}
.pmodal__media { position: sticky; top: 0; align-self: start; }
.pmodal__lists { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .pmodal__media { position: static; } }

/* Grille Graphisme : vignettes un peu plus larges pour moins recadrer les visuels */
#grid .project:not(.project--wide) .project__img { aspect-ratio: 16 / 10.5; }
/* Image principale limitée en hauteur pour que les miniatures restent visibles */
.pmodal__main { display: grid; place-items: center; }
.pmodal__main img { width: auto; max-width: 100%; max-height: min(58vh, 640px); object-fit: contain; }
.pmodal__thumbs { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px; }

/* Badge sur une vignette de projet */
.project__img { position: relative; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 7px 14px; border-radius: 99px;
  background: rgba(10,10,12,.78); backdrop-filter: blur(6px); border: 1px solid rgba(214,178,94,.55);
  color: #e3c47e; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
/* Distinction dans « À propos » */
#apropos .award { position: relative; padding-left: 22px; color: #e3c47e !important; font-size: clamp(12.5px, .95vw, 14px) !important; text-align: left !important; }
#apropos .award::before { content: "★"; position: absolute; left: 0; color: #e3c47e; }

/* Création IA : vignettes verticales, adaptées aux visuels générés */
.projects--ia .project__img { aspect-ratio: 4 / 5; }
#grid.projects--ia .project .project__img { aspect-ratio: 4 / 5; }
.badge--concept { border-color: rgba(255,255,255,.35); color: #e6e0d9; }

/* Création IA : vignettes paysage, 2 par ligne, pour les planches de présentation */
#grid.projects--ia .project { grid-column: span 3; }
#grid.projects--ia .project .project__img { aspect-ratio: 1577 / 997; }
@media (max-width: 860px) { #grid.projects--ia .project { grid-column: span 1; } }

.cta--home .container { gap: 30px; }
@media (max-width: 1300px) { .cta--home .container { padding: 0 6%; } }
.cta--home { min-height: 0; height: max(190px, calc(100vw * 317 / 2172)); aspect-ratio: auto; width: 100%; }
@media (max-width: 860px) { .cta--home { height: auto; } }
/* Bandeau à vagues sur les pages portfolio : bouton à la couleur de la page */
.theme-graphisme .cta--home .btn { background: var(--blue); box-shadow: 0 8px 30px rgba(79,102,246,.2); }
.theme-graphisme .cta--home .btn:hover { background: #6177ff; }

/* Accueil — aperçu des projets : vignettes paysage + deux liens */
.section--selection .project__img { aspect-ratio: 16 / 10 !important; }
.sel-links { display: flex; gap: 34px; flex-wrap: wrap; }
/* Aperçu de l'accueil : image entière, jamais recadrée */
.section--selection .project__img { aspect-ratio: auto !important; }
.section--selection .project__img img { height: auto; object-fit: contain; }
.section--selection .projects { align-items: start; }
.section--selection .project__img { aspect-ratio: 1577 / 997 !important; background: #0a0a0b; display: grid; place-items: center; }
.section--selection .project__img img { width: 100%; height: 100%; object-fit: contain; }
#apropos .about__img img { filter: none; object-position: 50% 30%; }

/* Bas de pied de page */
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11.5px; color: #6f6a64; }
.footer__bottom a:hover { color: var(--accent); }
/* Page mentions légales */
.legal { padding: clamp(130px, 14vw, 180px) 0 clamp(70px, 8vw, 110px); }
.legal__inner { max-width: 860px; }
.legal h1 { font-size: clamp(42px, 5vw, 72px); margin-bottom: 40px; }
.legal h2 { font-family: var(--sans); font-weight: 500; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin: 44px 0 14px; }
.legal p { color: #d4cec7; font-size: 15px; line-height: 1.85; margin: 0 0 14px; }
.legal a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }
.legal .todo { background: rgba(255,200,0,.18); color: #ffd36b; padding: 0 4px; }
.legal__date { margin-top: 40px !important; font-size: 12.5px !important; color: #6f6a64 !important; }
/* Mention sous le formulaire de contact */
.form-note { font-size: 11.5px; color: #6f6a64; margin: 12px 0 0; line-height: 1.6; }
.form-note a { color: #a39d96; border-bottom: 1px solid rgba(255,255,255,.2); }
.legal__list { margin: 0 0 18px; padding-left: 20px; color: #d4cec7; font-size: 15px; line-height: 1.85; }
.legal__list li { margin-bottom: 6px; }
.legal__list li::marker { color: var(--accent); }
.legal strong { color: #f2ede7; font-weight: 500; }

/* Pages portfolio : créature plus petite, image entière et nette */
.hero:not(.hero--home) .hero__visual { width: 46%; right: 4%; top: 12%; bottom: 6%; }
.hero:not(.hero--home) .hero__visual img { object-fit: contain; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 860px) { .hero:not(.hero--home) .hero__visual { width: 100%; right: 0; top: 0; height: 320px; } }

/* =========================================================
   Responsive — corrections mobile / tablette
   ========================================================= */
@media (max-width: 860px) {
  /* Méthode de l'accueil : titre au-dessus, étapes en 2 colonnes */
  #methode.home-methode .method { grid-template-columns: 1fr; gap: 34px; }
  #methode.home-methode h2 { white-space: normal; }
  #methode.home-methode .steps { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  #methode.home-methode .step { padding: 0 18px; border-left: 1px solid var(--line); }
  #methode.home-methode .step:nth-child(odd) { padding-left: 0; border-left: 0; }
  #methode.home-methode .step p { white-space: normal; }
  /* Aperçu des projets : 3 colonnes sur tablette */
  .section--selection .projects { grid-template-columns: repeat(3, 1fr); gap: 24px 14px; }
  .section--selection .project { grid-column: span 1; }
  /* Pages portfolio : la créature ne chevauche plus le texte */
  .hero:not(.hero--home) .hero__visual { margin: -30px 0 0; height: 300px; position: relative; }
  .hero:not(.hero--home) { padding-top: 96px; }
  /* Bandeau projet : texte lisible sur les vagues */
  .cta--home { background-size: cover; }
  .cta--home .container { padding: 0 var(--pad); }
  .cta--home::before { content: ""; position: absolute; inset: 0; background: rgba(5,5,7,.45); }
  .cta--home .container { position: relative; }
}
@media (max-width: 600px) {
  .section--selection .projects { grid-template-columns: 1fr; gap: 30px; }
  .pmodal { padding: 0; }
  .pmodal__box { border-radius: 0; height: 100%; max-height: 100%; padding: 64px 20px 34px; gap: 26px; }
  .pmodal__title { font-size: clamp(34px, 10vw, 48px); margin-bottom: 24px; }
  .pmodal__lists { grid-template-columns: 1fr 1fr; gap: 18px; }
  .pmodal__close { top: 12px; right: 12px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 380px) {
  #methode.home-methode .steps { grid-template-columns: 1fr; }
  #methode.home-methode .step { padding: 0; border-left: 0; }
  .header .container { padding: 0 16px; }
  .cta--home .btn { white-space: normal; text-align: center; }
}
@media (max-width: 600px) {
  .pmodal { place-items: stretch; }
  .pmodal__box { height: 100vh; height: 100dvh; width: 100%; transform: none !important; }
  .pmodal__media { position: static; }
}
@media (max-width: 860px) { .nav { background: #070707; } .footer__pulse { height: 80px; } }

/* =========================================================
   Mobile — finitions
   ========================================================= */
@media (max-width: 600px) {
  :root { --pad: 20px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 30px; }

  /* Accueil : hero plus compact, créatures entières en bas */
  .hero--home { height: auto; min-height: 100svh; padding: 110px 0 0; justify-content: flex-start; }
  .hero--home .hero__content { margin-top: 4vh; }
  .hero--home h1 { font-size: clamp(32px, 9.4vw, 42px); }
  .hero--home .lead { font-size: 14px; margin-top: 22px; }
  .hero--home .hero__actions { margin-top: 30px; }
  .hero__bg { --hero-size: 150% auto !important; --hero-pos: 50% 100% !important; }
  .hero__bg::before { background: linear-gradient(#01050c 0, #01050c 50%, transparent 66%) !important; }

  /* Cartes « Deux univers » : visuel en haut, texte en dessous, sans chevauchement */
  .universe { aspect-ratio: auto; min-height: 0; display: block; padding: 0; }
  .universe img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 80% 30%; }
  .universe__body { padding: 22px 22px 26px; }
  .universe p { margin-bottom: 20px; }

  /* Pages portfolio : créature moins haute, titre plus proche */
  .hero:not(.hero--home) { padding-top: 84px; padding-bottom: 50px; }
  .hero:not(.hero--home) .hero__visual { height: 230px; margin: -10px 0 -10px; }
  .hero:not(.hero--home) h1 { font-size: clamp(34px, 10vw, 44px); }
  .hero__actions { gap: 22px; margin-top: 28px; }

  /* Services : 2 colonnes compactes */
  .service { padding: 26px 12px; }
  .service h3 { font-size: 9.5px !important; letter-spacing: .2em !important; }
  .service p { font-size: 12px !important; }
  .service .svc-ico, .service svg { margin-bottom: 12px; }

  /* Méthode des pages portfolio : 2 colonnes */
  .method .steps { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .method .step { padding: 0 14px; border-left: 1px solid var(--line); }
  .method .step:nth-child(odd) { padding-left: 0; border-left: 0; }
  .method .step p { white-space: normal; }

  /* Filtres : défilement horizontal sur une ligne */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 24px; padding: 0 var(--pad); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }

  /* Pied de page : compact, en 2 colonnes */
  .footer { padding: 40px 0 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .footer__grid > div { padding: 0 !important; border: 0 !important; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand .logo { margin-bottom: 8px; }
  .footer__nav li a { line-height: 2.4; }
  .footer__pulse { display: none; }
}
@media (max-width: 380px) {
  .method .steps { grid-template-columns: 1fr; }
  .method .step { padding: 0; border: 0; }
}
@media (max-width: 600px) {
  .hero--home h1 { font-size: clamp(26px, 7.4vw, 36px); }
  .hero--home h1 span { white-space: nowrap; }
  .hero__bg::before { display: none; }
  .creature--meduse { display: none; }
  .creature--raie { mix-blend-mode: normal; animation-duration: 30s; }
  .creature--raie .creature__img { background-image: url("../img/hero-mobile.jpg") !important; background-size: 112% auto !important; background-position: 50% 100% !important; animation: none; }
  .hero--home { padding-bottom: 0; }
}
@media (max-width: 600px) {
  .hero--home { flex-direction: column; align-items: stretch; }
  .hero--home .hero__content { width: 100%; max-width: 100%; padding: 0 20px; margin: 3vh 0 0; box-sizing: border-box; }
  .hero--home h1 { font-size: clamp(24px, 6.9vw, 34px); }
  .creature--raie .creature__img { -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000 72%); mask-image: linear-gradient(to bottom, transparent 55%, #000 72%); }
}
@media (max-width: 600px) {
  .hero--home, .hero__bg { background-color: #000 !important; }
  .creature--raie .creature__img { -webkit-mask-image: linear-gradient(to bottom, transparent 58%, #000 80%); mask-image: linear-gradient(to bottom, transparent 58%, #000 80%); }
}
@media (max-width: 340px) { .hero--home h1 span { white-space: normal; } }
