@font-face {
  font-family: 'Maison Neue Mono';
  src: url('../fonts/maison-neue-mono.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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


:root {
  /* ─── Nouvelle image de marque : tout en Montserrat ─── */
  --font:  'Montserrat', system-ui, -apple-system, sans-serif;
  --font-titre:    'Lora', Georgia, serif;
  --font-mono:     var(--font);

  /* Palette */
  --noir:  #000000;
  --brun:  #141414;
  --sable: #6b6b6b;
  --blanc: #faf8f3;

  /* Échelle typographique */
  --t1: 125pt;
  --t2: 50pt;
  --t3: 40pt;
  --st: 18pt;
  --tx: 12pt;
}

html { background: #faf8f3; }
body {
  font-family: var(--font-mono);
  background: #faf8f3;
}

body.intro-active {
  overflow: hidden;
}

/* ─── TRANSITION DE PAGE ─────────────────────── */

#page-transition {
  display: none;
}

/* ─── SPA : masquer l'intro immédiatement lors d'une navigation interne ── */
html.js-spa-nav #intro-bg,
html.js-spa-nav #intro-video-wrap {
  display: none !important;
}

/* ─── INTRO ───────────────────────────────────── */

#intro-bg {
  position: fixed;
  inset: 0;
  background: #faf8f3;
  z-index: 998;
  pointer-events: none;
  clip-path: inset(0 0 0% 0);
}

#intro-video-wrap {
  position: fixed;
  top: 50vh;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 210px;
  z-index: 999;
  pointer-events: none;
}

#intro-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  /* Masquée jusqu'à la 1re frame décodée → évite le flash noir du <video> */
  opacity: 0;
}

/* ─── MENU ────────────────────────────────────── */

.nav-menu {
  position: fixed;
  inset: 0;
  background: #faf8f3;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px 48px;
  transform: translateY(-100%);
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
  overflow: hidden;
}

.nav-menu.is-open {
  transform: translateY(0);
}

.nav-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-menu-titre {
  font-size: 37pt;
  display: block;
  text-decoration: none;
  color: #141414;
  line-height: 1;
}

.nav-menu-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-menu-sub {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 16px;
}

.nav-menu-sub-link {
  text-decoration: none;
  color: #141414;
}

/* Hamburger → X quand menu ouvert */
body.menu-open .nav-toggle span {
  background: #141414;
}

body.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

body.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

body.menu-open .nav-logo {
  filter: none;
  mix-blend-mode: normal;
}

body.menu-open .nav-filet {
  background: #141414;
}

/* ─── NAVBAR ─────────────────────────────────── */

.nav-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55px;
  overflow: hidden;
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}

/* Dégradé noir → transparent derrière le menu, étendu bien au-delà du menu
   et fondu en douceur pour rester subtil sur les heros clairs */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 280px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(0, 0, 0, 0.18) 30%,
    rgba(0, 0, 0, 0.07) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.navbar > * {
  pointer-events: auto;
}

/* Conifère : hero déjà sombre → pas de dégradé de navbar */
body.cn-page .navbar::before {
  display: none;
}

.nav-filet {
  position: absolute;
  top: 55px;
  left: var(--grid-margin, 24px);
  right: var(--grid-margin, 24px);
  width: auto;
  height: 2px;
  background: #faf8f3;
}

.nav-logo {
  position: absolute;
  top: 0;
  left: 50%;
  height: 55px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 35px;
  width: auto;
  display: block;
}

/* Logo texte « Guillaume » - Montserrat SemiBold, s'adapte au fond via difference */
.logo-text {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--tx);
  letter-spacing: -0.01em;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  mix-blend-mode: difference;
}

/* Flèche « ‹ » : à gauche du nom, apparaît au survol → retour aux volets */
.nav-logo-arrow {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(5px);
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--tx);
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
  mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) {
  .nav-logo:hover .nav-logo-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
  }
}

.nav-desktop {
  display: none;
}

.nav-toggle {
  position: absolute;
  top: 0;
  right: 20px;
  height: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: #faf8f3;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ─── STYLES DE TEXTE ─────────────────────────── */

/* Titre - Montserrat SemiBold */
.t-titre {
  font-family: var(--font);
  font-weight: 600;
  font-size: 37pt;
  letter-spacing: -0.03em;
  display: inline-block;
  line-height: 1;
}

/* Accent parenthèses - Montserrat Bold, style "(c)" du logo */
.t-accent {
  font-family: var(--font-titre);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 0.42em;
  vertical-align: text-top;
  position: relative;
  top: 0.1em;
  line-height: 1;
}

/* Parenthèse - Montserrat Bold 9pt, top aligné avec x-height du titre */
.t-parenthese {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 9pt;
  letter-spacing: -0.02em;
  vertical-align: 1.37em;
  line-height: 1;
}

/* Sous-titre - Maison Neue Mono Regular uppercase 12pt */
.t-sous-titre {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 15pt;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Courant - Maison Neue Mono Regular uppercase 9pt noir */
.t-courant {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #141414;
}

/* Courant Gras - même chose mais bold */
.t-courant-gras {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #141414;
}

/* Saut de ligne mobile uniquement (ignoré par l'animation car <br> a un attribut) */
br.br-mobile { display: none; }
@media (max-width: 1023px) { br.br-mobile { display: inline; } }

/* ─── HERO ────────────────────────────────────── */

.hero {
  position: relative;
  height: 110vh;
  height: 110svh;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 120%;
  top: -10%;
  position: absolute;
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* Voile noir 20 % pour faire ressortir le titre du hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
}

.hero-wordmark {
  position: absolute;
  left: 0;
  bottom: 10vh;
  bottom: 10svh;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 0 24px 32px;
}

.hero-wordmark img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* Bouton hero - texte régulier dans une boîte filet à extrémités arrondies */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  align-self: flex-start;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--tx);
  letter-spacing: -0.01em;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid #faf8f3;
  border-radius: 999px;
  padding: 11px 26px;
  margin-bottom: 22px;
  transition: background 0.3s ease, color 0.3s ease;
}

@media (hover: hover) {
  .hero-cta:hover { background: #faf8f3; color: #141414; }
}

/* Bouton style 2 - case blanche pleine, texte en découpe (on voit l'image
   à travers les lettres) via mix-blend lighten : boîte blanche reste blanche,
   texte noir laisse passer l'arrière-plan. */
.hero-cta--fill {
  background: #faf8f3;
  color: #141414;
  border: none;
  font-weight: 600;
}

@media (hover: hover) {
  .hero-cta--fill:hover { background: var(--brun); color: #ffffff; }
}

/* Titre hero - Montserrat SemiBold, échelle titre 1, aligné bas-gauche */
.hero-wordmark-text {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(40px, 10.6vw, 108pt);
  line-height: 0.9;
  color: #ffffff;
  text-align: left;
  margin: 0;
}

.hw-line {
  display: block;
  overflow: hidden;
}

.hw-in {
  display: block;
  white-space: nowrap;
  transform: translateY(110%);
}

.hero-clients-area {
  position: absolute;
  bottom: 25%;
  left: 0;
  width: 100%;
}

.hero-ticker-wrap {
  overflow: hidden;
  padding: 10px 0;
}

.hero-ticker {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.hero-ticker span {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 56px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* Accessibilité : animations réduites → ticker figé */
@media (prefers-reduced-motion: reduce) {
  .hero-ticker { animation: none; }
}

.hero-filet {
  border: none;
  border-top: 2px solid #faf8f3;
  margin: 0;
}

.hero-more {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9pt;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Bouton contact - carré noir, réutilisable */
.btn-contact {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9pt;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #141414;
  text-decoration: none;
  border: 1.5px solid #141414;
  padding: 11px 16px;
  background: transparent;
  cursor: pointer;
}

/* Bouton contact - survol : inversion (remplissage), pression : léger enfoncement */
.btn-contact {
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.12s ease-out;
}

@media (hover: hover) {
  .btn-contact:hover {
    background: #141414;
    color: #ffffff;
  }
  /* Variante hero/blanc : s'inverse en blanc plein sur texte noir */
  .hero .btn-contact:hover {
    background: #faf8f3;
    color: #141414;
  }
}

.btn-contact:active {
  transform: scale(0.97);
}

/* Focus visible global (accessibilité clavier) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Bouton contact dans le hero - positionné bas droite */
.hero .btn-contact {
  position: absolute;
  bottom: 25px;
  right: 25px;
  color: #ffffff;
  border-color: #ffffff;
  z-index: 3;
}

/* ─── ZONE BAS DE PAGE ────────────────────────── */

.index-bas {
  position: relative;
  height: 80px;
}

.index-bas .btn-contact {
  position: absolute;
  bottom: 25px;
  right: 25px;
}

/* ─── PAGE CONTACT ────────────────────────────── */

.contact-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── SERVICES ────────────────────────────────── */

.services {
  padding-top: 230px;
  background: #faf8f3;
}

.services-header {
  padding: 0 24px;
  margin-bottom: 90px;
  line-height: 1;
}

.services-header .t-titre {
  font-size: 37pt;
}

.services-header .t-parenthese {
  display: inline-block;
  transform: scaleX(1.15);
  transform-origin: left center;
  vertical-align: 1.6em;
  margin-left: 0.3em;
  position: relative;
  top: 2.5px;
}

.service-item {
  padding: 0 24px;
  margin-bottom: 40px;
}

.service-item--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-item .t-sous-titre {
  display: block;
  margin-bottom: 6px;
}

/* ─── PROJETS ─────────────────────────────────── */

.projets {
  padding-top: 60px;
}

/* Mobile : espace resserré au-dessus de « Mes Projets » */
@media (max-width: 1023px) {
  .projets { padding-top: 40px; }
}

.projets-header {
  padding: 0 24px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.projets-title {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--t2);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #141414;
  margin: 0;
}

/* Bouton « Voir mes services » - pastille filet brun (fond clair) */
.projets-services {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--tx);
  letter-spacing: -0.01em;
  color: #141414;
  text-decoration: none;
  border: 1px solid var(--brun);
  border-radius: 999px;
  padding: 11px 26px;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

@media (hover: hover) {
  .projets-services:hover { background: var(--brun); color: #ffffff; }
}

/* Case pleine largeur, 50vh (déborde les marges de section, sans scrollbar) */
.pj-feature {
  position: relative;
  height: 50vh;
  height: 50svh;
  overflow: hidden;
  margin: 0 0 80px;
}

.pj-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.projets-header .t-titre {
  font-size: 37pt;
  display: block;
  line-height: 0.9;
  margin-bottom: 0;
}

.projets-header .t-parenthese {
  display: inline-block;
  transform: scaleX(1.15);
  transform-origin: left center;
  vertical-align: 1.6em;
  margin-left: 0.3em;
  position: relative;
  top: 2.5px;
}

.projets-header .t-titre + .t-titre {
  font-size: 37pt;
  margin-top: 4px;
}

.projets-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.projets-row {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.projet-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0 24px;
}

.projet-item .projet-img-wrap {
  margin-top: 12px;
}

.projet-titre {
  display: flex;
  align-items: baseline;
  gap: 4ch;
}

/* Discipline du projet - repère de triage pour un DA pressé */
.projet-tag {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #6b6b6b;
}

.projet-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.projet-img {
  position: absolute;
  width: 100%;
  height: 130%;
  top: -15%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* Survol carte : l'image respire → l'agrandissement de la grille a un sujet */
@media (hover: hover) and (min-width: 1024px) {
  .projet-img-wrap { transition: none; }
  .projet-item .projet-img {
    transition: scale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .projet-item:hover .projet-img {
    scale: 1.04;
  }
}

/* ─── FOOTER - clôture éditoriale ─────────────── */

.footer {
  border-top: 2px solid #141414;
  margin-top: 200px;
  padding: 56px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Après un bloc « projet suivant » noir : pas de marge (déjà géré ailleurs) */

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ── Bloc CTA : e-mail en grand, l'invitation à écrire ── */
.footer-cta {
  display: block;
  text-decoration: none;
  color: #141414;
}

.footer-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #6b6b6b;
}

.footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #141414;
  flex: none;
}

.footer-cta-titre {
  display: block;
  font-size: 40pt;
  line-height: 0.9;
}

.footer-cta-mail {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
  color: #141414;
  transition: opacity 0.2s ease-out;
}

.footer-cta-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .footer-cta:hover .footer-cta-mail { opacity: 0.55; }
  .footer-cta:hover .footer-cta-arrow { transform: translateX(6px); }
}

/* ── Colonnes : menu + réseaux ── */
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col-k {
  color: #6b6b6b;
  margin-bottom: 5px;
}

.footer-col a {
  text-decoration: none;
  color: #141414;
  width: max-content;
  transition: opacity 0.2s ease-out;
}

@media (hover: hover) {
  .footer-col a:hover { opacity: 0.55; }
}

/* ── Barre méta ── */
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 24px;
  border-top: 1px solid #e2e2e2;
  padding-top: 20px;
}

.footer-copy { color: #6b6b6b; }

.footer-meta-legal {
  display: flex;
  gap: 24px;
  align-items: baseline;
}

.footer-meta-legal a {
  text-decoration: none;
  color: #6b6b6b;
  transition: color 0.2s ease-out;
}

@media (hover: hover) {
  .footer-meta-legal a:hover { color: #141414; }
}

/* Logo footer « Guillaume » - texte Montserrat noir (conservé, réutilisé ailleurs) */
.footer-logo-text {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: 30pt;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #141414;
  display: block;
  transform: scaleX(0.85);
  transform-origin: left center;
}

/* Courant vertical - Mono, 460 tracking, texte vers le haut */
.t-courant-vert {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: 0.46em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #141414;
  white-space: nowrap;
}

/* Courant numéro - Mono 30pt entre parenthèses */
.t-courant-num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 30pt;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #141414;
  line-height: 1;
}


/* ─── SERVICE IMAGES ──────────────────────────── */

.service-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  margin-top: 12px;
}

.service-img {
  position: absolute;
  width: 100%;
  height: 130%;
  top: -15%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* ══════════════════════════════════════════════
   DESKTOP - 12 COLONNES
   Breakpoint : 1024px+
   Gouttières : 24px  |  Marges : 80px
   ══════════════════════════════════════════════ */

@media (min-width: 1024px) {

  :root {
    --grid-gutter: 24px;
    --grid-margin: clamp(24px, 5vw, 80px); /* même marge que l'accueil et L'Heure Mauve */
  }

  /* ─── TYPOGRAPHIE ───────────────────────── */

  .t-titre,
  .services-header .t-titre,
  .projets-header .t-titre,
  .projets-header .t-titre + .t-titre,
  .nav-menu-titre {
    font-size: 47pt;
  }

  .t-parenthese,
  .services-header .t-parenthese,
  .projets-header .t-parenthese {
    font-size: 11.5pt;
  }

  .t-sous-titre {
    font-size: 19pt;
  }

  .t-courant,
  .t-courant-gras,
  .t-courant-vert {
    font-size: 10pt;
  }

  /* ─── NAVBAR ─────────────────────────────── */

  /* navbar garde sa hauteur originale (110px) pour ne pas clipper le filet */
  .nav-top {
    height: 68px;
  }

  .nav-filet {
    top: 68px;
  }

  .nav-logo {
    height: 68px;
    left: var(--grid-margin);
    transform: none;
  }

  .nav-logo img {
    height: 42px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
    position: absolute;
    top: 0;
    right: var(--grid-margin);
    height: 68px;
    align-items: center;
    gap: 48px;
  }

  .nav-desktop-link {
    font-family: var(--font);
    font-size: var(--tx);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-decoration: none;
    mix-blend-mode: difference;
    position: relative;
    transition: font-weight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Gras quand on est sur la page ou dans la section correspondante */
  .nav-desktop-link[aria-current="page"],
  .nav-desktop-link.is-active {
    font-weight: 600;
  }

  /* Soulignement animé au survol (croît depuis la gauche) */
  .nav-desktop-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-desktop-link:hover::after {
    transform: scaleX(1);
  }

  /* L'indicateur de page/section courante est le passage en gras (ci-dessus). */

  /* ─── HERO ───────────────────────────────── */

  .hero .btn-contact {
    right: var(--grid-margin);
  }

  .hero-wordmark {
    padding: 0 var(--grid-margin, 40px) 48px;
  }

  /* ─── SERVICES ───────────────────────────── */

  .services {
    padding-left: var(--grid-margin);
    padding-right: var(--grid-margin);
    padding-bottom: 100px;
  }

  .services-header {
    padding: 0;
    margin-bottom: 80px;
  }

  .services-grid {
    display: flex;
    gap: var(--grid-gutter);
  }

  .service-item {
    flex: 2 1 0;
    min-width: 0;
    padding: 0;
    margin-bottom: 0;
    transition: flex-grow 0.55s cubic-bezier(0.76, 0, 0.24, 1);
  }

  .service-item:hover {
    flex-grow: 3;
  }

  .service-img-wrap {
    width: 100%;
    margin-left: 0;
    height: 660px;
    aspect-ratio: unset;
  }

  /* ─── PROJETS ────────────────────────────── */

  .projets {
    padding-left: var(--grid-margin);
    padding-right: var(--grid-margin);
  }

  .projets-header {
    padding: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .pj-feature {
    margin-left: calc(-1 * var(--grid-margin));
    margin-right: calc(-1 * var(--grid-margin));
  }

  .projets-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
  }

  .projets-row {
    display: flex;
    flex-direction: row;
    gap: var(--grid-gutter);
  }

  .projet-item {
    flex: 6 1 0;
    min-width: 0;
    padding: 0;
    transition: flex-grow 0.55s cubic-bezier(0.76, 0, 0.24, 1);
  }

  .projet-img-wrap {
    aspect-ratio: auto;
    height: 70vh;
    height: 70svh;
  }

  /* Redimensionnement au survol - réservé aux vrais pointeurs.
     Sur écran tactile, :hover se déclenche au toucher et y reste collé :
     la tuile s'élargissait et poussait sa voisine jusqu'au tap suivant.
     L'ordre des règles est celui d'origine : la règle de repos doit rester
     ENTRE les deux blocs, sa spécificité étant identique (0,4,0) à celle
     de la règle générique de survol - c'est l'ordre qui les départage. */
  @media (hover: hover) and (pointer: fine) {

    .projets-row:has(.projet-item:hover) .projet-item {
      flex-grow: 5.75;
    }

    .projets-row:has(.projet-item:hover) .projet-item:hover {
      flex-grow: 6.25;
    }
  }

  /* Rangée à un seul projet gardée sur la moitié (place pour un projet à côté) */
  /* Rangée à un seul projet (nombre impair) : demi-largeur au repos. */
  .projets-row--half .projet-item,
  .projets-row:not(:has(.projet-item + .projet-item)) .projet-item {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc((100% - var(--grid-gutter)) / 2);
    transition: flex-basis 0.55s cubic-bezier(0.76, 0, 0.24, 1);
  }

  @media (hover: hover) and (pointer: fine) {

    /* Neutralise le flex-grow des règles de survol génériques.
       Spécificité volontairement élevée pour passer devant elles. */
    .projets-row--half:has(.projet-item:hover) .projet-item,
    .projets-row--half:has(.projet-item:hover) .projet-item:hover,
    .projets-row:not(:has(.projet-item + .projet-item)):has(.projet-item:hover) .projet-item,
    .projets-row:not(:has(.projet-item + .projet-item)):has(.projet-item:hover) .projet-item:hover {
      flex-grow: 0;
    }

    /* Survol : +24px, exactement comme les paires, sans s'étirer sur la rangée. */
    .projets-row--half:has(.projet-item:hover) .projet-item:hover,
    .projets-row:not(:has(.projet-item + .projet-item)):has(.projet-item:hover) .projet-item:hover {
      flex-basis: calc((100% - var(--grid-gutter)) / 2 + 24px);
    }
  }

  /* ─── BAS DE PAGE ────────────────────────── */

  .index-bas .btn-contact {
    right: var(--grid-margin);
  }

  /* ─── FOOTER ─────────────────────────────── */

  .footer {
    padding: 72px var(--grid-margin) 26px;
    gap: 72px;
  }

  .footer-main {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gutter);
    align-items: start;
    gap: 0;
  }

  .footer-cta { grid-column: 1 / 8; }

  .footer-cta-titre { font-size: 64pt; }

  .footer-cols {
    grid-column: 9 / 13;
    justify-content: space-between;
    gap: var(--grid-gutter);
    padding-top: 6px;
  }

  /* ─── CURSEUR PERSONNALISÉ ───────────────── */

  /* Curseur natif masqué UNIQUEMENT si le curseur perso est actif (posé par cursor.js) */
  .has-custom-cursor body,
  .has-custom-cursor a,
  .has-custom-cursor button,
  .has-custom-cursor [role="button"],
  .has-custom-cursor input,
  .has-custom-cursor label,
  .has-custom-cursor select,
  .has-custom-cursor textarea {
    cursor: none;
  }

  /* Disque de taille fixe (64px) mis à l'échelle via transform → animation GPU,
     lisse. La position vient de left/top (posés par cursor.js), le centrage +
     l'échelle vivent dans transform. */
  .custom-cursor {
    position: fixed;
    width: 64px;
    height: 64px;
    background: #faf8f3;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%) scale(0.16);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
  }

  .custom-cursor-label {
    font-family: var(--font-mono);
    font-size: 8pt;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #141414;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.22s ease-out;
  }

  /* Survol d'un projet : le disque s'ouvre en grand, « Voir → » apparaît */
  .custom-cursor.is-project {
    mix-blend-mode: normal;
    transform: translate(-50%, -50%) scale(1);
  }

  .custom-cursor.is-project .custom-cursor-label {
    opacity: 1;
    transition: opacity 0.28s ease-out 0.08s;
  }

  /* Survol lien/bouton standard : léger grossissement */
  .custom-cursor.is-link {
    transform: translate(-50%, -50%) scale(0.42);
  }

}


/* ─── CASE TARIFS SUR L'ACCUEIL (calquée sur « projet suivant ») ─── */

/* La case noire colle au footer : pas de vide entre les deux */
.index-tarifs + .footer { margin-top: 0; }

.index-tarifs {
  display: block;
  text-decoration: none;
  color: #ffffff;
  background: #141414;
  padding: 48px var(--grid-margin, 24px);
  margin-top: 160px;
}

.it-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.it-eyebrow {
  display: block;
  color: #c7c7c7;
  margin-bottom: 14px;
}

.it-line {
  display: block;
  margin: 0;
  color: #ffffff;
  line-height: 0.9;
}

.it-arrow {
  color: #ffffff;
  white-space: nowrap;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .index-tarifs:hover .it-arrow { transform: translateX(8px); }
}

/* Mobile : empiler pour que la flèche ne colle jamais au titre */
@media (max-width: 1023px) {
  .it-inner {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 28px;
  }
  .it-arrow { align-self: flex-end; }

  /* « À partir de 180 $, » doit tenir sur une seule ligne.
     scaleX(1) ne réduit pas la boîte de mise en page : le texte se
     répartit sur sa largeur pleine, donc il cassait une ligne trop tôt.
     On réduit la taille juste assez pour que la boîte entre dans
     100vw - 48px (marge de 24px de chaque côté). */
  .it-line {
    font-size: min(37pt, calc(12.4vw - 6.5px));
  }
}

@media (min-width: 1024px) {
  .index-tarifs {
    margin-top: 220px;
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

/* ─── Bascule entre les deux volets du site (sous le nom, dans le hero) ─── */

/* Ligne clippée : le lien monte depuis le bas, comme le nom. */
.hero-switch-line {
  display: block;
  overflow: hidden;
  margin-top: 22px;
  text-align: center;
}

.hero-switch {
  display: inline-block;
  transform: translateY(110%);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 4px;
  transition: border-color 0.25s ease-out;
}

@media (hover: hover) {
  .hero-switch:hover { border-bottom-color: #ffffff; }
}

/* Animations réduites : pas de montée, le lien est visible d'emblée. */
@media (prefers-reduced-motion: reduce) {
  .hero-switch { transform: none; }
}

/* ══════════════════════════════════════════════
   TABLETTE - 768 à 1023px
   Cette plage n'avait aucun point de rupture : elle recevait la mise en
   page mobile, conçue pour 375px. Les paragraphes s'étiraient à 103
   caractères par ligne, loin des 60–75 lisibles.
   ══════════════════════════════════════════════ */

@media (min-width: 768px) and (max-width: 1023px) {

  .ap-lede-p,
  .ap-texte-body,
  .pjb-desc p,
  .pj-intro-text p,
  .tf-lede {
    max-width: 68ch;
  }
}

/* ══════════════════════════════════════════════
   NOUVEAU SERVICE — VISITES 360 (section vidéo sous le hero)
   ══════════════════════════════════════════════ */

/* Mobile : titre au-dessus de la vidéo, puis le reste en dessous.
   L'ordre du DOM (head, media, body) donne déjà cet empilement. */
.nsv {
  display: flex;
  flex-direction: column;
  background: #faf8f3;
  margin-top: 72px;
}

.nsv-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 24px;
}

.nsv-media {
  height: 62vh;
  height: 62svh;
  overflow: hidden;
  margin-top: 28px;
}

.nsv-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nsv-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 24px 0;
}

.nsv-eyebrow { color: #6b6b6b; }

.nsv-titre {
  color: #141414;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 0.95;
  transform: scaleX(1);
  transform-origin: left center;
  margin: 0;
}

.nsv-sous {
  color: #141414;
  line-height: 1.4;
  max-width: 40ch;
}

.nsv-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 6px;
}

.nsv-stat {
  position: relative;
  padding-left: 18px;
  color: #141414;
  line-height: 1.55;
  letter-spacing: 0.02em;
  max-width: 52ch;
}

.nsv-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: #141414;
}

/* Desktop : vidéo à gauche (pleine hauteur), titre en haut à droite,
   corps en bas à droite. Grille 2 colonnes / 2 rangées. */
@media (min-width: 1024px) {
  .nsv {
    display: grid;
    grid-template-columns: auto minmax(0, 48ch);
    grid-template-rows: auto 1fr;
    justify-content: center;
    column-gap: 0;
    padding: 0 var(--grid-margin, 40px);
    margin-top: 130px;
  }
  .nsv-media {
    grid-column: 1;
    grid-row: 1 / 3;           /* la vidéo occupe toute la hauteur */
    height: 80vh;
    height: 80svh;
    aspect-ratio: 720 / 1078;
    margin-top: 0;
  }
  .nsv-head {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 0 48px;       /* respiration interne, collé à la vidéo */
  }
  .nsv-body {
    grid-column: 2;
    grid-row: 2;
    padding: 24px 0 0 48px;
  }
  /* Le bouton descend au bas de la colonne, aligné avec le bas de la vidéo.
     Spécificité renforcée pour passer devant la règle de base (margin-top: 16px). */
  .nsv-body .nsv-cta { margin-top: auto; }
}

/* CTA « Voir les tarifs » sous les stats de la section 360 */
.nsv-cta {
  align-self: flex-start;
  margin-top: 16px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #141414;
  text-decoration: none;
  border: 1.5px solid #141414;
  padding: 11px 16px;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .nsv-cta:hover { background: #141414; color: #ffffff; }
}

/* ══════════════════════════════════════════════
   TÉMOIGNAGES — titre 3 cols + 3 cases (grille 12 colonnes)
   ══════════════════════════════════════════════ */

.tem {
  padding: 96px 24px 60px;
  color: #141414;
}

.tem-title {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--t3);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #141414;
  margin: 0;
}

.tem-sub {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--tx);
  line-height: 1.35;
  color: #141414;
  margin: 20px 0 0;
  text-align: left;
}

.tem-cards {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 44px;
}

/* Case beige, coins arrondis, textes blancs */
.tem-card {
  background: #faf8f3;
  border-radius: 20pt;
  padding: 28px 26px;
  color: #141414;
}

.tem-num {
  display: block;
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--t3);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #141414;
  margin-bottom: 18px;
}

.tem-name {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--st);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #141414;
  margin: 0 0 4px;
  white-space: nowrap;
}

.tem-role {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--tx);
  line-height: 1.3;
  color: #141414;
  margin: 0 0 40px;
}

.tem-quote {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--tx);
  line-height: 1.5;
  color: #141414;
  margin: 0;
}

@media (min-width: 1024px) {
  .tem {
    padding: 140px var(--grid-margin, 40px) 120px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gutter, 24px);
    row-gap: 44px;
    align-items: start;
  }
  /* Titre : 4 colonnes. Les 3 cases empilées dans une seule colonne. */
  .tem-head    { grid-column: 1 / 5; }
  .tem-cards   {
    grid-column: 5 / 13;
    flex-direction: row;
    gap: 40px;
    margin-top: 0;
  }
  .tem-card    { flex: 1; min-width: 0; }
}

/* ══════════════════════════════════════════════
   TÉMOIGNAGES — ancien carrousel (non utilisé)
   ══════════════════════════════════════════════ */

.tmc {
  padding: 96px 24px 36px;
}

.tmc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
}

.tmc-title {
  line-height: 0.9;
  margin: 0;
}

/* (3) à droite de « clients », avec de l'espace */
.tmc-count { margin-left: 0.5em; }

.tmc-nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.tmc-arrow {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1.5px solid #141414;
  background: #faf8f3;
  color: #141414;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .tmc-arrow:hover { background: #141414; color: #ffffff; }
}

.tmc-viewport { overflow: hidden; }

.tmc-track {
  display: flex;
  gap: 56px;
  align-items: flex-start;   /* laisse l'aspect-ratio 3:2 fixer la hauteur */
  will-change: transform;
}

/* Carte : nom au-dessus, image 3:2 propre, citation en dessous. Texte noir. */
.tmc-card {
  flex: 0 0 auto;            /* largeur posée par carousel.js */
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #141414;
}

.tmc-bg {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.tmc-attr { margin: 0; }

.tmc-name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #141414;
}

.tmc-role {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #6b6b6b;
}

.tmc-quote {
  margin: 0;
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: 15pt;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #141414;
  /* Montserrat condensé comme le reste du site, largeur compensée */
  transform: scaleX(1);
  transform-origin: left top;
  width: auto;
}

@media (min-width: 1024px) {
  .tmc { padding: 140px var(--grid-margin, 40px) 56px; }
  /* Carrousel pleine largeur, 3 colonnes visibles. */
  .tmc-head { margin-bottom: 56px; }
  .tmc-quote { font-size: 15pt; }
}

/* ══════════════════════════════════════════════
   PROJETS v2 — cases pleine largeur, empilées, 50vh, coins 10pt
   ══════════════════════════════════════════════ */
.projets-grid { gap: 24px; padding: 0 24px; }
.projets-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.projet-item {
  position: relative;
  display: block;
  width: 100%;
  height: 50vh;
  height: 50svh;
  padding: 0;
  border-radius: 20pt;
  overflow: hidden;
}
.projet-item .projet-img-wrap {
  position: absolute;
  inset: 0;
  margin: 0;
  height: 100%;
  aspect-ratio: auto;
}
.projet-item .projet-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  top: 0;
}
.projet-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 55%);
  z-index: 1;
  pointer-events: none;
}
.projet-titre {
  position: absolute;
  left: 26px;
  bottom: 44px;
  z-index: 2;
  color: #ffffff;
  margin: 0;
}
.projet-tag {
  position: absolute;
  left: 26px;
  bottom: 26px;
  z-index: 2;
  color: #ffffff;
  margin: 0;
}

@media (min-width: 1024px) {
  .projets-grid { gap: 24px; padding: 0; }
  .projets-row { flex-direction: column; gap: 24px; }
  .projet-item {
    flex: none;
    width: 100%;
    height: 50vh;
    height: 50svh;
  }
  .projet-item .projet-img-wrap { height: 100%; }
}

/* ══════════════════════════════════════════════
   PROJETS — overlay au survol (reprend le layout des témoignages)
   ══════════════════════════════════════════════ */
.projet-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.25);   /* voile noir 25 % */
  opacity: 1;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sur pointeur fin : caché au repos, apparaît progressivement au survol */
@media (hover: hover) and (pointer: fine) {
  .projet-overlay { opacity: 0; }
  .projet-item:hover .projet-overlay { opacity: 1; }
}

.projet-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.projet-num {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--t3);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.projet-name {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--st);
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}

.projet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  margin: 0;
}

.pm-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pm-row dt {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--tx);
  color: #c7c7c7;
}

.pm-row dd {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--tx);
  color: #ffffff;
  margin: 0;
}

/* ══════════════════════════════════════════════
   FOOTER v2
   ══════════════════════════════════════════════ */
.ft {
  margin-top: 100px;
  padding: 0 24px 40px;
  color: #141414;
}

.ft-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-top: 2px solid var(--brun);
  padding-top: 44px;
}

.ft-big {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--t2);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #141414;
  margin: 0;
}

.ft-navcol {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ft-navcol a {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--tx);
  letter-spacing: -0.01em;
  color: #141414;
  text-decoration: none;
}

@media (hover: hover) {
  .ft-navcol a:hover { text-decoration: underline; }
}

.ft-name {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--tx);
  letter-spacing: -0.01em;
  color: #141414;
  margin-bottom: 28px;   /* ligne vide */
}

.ft-r {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--brun);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 9pt;
  line-height: 1;
  color: #141414;
}

/* Desktop : une seule rangée, tout calé en bas */
@media (min-width: 1024px) {
  .ft {
    padding: 0 var(--grid-margin, 40px) 44px;
  }
  .ft-inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gutter, 24px);
    align-items: end;
    padding-top: 52px;
  }
  .ft-big        { grid-column: 1 / 6; }
  .ft-navcol--a  { grid-column: 6 / 8; }
  .ft-navcol--b  { grid-column: 8 / 10; }
  .ft-r          { grid-column: 12 / 13; justify-self: end; }
}

/* Volet design : jambe du « g » de « image » coupée au bas du viewport */
.dg .hero-wordmark { padding-bottom: 48px; }

/* Volet design : cartes « Services offerts » carrées */
@media (min-width: 1024px) {
  .dg .tem-card { aspect-ratio: 1 / 1; }
}

/* Volet design : interligne du titre desserré pour ne pas couper la jambe du « g » */
.dg .hw-line:last-child { padding-bottom: 0.16em; }
.dg .hw-line:last-child .hw-in { transform: translateY(130%); }

/* Volet design : services décalés de 2 colonnes vers la gauche */
@media (min-width: 1024px) {
  .dg .tem-head  { grid-column: 1 / 5; }
  .dg .tem-cards { grid-column: 5 / 13; }
}

/* Volet design : numéro en haut, texte (nom + description) calé au bas de la carte */
.dg .tem-quote { margin-top: auto; }

/* Volet design : cartes en flex colonne pour caler le texte en bas */
.dg .tem-card { display: flex; flex-direction: column; }

/* Volet design : bouton « Me contacter » calé au bas de la colonne du titre */
@media (min-width: 1024px) {
  .dg .tem { align-items: stretch; }
  .dg .tem-head { display: flex; flex-direction: column; align-items: flex-start; }
  .dg .tem-cta { margin-top: auto; }
}

/* Correctif : une rangée de projets à un seul item (nombre impair) ne
   collabait plus en hauteur 0 sur desktop. On lui redonne la hauteur des paires. */
@media (min-width: 1024px) {
  .projets-row:not(:has(.projet-item + .projet-item)) .projet-item {
    min-height: 50vh;
    min-height: 50svh;
  }
}

/* ═════════════════════════════════════════════════════════
   MENU MOBILE — refonte normes UX (overlay plein écran)
   Overlay à la couleur du volet, cibles tactiles ≥44px,
   entrée en cascade, verrou de défilement, focus visible.
   ═════════════════════════════════════════════════════════ */
.nav-menu {
  background: #faf8f3;
  color: #141414;
  justify-content: center;
  padding: 96px 32px calc(48px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-menu-inner { gap: 2px; }
.nav-menu-titre {
  font-family: var(--font);
  font-weight: 600;
  font-size: 32pt;
  line-height: 1.2;
  color: #141414;
  width: fit-content;
  max-width: 100%;
  padding: 12px 0;                 /* cible tactile ≥44px */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s ease;
}
.nav-menu.is-open .nav-menu-titre { opacity: 1; transform: none; }
.nav-menu.is-open .nav-menu-titre:nth-child(1) { transition-delay: 0.10s; }
.nav-menu.is-open .nav-menu-titre:nth-child(2) { transition-delay: 0.16s; }
.nav-menu.is-open .nav-menu-titre:nth-child(3) { transition-delay: 0.22s; }
.nav-menu.is-open .nav-menu-titre:nth-child(4) { transition-delay: 0.28s; }
@media (hover: hover) {
  .nav-menu-titre:hover { opacity: 0.65; }
}
.nav-menu-titre:focus-visible {
  outline: 2px solid var(--brun);
  outline-offset: 4px;
  border-radius: 4px;
  opacity: 1;
  transform: none;
}
.nav-menu-titre[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

/* Verrou du défilement de l'arrière-plan quand le menu est ouvert */
body.menu-open { overflow: hidden; }

/* Hamburger → X : barres blanches sur le fond foncé du menu */
body.menu-open .nav-toggle span { background: var(--brun); }
body.menu-open .nav-filet { background: var(--brun); }
body.menu-open .logo-text,
body.menu-open .nav-logo-arrow { color: #141414; mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  .nav-menu { transition: none; }
  .nav-menu-titre { transition: none; opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   TITRES — Lora (drapeau), largeur 80 %
   ═══════════════════════════════════════════════════════════ */
.t-titre,
.hero-wordmark-text,
.projets-title,
.tem-title,
.ft-big,
.footer-cta-titre,
.tf-titre {
  font-family: var(--font-titre) !important;   /* Lora */
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  display: inline-block;
  transform: scaleX(0.90);
  transform-origin: left center;
}

/* Mot / groupe important d'un titre en italique : <em> dans le titre */
.hero-wordmark-text em,
.t-titre em,
.tem-title em,
.projets-title em,
.ft-big em,
.footer-cta-titre em,
.tf-titre em {
  font-style: italic;
  font-weight: 500;
}

/* Numéros de carte : Montserrat, largeur normale */
.tem-num,
.projet-num {
  font-family: var(--font) !important;
  transform: none;
}

/* Menu déroulant : Montserrat, largeur normale */
.nav-menu-titre {
  font-family: var(--font) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  transform: none !important;
}

/* ─── Ombres portées sur les cartes ─── */
.tem-card,
.tf-comp-card,
.projet-item { box-shadow: -5px 8px 22px rgba(0, 0, 0, 0.08); }
.projet-item {
  box-shadow: -8px 16px 38px rgba(0, 0, 0, 0.16);
  transition: box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              flex-grow 0.55s cubic-bezier(0.76, 0, 0.24, 1),
              flex-basis 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}
@media (hover: hover) {
  .projet-item:hover { box-shadow: -20px 36px 66px rgba(0, 0, 0, 0.26); }
}

/* ─── HERO INDEX : titre centré (drapeau), bouton sous le titre ─── */
.hero-wordmark {
  inset: 0;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dg .hero-wordmark { padding: 0 24px; }
.hero-wordmark-text {
  order: 1;
  transform-origin: center center;
  text-align: center;
}
.hero-wordmark .hero-cta {
  order: 2;
  align-self: center;
  margin: 26px 0 0;
}
.hw-line { text-align: center; }

/* Titres 2 et 3 un peu plus gras (SemiBold), titre 1 reste Medium */
.projets-title,
.tem-title,
.ft-big,
.footer-cta-titre,
.tem-num,
.projet-num { font-weight: 600 !important; }


/* Texte blanc forcé sur toutes les surfaces colorées (ni beige pâle ni blanc) */
.lm-sig, .lm-sig *,
.oq2-signature, .oq2-signature *,
.oq2-next, .oq2-next *,
.pjb-next, .pjb-next *,
.index-tarifs, .index-tarifs * { color: #ffffff !important; }


/* Titre CTA du footer : reste en bloc pour que le-mail passe dessous */
.footer-cta-titre { display: block; }


/* ════════════════════════════════════════════════
   MISE À JOUR GLOBALE — barre de nav frosted + boutons
   ════════════════════════════════════════════════ */
.navbar{height:64px;background:rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);
  border-bottom:1px solid rgba(255,255,255,.35);pointer-events:auto}
.navbar::before{display:none !important}
.nav-filet{display:none !important}
.nav-top{height:64px}
.nav-logo{height:64px;left:var(--grid-margin,24px);transform:none}
.nav-toggle{height:64px}
.logo-text,.nav-logo-arrow{color:#fff !important;mix-blend-mode:normal !important}
.nav-desktop-link{color:#fff !important;mix-blend-mode:normal !important}
.nav-toggle span{background:#fff}
@media(min-width:1024px){
  .nav-top{height:64px}.nav-logo{height:64px}.nav-desktop{height:64px}.nav-toggle{height:64px}
}

/* Boutons uniformisés : pastille noire (inverse au survol) */
.btn-contact,.projets-services,.tem-cta,.tf-service-btn,.nsv-cta{
  font-family:var(--font) !important;font-weight:600 !important;font-size:11pt !important;
  letter-spacing:-.01em !important;text-transform:none !important;
  color:#fff !important;background:#111 !important;border:1.5px solid #111 !important;
  border-radius:999px !important;padding:13px 28px !important;
  transition:background .2s ease,color .2s ease !important}
@media(hover:hover){
  .btn-contact:hover,.projets-services:hover,.tem-cta:hover,.tf-service-btn:hover,.nsv-cta:hover{
    background:transparent !important;color:#111 !important}
  .hero .btn-contact:hover{background:#fff !important;color:#111 !important}
}

/* ════════════════════════════════════════════════
   MENU MOBILE : voile noir 50 %, options blanches en cascade
   ════════════════════════════════════════════════ */
.nav-menu{
  background:rgba(0,0,0,.5) !important;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  transform:none !important;
  opacity:0;visibility:hidden;
  transition:opacity .45s ease,visibility 0s linear .45s !important;
}
.nav-menu.is-open{opacity:1;visibility:visible;transition:opacity .45s ease,visibility 0s !important}
.nav-menu-titre,.nav-menu-sub-link{color:#fff !important}
/* entrée : chaque option descend doucement, de haut en bas */
.nav-menu-titre{opacity:0;translate:0 -18px;
  transition:opacity .5s ease,translate .8s cubic-bezier(.16,1,.3,1),color .2s ease !important}
.nav-menu.is-open .nav-menu-titre{opacity:1;translate:0 0}
.nav-menu.is-open .nav-menu-titre:nth-child(1){transition-delay:.12s !important}
.nav-menu.is-open .nav-menu-titre:nth-child(2){transition-delay:.22s !important}
.nav-menu.is-open .nav-menu-titre:nth-child(3){transition-delay:.32s !important}
.nav-menu.is-open .nav-menu-titre:nth-child(4){transition-delay:.42s !important}
.nav-menu-titre:focus-visible{outline-color:#fff}
/* barre du haut : transparente et X blanc quand le menu est ouvert */
body.menu-open .navbar{background:transparent;border-bottom-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
body.menu-open .nav-toggle span{background:#fff !important}
@media (prefers-reduced-motion: reduce){
  .nav-menu,.nav-menu-titre{transition:none !important}
  .nav-menu-titre{translate:none}
}

/* dimensions déclarées sur les images (évite les sauts au chargement) : le CSS existant garde la main */
:where(img[width][height]){width:auto;height:auto}

/* focus clavier visible partout (les styles de focus existants restent prioritaires) */
:where(a,button,[tabindex]):focus-visible{outline:2px solid currentColor;outline-offset:3px}
