/* =========================================================
   Regulus Studio — Modern Royalty
   ========================================================= */

:root {
  --midnight: #0B0F19;
  --gold: #C5A880;
  --ivory: #F4F4F0;
  --starlight: #FFF7E6;

  --gold-line: rgba(197, 168, 128, .4);
  --gold-line-strong: rgba(197, 168, 128, .55);
  --gold-line-soft: rgba(197, 168, 128, .18);
  --ivory-85: rgba(244, 244, 240, .85);
  --ivory-65: rgba(244, 244, 240, .65);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --intro: 1.5s; /* durée du lever de Regulus avant le reste */

  --nav-h: 96px;
  --offers-h: 109px;
  --rail: clamp(16px, 13.9vw, 200px); /* 200px à 1440px */
  --gutter: clamp(16px, 3.9vw, 56px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scrollbar-color: rgba(197, 168, 128, .45) var(--midnight);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

::selection { background: rgba(197, 168, 128, .85); color: var(--midnight); }

/* Lien d'évitement : visible uniquement au clavier */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--midnight);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

body {
  margin: 0;
  background: var(--midnight);
  color: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Liens & boutons ---------- */

.ul {
  position: relative;
  padding: 6px 0;
  color: var(--ivory);
  text-decoration: none;
  transition: color .4s ease;
}
.ul::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.ul:hover { color: var(--gold); }
.ul:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color .45s ease;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover { color: var(--midnight); }
.btn:hover::before { transform: translateY(0); }

.btn--solid { background: var(--gold); color: var(--midnight); font-weight: 600; }
.btn--solid::before { background: var(--ivory); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--nav-h) 1fr auto;
  background: var(--midnight);
}

/* ---------- Ciel ---------- */

.hero__sky {
  position: absolute; inset: 0;
  z-index: -2;
  overflow: hidden;
  /* Parallaxe légère pilotée par script.js (--px, --py entre -1 et 1) */
  transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0) scale(1.03);
  transition: transform 1.4s var(--ease);
}

/* Le ciel garde le ratio 1440×900 de la maquette et couvre le hero,
   pour que Regulus reste aligné sur la constellation. */
.sky {
  position: absolute;
  top: 50%; left: 50%;
  width: max(100%, 160vh);
  width: max(100%, 160svh);
  aspect-ratio: 1440 / 900;
  transform: translate(-50%, -50%);
  animation: drift 60s ease-in-out infinite alternate;
}
.sky__map {
  width: 100%; height: 100%;
  animation: fadeIn 2s ease .7s backwards;
}

@keyframes drift {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(calc(-50% - 8px), calc(-50% - 4px)) scale(1.04); }
}

.reg-halo {
  position: absolute;
  left: 70.83%; top: 61.22%;
  width: 8.33%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,240,210,.55) 0%, rgba(197,168,128,.22) 35%, rgba(197,168,128,0) 70%);
  animation: haloIn 1.6s var(--ease) backwards, regHalo 3.2s ease-in-out 1.6s infinite;
}
.reg-star {
  position: absolute;
  left: 72.5%; top: 63.89%;
  width: 5%;
  filter: drop-shadow(0 0 6px rgba(255,236,200,.9));
  animation: starIn 1.6s var(--ease) backwards, regTw 3.2s ease-in-out 1.6s infinite;
}
.reg-star2 {
  position: absolute;
  left: 73.61%; top: 65.67%;
  width: 2.78%;
  transform: rotate(45deg);
  animation: star2In 1.6s var(--ease) .15s backwards, regTw2 3.2s ease-in-out 1.75s infinite;
}
.reg-label {
  position: absolute;
  left: 77.64%; top: 70.67%;
  font-size: 11px;
  letter-spacing: .24em;
  white-space: nowrap;
  color: rgba(233, 215, 180, .8);
  animation: fadeIn 1.6s ease 1.1s backwards;
}

@keyframes regTw {
  0%, 100% { opacity: .8; transform: scale(.82); }
  18%      { opacity: 1;  transform: scale(1.18); }
  32%      { opacity: .85; transform: scale(.95); }
  48%      { opacity: 1;  transform: scale(1.3); }
  70%      { opacity: .9; transform: scale(1); }
}
@keyframes regTw2 {
  0%, 100% { opacity: .2;  transform: rotate(45deg) scale(.7); }
  18%      { opacity: .7;  transform: rotate(45deg) scale(1.1); }
  48%      { opacity: .9;  transform: rotate(45deg) scale(1.25); }
  70%      { opacity: .35; transform: rotate(45deg) scale(.9); }
}
/* Lever de Regulus : l'étoile apparaît seule, puis le reste suit */
@keyframes starIn {
  from { opacity: 0; transform: scale(0) rotate(-90deg); }
  to   { opacity: .8; transform: scale(.82) rotate(0); }
}
@keyframes star2In {
  from { opacity: 0;  transform: rotate(-45deg) scale(0); }
  to   { opacity: .2; transform: rotate(45deg) scale(.7); }
}
@keyframes haloIn {
  0%   { opacity: 0; transform: scale(.2); }
  55%  { opacity: 1; transform: scale(1.6); }
  100% { opacity: .55; transform: scale(.85); }
}
@keyframes fadeIn {
  from { opacity: 0; }
}
@keyframes twIn {
  from { opacity: 0; }
  to   { opacity: .15; }
}
@keyframes regHalo {
  0%, 100% { opacity: .55; transform: scale(.85); }
  48%      { opacity: 1;   transform: scale(1.25); }
}

.tw {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--starlight);
  box-shadow: 0 0 8px 2px rgba(233, 215, 180, .7);
  animation: twIn 1.2s ease .8s both, tw 3.6s ease-in-out calc(var(--d, 0s) + 2s) infinite;
}
@keyframes tw {
  0%, 100% { opacity: .15; transform: scale(.6); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

.hero__vignette {
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 34% 40% at 50% 46%, rgba(11,15,25,.5) 0%, rgba(11,15,25,.2) 60%, rgba(11,15,25,0) 100%);
}

/* ---------- Navigation ---------- */

.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
}
/* Filet qui s'efface vers les bords plutôt qu'un trait plein */
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 20%, var(--gold-line) 80%, transparent);
  transform-origin: center;
  animation: draw 1.6s var(--ease) calc(var(--intro) + .2s) backwards;
}

.nav__brand img { height: 52px; width: auto; }

.nav__menu {
  display: contents;
}
.nav__links {
  display: flex;
  gap: 44px;
  margin: 0; padding: 0;
  list-style: none;
  font-size: 15px;
  letter-spacing: .02em;
}
.nav__cta { padding: 14px 22px; }

.nav__toggle { display: none; }
.nav__tagline { display: none; }

/* Sélecteur de langue FR / EN */
.nav__links { order: 1; margin-inline: auto; }
.lang { order: 2; margin-right: 32px; }
.nav__cta { order: 3; }

.lang {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(244, 244, 240, .35);
  animation: rise 1.2s var(--ease) calc(var(--intro) + .25s) backwards;
}
.lang button {
  position: relative;
  padding: 12px 2px; /* zone de clic confortable au doigt */
  border: 0;
  background: none;
  color: rgba(244, 244, 240, .55);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color .3s ease;
}
.lang button:hover { color: var(--ivory); }
.lang button[aria-pressed="true"] { color: var(--gold); }
.lang button::after {
  content: "";
  position: absolute;
  left: 2px; bottom: 6px;
  width: calc(100% - 4px - .14em); height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
.lang button[aria-pressed="true"]::after { transform: scaleX(1); }

/* ---------- Contenu ---------- */

.hero__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.2vh, 20px) calc(var(--rail) + 16px) clamp(32px, 5vh, 56px);
  text-align: center;
}

.seal {
  width: clamp(92px, 16vh, 150px);
  height: auto;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 18px rgba(197, 168, 128, .25));
  transition: transform 1.2s var(--ease), filter 1.2s ease;
}
.seal:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 0 30px rgba(197, 168, 128, .5));
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 0;
  font-weight: inherit;
}
.hero__maison {
  margin-bottom: clamp(4px, 1vh, 10px);
  padding-left: .7em; /* compense le tracking */
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(16px, 2.2vw, 28px);
  line-height: 1;
  letter-spacing: .7em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: min(124px, 8.6vw, 13.8vh);
  line-height: .9;
  letter-spacing: .1em;
  padding-left: .1em; /* compense le tracking du dernier caractère */
  text-transform: uppercase;
}
.hero__studio {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 16px;
  padding-left: .34em;
  font-size: clamp(11px, 1.15vw, 15px);
  font-weight: 500;
  letter-spacing: .34em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__studio .rule {
  width: clamp(40px, 9vw, 130px); height: 1px;
  background: linear-gradient(270deg, var(--gold), transparent);
  transform-origin: right;
  animation: draw 1.4s var(--ease) calc(var(--intro) + .7s) backwards;
}
.hero__studio .rule:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left;
}

/* ---------- Entrée en douceur ---------- */

.nav__brand, .nav__links, .nav__cta, .seal, .hero__name, .hero__studio,
.hero__tagline, .hero__lead, .hero__actions, .offer {
  animation: rise 1.2s var(--ease) backwards;
}
.nav__brand    { animation-delay: calc(var(--intro) + .1s); }
.nav__links    { animation-delay: calc(var(--intro) + .2s); }
.nav__cta      { animation-delay: calc(var(--intro) + .3s); }
.seal          { animation-delay: calc(var(--intro) + .25s); animation-duration: 1.6s; }
.hero__name    { animation-delay: calc(var(--intro) + .4s); }
.hero__studio  { animation-delay: calc(var(--intro) + .55s); }
.hero__tagline { animation-delay: calc(var(--intro) + .8s); }
.hero__lead    { animation-delay: calc(var(--intro) + .95s); }
.hero__actions { animation-delay: calc(var(--intro) + 1.1s); }
.offer         { animation-delay: calc(var(--intro) + 1.3s); }
.offer + .offer { animation-delay: calc(var(--intro) + 1.45s); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}
@keyframes draw {
  from { transform: scaleX(0); }
}

.hero__tagline {
  margin: clamp(20px, 3.6vh, 32px) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 3.34vw, 48px);
  line-height: 1;
  color: var(--gold);
}
.hero__lead {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--ivory-85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: clamp(22px, 3.3vh, 30px);
}

/* ---------- Offres ---------- */

.offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  min-height: var(--offers-h);
}
.offers::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line-strong) 15%, var(--gold-line-strong) 85%, transparent);
  animation: draw 1.6s var(--ease) calc(var(--intro) + 1.1s) backwards;
}

.offer {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 72px 24px 96px;
  background: linear-gradient(180deg, rgba(11, 15, 25, .3), rgba(11, 15, 25, .85));
  color: var(--ivory);
  text-decoration: none;
}
.offer + .offer {
  padding: 24px 96px 24px 72px;
}
.offer + .offer::after {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-line-strong), transparent);
}
.offer::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: rgba(197, 168, 128, .08);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.offer:hover::before { transform: scaleY(1); }

.offer__head {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 28px;
}
.offer__num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
}
.offer__text {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 24px;
  row-gap: 6px;
}
.offer__title {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  transition: color .5s ease;
}
.offer:hover .offer__title { color: var(--gold); }
.offer__meta {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ivory-65);
}
.offer__arr {
  font-size: 24px;
  color: var(--gold);
  transition: transform .5s var(--ease);
}
.offer:hover .offer__arr { transform: translateX(10px); }

/* =========================================================
   À PROPOS
   ========================================================= */

.about {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 12vw, 168px) clamp(16px, 4.5vw, 72px);
  background:
    radial-gradient(ellipse 45% 55% at 26% 50%, rgba(38, 48, 90, .45), rgba(38, 48, 90, 0) 70%),
    var(--midnight);
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(48px, 6vw, 104px);
  max-width: 1480px;
  margin: 0 auto;
}

/* ---------- Logo animé ---------- */

.about__arch {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 520px;
}
.about__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 3vw, 40px);
}

.logo-anim {
  position: relative;
  width: clamp(170px, 20vw, 250px);
  animation: logoFloat 7s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Halo doux derrière tout le logo */
.logo-anim__glow {
  position: absolute;
  inset: -35% -45%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(197, 168, 128, .2), rgba(38, 48, 90, .3) 45%, rgba(38, 48, 90, 0) 70%);
  filter: blur(6px);
  animation: glowPulse 6s ease-in-out infinite;
  transition: opacity .8s ease;
}
@keyframes glowPulse {
  0%, 100% { opacity: .75; transform: scale(.96); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

.logo-anim__emblem {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(197, 168, 128, .18));
  transition: filter .8s ease;
}
.about__logo:hover .logo-anim__emblem { filter: drop-shadow(0 0 26px rgba(197, 168, 128, .4)); }

/* L'étoile du logo scintille gentiment */
.logo-anim__star path {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 4px rgba(255, 236, 200, .9));
  animation: logoTwinkle 3.4s ease-in-out infinite;
}
@keyframes logoTwinkle {
  0%, 100% { transform: scale(.9);  opacity: .85; }
  45%      { transform: scale(1.25) rotate(8deg); opacity: 1; }
}

/* Étincelles qui montent comme des lucioles */
.logo-anim__spark {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  fill: #F4E6C8;
  filter: drop-shadow(0 0 4px rgba(255, 236, 200, .8));
  opacity: 0;
  animation: sparkRise var(--t, 6s) ease-in-out var(--d, 0s) infinite;
}
@keyframes sparkRise {
  0%   { opacity: 0; transform: translateY(14px) scale(.6); }
  30%  { opacity: 1; }
  70%  { opacity: .8; }
  100% { opacity: 0; transform: translateY(-36px) scale(1) rotate(45deg); }
}

/* Nom, comme sur le logo empilé */
.logo-anim__word {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.logo-anim__maison {
  padding-left: .7em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(14px, 1.5vw, 20px);
  letter-spacing: .7em;
  text-transform: uppercase;
  color: var(--gold);
}
.logo-anim__name {
  margin-top: 4px;
  padding-left: .1em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.logo-anim__sub {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-left: .3em;
  font-size: clamp(9px, .8vw, 11px);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
}
.logo-anim__sub .rule {
  width: clamp(24px, 3vw, 48px);
  height: 1px;
  background: var(--gold);
}

/* ---------- Apparition du logo : il se dessine, puis le nom se pose ---------- */

.has-reveal .about__logo .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.has-reveal .about__logo .draw--roof-in { transition-delay: .2s; }
.has-reveal .about__logo .draw--wall    { transition-delay: .5s; }
.has-reveal .about__logo .draw--wall-in { transition-delay: .7s; }
.has-reveal .about__logo.is-visible .draw { stroke-dashoffset: 0; }

.has-reveal .about__logo .logo-anim__r {
  opacity: 0;
  transform: translateY(10px);
  transform-box: fill-box;
  transition: opacity 1s ease 1.1s, transform 1.2s var(--ease) 1.1s;
}
.has-reveal .about__logo.is-visible .logo-anim__r { opacity: 1; transform: none; }

.has-reveal .about__logo .logo-anim__star {
  opacity: 0;
  scale: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .6s ease 1.5s, scale 1s var(--ease) 1.5s;
}
.has-reveal .about__logo.is-visible .logo-anim__star { opacity: 1; scale: 1; }

.has-reveal .about__logo .logo-anim__word > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s ease, transform 1.2s var(--ease), letter-spacing 1.6s var(--ease);
}
.has-reveal .about__logo .logo-anim__maison { letter-spacing: 1.2em; transition-delay: 1.7s; }
.has-reveal .about__logo .logo-anim__name   { transition-delay: 1.85s; }
.has-reveal .about__logo .logo-anim__sub    { transition-delay: 2s; }
.has-reveal .about__logo.is-visible .logo-anim__word > * { opacity: 1; transform: none; }
.has-reveal .about__logo.is-visible .logo-anim__maison { letter-spacing: .7em; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Texte ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow__rule {
  width: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.about__title {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: .005em;
  text-wrap: balance;
}

.about__text {
  max-width: 760px; /* même largeur que les engagements : bords alignés */
  margin: 0 0 18px;
  /* Justifié des deux côtés ; la césure évite les grands blancs entre les mots */
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ivory-85);
}

.pledges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  max-width: 760px;
  margin: 44px 0 48px;
  padding: 32px 0 0;
  list-style: none;
  border-top: 1px solid var(--gold-line-soft);
}
.pledge { display: flex; gap: 16px; }
.pledge__num {
  flex: none;
  min-width: 28px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--gold);
}
.pledge__body { display: flex; flex-direction: column; gap: 6px; }
.pledge__title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
}
.pledge__text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ivory-65);
}

/* ---------- Apparition au défilement ---------- */

.has-reveal .about [data-reveal]:not(.about__arch) {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 1s ease, transform 1.2s var(--ease);
}
.has-reveal .about [data-reveal].is-visible { opacity: 1; transform: none; }
.about__content [data-reveal]:nth-child(2) { transition-delay: .08s; }
.about__content [data-reveal]:nth-child(3) { transition-delay: .16s; }
.about__content [data-reveal]:nth-child(4) { transition-delay: .24s; }
.about__content [data-reveal]:nth-child(5) { transition-delay: .32s; }
.about__content [data-reveal]:nth-child(6) { transition-delay: .40s; }
.about__content [data-reveal]:nth-child(7) { transition-delay: .48s; }

/* =========================================================
   SERVICES
   ========================================================= */

.services {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 11vw, 160px) clamp(16px, 4.5vw, 72px);
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(38, 48, 90, .4), rgba(38, 48, 90, 0) 70%),
    var(--midnight);
}
.services::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.services__head {
  max-width: 1180px;
  margin: 0 auto clamp(64px, 7vw, 96px);
  text-align: center;
}
.eyebrow--center { justify-content: center; }
.eyebrow__rule--end { background: linear-gradient(270deg, transparent, var(--gold)); }

.services__title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.08;
  text-wrap: balance;
}
.services__intro {
  margin: 0 auto;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ivory-85);
}

.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1400px;
  margin: 0 auto;
}

.services__divider {
  position: relative;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-line-strong) 30%, var(--gold-line-strong) 70%, transparent);
}
.services__divider svg {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  transform: translate(-50%, -50%);
  fill: var(--gold);
  filter: drop-shadow(0 0 6px rgba(197, 168, 128, .6));
}

/* ---------- Carte en arche ---------- */

.service {
  /* Carte rectangulaire à double filet, comme la lettre de contact */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px; /* place pour le fronton et son étoile */
  padding: clamp(56px, 5vw, 72px) clamp(28px, 4vw, 64px) clamp(32px, 3vw, 44px);
  border: 1px solid rgba(197, 168, 128, .45);
  border-radius: 2px;
  background:
    radial-gradient(ellipse 70% 35% at 50% 0%, rgba(197, 168, 128, .07), rgba(197, 168, 128, 0) 70%),
    linear-gradient(180deg, rgba(24, 32, 58, .7) 0%, rgba(15, 20, 36, .6) 45%, rgba(11, 15, 25, .2) 100%);
  color: var(--ivory);
  text-align: center;
  transition: transform .7s var(--ease), border-color .5s ease, box-shadow .7s ease;
}
.service::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(197, 168, 128, .16);
  pointer-events: none;
  transition: border-color .5s ease;
}

/* Petit fronton posé sur le filet du haut, rappel discret du toit de l'emblème */
.service__pediment {
  position: absolute;
  top: -29px; /* la base du fronton repose sur le filet du haut */
  left: 50%;
  width: 96px; height: 30px;
  transform: translateX(-50%);
  overflow: visible;
  fill: none;
  stroke: rgba(197, 168, 128, .7);
  stroke-width: 1.2;
  stroke-linejoin: miter;
  transition: stroke .5s ease;
}
.service__pediment-in { stroke: rgba(197, 168, 128, .35); stroke-width: 1; }
.service:hover .service__pediment { stroke: var(--gold); }

.service__corner {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--gold);
  clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%);
  opacity: .7;
}
.service__corner--tl { top: 4px; left: 4px; }
.service__corner--tr { top: 4px; right: 4px; }
.service__corner--bl { bottom: 4px; left: 4px; }
.service__corner--br { bottom: 4px; right: 4px; }

.service:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 60px -20px rgba(197, 168, 128, .35);
}
.service:hover::before { border-color: rgba(197, 168, 128, .35); }

.service__apex {
  position: absolute;
  top: -37px;
  left: 50%;
  width: 22px; height: 22px;
  transform: translateX(-50%);
  fill: #F4E6C8;
  filter: drop-shadow(0 0 5px rgba(255, 236, 200, .6));
  transition: transform .7s var(--ease), filter .7s ease;
}
.service:hover .service__apex {
  transform: translateX(-50%) scale(1.35) rotate(45deg);
  filter: drop-shadow(0 0 12px rgba(255, 236, 200, 1)) drop-shadow(0 0 24px rgba(197, 168, 128, .7));
}

.service__art {
  width: clamp(110px, 10vw, 140px);
  margin-bottom: 12px;
  color: var(--gold);
  opacity: .85;
  transition: opacity .5s ease;
}
.service__art svg { width: 100%; height: auto; }
.service:hover .service__art { opacity: 1; }

.service__num {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold);
}
.service__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1.05;
}
.service__for {
  margin: 12px 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.service__desc {
  max-width: 480px;
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ivory-85);
}

.service__list {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  max-width: 560px;
  width: 100%;
  margin: 24px auto 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--gold-line-soft);
  text-align: left;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ivory-85);
}
.service__list li {
  position: relative;
  padding-left: 26px;
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .38em;
  width: 11px; height: 11px;
  background: var(--gold);
  clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%);
}

.service__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: auto;
  padding-top: 28px;
}
.service__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory-65);
}
.service__price strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ivory);
}


/* Après la livraison */
.services__after {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  max-width: 1400px;
  margin: clamp(56px, 6vw, 80px) auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--gold-line-soft);
  text-align: center;
}
.services__after-label {
  flex: none;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
}
.services__after-text {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ivory-65);
}

/* ---------- Apparition ---------- */

.has-reveal .services [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1.2s var(--ease), border-color .5s ease, box-shadow .7s ease;
}
.has-reveal .services [data-reveal].is-visible { opacity: 1; transform: none; }
.has-reveal .services [data-reveal].is-visible.service:hover { transform: translateY(-8px); }
.has-reveal .services__head [data-reveal]:nth-child(2) { transition-delay: .08s; }
.has-reveal .services__head [data-reveal]:nth-child(3) { transition-delay: .16s; }
.has-reveal #site-vitrine { transition-delay: .15s; }
.has-reveal #site-vitrine.is-visible:hover { transition-delay: 0s; }

.has-reveal .service .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease) .3s;
}
.has-reveal .service.is-visible .draw { stroke-dashoffset: 0; }

/* =========================================================
   RÉALISATIONS
   ========================================================= */

.work {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 11vw, 160px) clamp(16px, 4.5vw, 72px);
  background:
    radial-gradient(ellipse 45% 50% at 30% 55%, rgba(38, 48, 90, .4), rgba(38, 48, 90, 0) 70%),
    var(--midnight);
}
.work::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.work__head,
.project,
.work__next {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.work__head { margin-bottom: clamp(48px, 6vw, 80px); }
.work__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.08;
  text-wrap: balance;
}

/* ---------- Projet ---------- */

.project {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(48px, 6vw, 104px);
}

.project__visual {
  position: relative;
  display: block;
  padding: 0 7% 9% 0; /* place pour le téléphone qui déborde */
  text-decoration: none;
}

.browser {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(197, 168, 128, .35);
  border-radius: 10px;
  background: #0E1222;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
  transition: transform .8s var(--ease), border-color .5s ease, box-shadow .8s ease;
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(197, 168, 128, .18);
}
.browser__dots { display: flex; gap: 7px; }
.browser__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(197, 168, 128, .5);
}
.browser__url {
  flex: 1;
  max-width: 280px;
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(244, 244, 240, .05);
  font-size: 11px;
  letter-spacing: .06em;
  text-align: center;
  color: var(--ivory-65);
}
.browser img { display: block; width: 100%; height: auto; }

.phone {
  position: absolute;
  right: 0; bottom: 0;
  width: 24%;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  border: 5px solid #161B2C;
  border-radius: 26px;
  outline: 1px solid rgba(197, 168, 128, .45);
  background: #000;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85);
  transition: transform .8s var(--ease), outline-color .5s ease;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Survol : les deux écrans se décalent pour donner de la profondeur */
.project__visual:hover .browser {
  transform: translateY(-6px);
  border-color: rgba(197, 168, 128, .7);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .85), 0 0 50px -20px rgba(197, 168, 128, .35);
}
.project__visual:hover .phone {
  transform: translate(6px, -14px) rotate(2deg);
  outline-color: var(--gold);
}

.project__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.project__num {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0;
}
.project__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  color: var(--ivory-65);
  letter-spacing: .16em;
}
.project__live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6FCF97;
  box-shadow: 0 0 0 0 rgba(111, 207, 151, .6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70%, 100% { box-shadow: 0 0 0 8px rgba(111, 207, 151, 0); }
}

.project__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.1;
}
.project__role {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
}
.project__desc {
  margin: 22px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ivory-85);
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 34px;
  padding: 0;
  list-style: none;
}
.project__tags li {
  padding: 7px 14px;
  border: 1px solid rgba(197, 168, 128, .3);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ivory-85);
}

/* ---------- Prochaine réalisation ---------- */

.work__next {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: clamp(72px, 8vw, 112px);
  padding-top: 40px;
  border-top: 1px solid var(--gold-line-soft);
  text-align: center;
}
.work__next-star {
  width: 18px; height: 18px;
  fill: var(--gold);
  filter: drop-shadow(0 0 6px rgba(197, 168, 128, .6));
  animation: regTw 3.2s ease-in-out infinite;
}
.work__next-text {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 32px);
  color: var(--ivory);
}

/* ---------- Apparition ---------- */

.has-reveal .work [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1.2s var(--ease);
}
.has-reveal .work [data-reveal].is-visible { opacity: 1; transform: none; }
.has-reveal .project__info [data-reveal]:nth-child(2) { transition-delay: .08s; }
.has-reveal .project__info [data-reveal]:nth-child(3) { transition-delay: .14s; }
.has-reveal .project__info [data-reveal]:nth-child(4) { transition-delay: .2s; }
.has-reveal .project__info [data-reveal]:nth-child(5) { transition-delay: .26s; }
.has-reveal .project__info [data-reveal]:nth-child(6) { transition-delay: .32s; }

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(112px, 12vw, 176px) clamp(16px, 4.5vw, 72px) clamp(96px, 11vw, 160px);
  background:
    radial-gradient(ellipse 40% 55% at 72% 50%, rgba(38, 48, 90, .5), rgba(38, 48, 90, 0) 70%),
    radial-gradient(circle at 72% 30%, rgba(197, 168, 128, .07), rgba(197, 168, 128, 0) 35%),
    var(--midnight);
}
.contact::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(48px, 6vw, 104px);
  max-width: 1400px;
  margin: 0 auto;
}

.contact__title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.08;
  text-wrap: balance;
}
.contact__lead {
  max-width: 520px;
  margin: 0 0 40px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ivory-85);
}

/* ---------- Canaux directs ---------- */

.channels {
  display: grid;
  max-width: 480px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--gold-line-soft);
}
.channels li { border-bottom: 1px solid var(--gold-line-soft); }
.channel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 4px;
  color: var(--ivory);
  text-decoration: none;
  transition: padding .5s var(--ease), background .5s ease;
}
.channel__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(197, 168, 128, .4);
  border-radius: 50%;
  color: var(--gold);
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.channel__icon svg { width: 20px; height: 20px; }
.channel__text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.channel__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory-65);
}
.channel__value {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  transition: color .4s ease;
}
.channel__go {
  flex: none;
  width: 22px; height: 11px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .4;
  transform: translateX(-6px);
  transition: opacity .4s ease, transform .5s var(--ease);
}
.channel:hover { padding-left: 12px; background: linear-gradient(90deg, rgba(197, 168, 128, .07), transparent); }
.channel:hover .channel__icon { background: var(--gold); color: var(--midnight); border-color: var(--gold); }
.channel:hover .channel__value { color: var(--gold); }
.channel:hover .channel__go { opacity: 1; transform: none; }

/* ---------- La lettre ---------- */

.letter {
  position: relative;
  padding: clamp(64px, 6vw, 84px) clamp(24px, 4.5vw, 64px) clamp(36px, 4vw, 52px);
  border: 1px solid rgba(197, 168, 128, .45);
  border-radius: 4px;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(197, 168, 128, .08), rgba(197, 168, 128, 0) 70%),
    linear-gradient(165deg, rgba(26, 34, 62, .85), rgba(13, 17, 31, .92) 60%, rgba(11, 15, 25, .95));
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9);
}
/* Second filet intérieur */
.letter::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(197, 168, 128, .16);
  border-radius: 2px;
  pointer-events: none;
}

/* Étoiles aux quatre coins du filet intérieur */
.letter__corner {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--gold);
  clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%);
  opacity: .8;
}
.letter__corner--tl { top: 3px; left: 3px; }
.letter__corner--tr { top: 3px; right: 3px; }
.letter__corner--bl { bottom: 3px; left: 3px; }
.letter__corner--br { bottom: 3px; right: 3px; }

/* Sceau de cire au monogramme */
.letter__seal {
  position: absolute;
  top: 0; left: 50%;
  width: 92px; height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  background: radial-gradient(circle at 35% 30%, #E6CDA3, #C5A880 45%, #9C7D52 100%);
  color: var(--midnight);
  box-shadow:
    0 0 0 4px rgba(11, 15, 25, 1),
    0 0 0 5px rgba(197, 168, 128, .45),
    inset 0 0 0 6px rgba(255, 240, 210, .18),
    inset 0 -6px 14px rgba(70, 50, 25, .45),
    0 12px 30px rgba(0, 0, 0, .6),
    0 0 40px rgba(197, 168, 128, .25);
  transition: transform 1s var(--ease), box-shadow .8s ease;
}
.letter__seal::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(11, 15, 25, .35);
}
.letter__seal svg { width: 40px; height: auto; margin-top: -2px; }
.letter:focus-within .letter__seal {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.04);
  box-shadow:
    0 0 0 4px rgba(11, 15, 25, 1),
    0 0 0 5px var(--gold),
    inset 0 0 0 6px rgba(255, 240, 210, .18),
    inset 0 -6px 14px rgba(70, 50, 25, .45),
    0 12px 30px rgba(0, 0, 0, .6),
    0 0 60px rgba(197, 168, 128, .5);
}

.letter__heading {
  margin: 0 0 36px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 2.6vw, 36px);
  text-align: center;
  color: var(--gold);
}

.letter__group {
  margin: 0 0 36px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.letter__group legend {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ivory-65);
}
.letter__step {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0;
  color: var(--gold);
}

.letter__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

/* ---------- Champs à étiquette flottante ---------- */

.field {
  position: relative;
  margin-top: 8px;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 26px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(244, 244, 240, .2);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font: 300 16px/1.5 var(--sans);
  outline: none;
  transition: border-color .4s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field label {
  position: absolute;
  left: 0; top: 26px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 300;
  color: rgba(244, 244, 240, .55);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .45s var(--ease), color .35s ease, letter-spacing .45s var(--ease);
}
.field label em { font-style: normal; color: var(--gold); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(.72);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
/* Soulignement doré qui se déploie depuis le centre */
.field::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .6s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field textarea + label { top: 26px; }
.field--area::after { bottom: 6px; }

.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ivory);
  -webkit-box-shadow: 0 0 0 1000px #121729 inset;
  caret-color: var(--ivory);
}

/* Erreurs : seulement après une tentative d'envoi */
.letter__form.was-validated .field :invalid { border-bottom-color: #E0857A; }
.letter__form.was-validated .field :invalid + label { color: #E0857A; }

/* ---------- Choix du type de projet ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 12px;
}
.chip { position: relative; cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(197, 168, 128, .3);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ivory-85);
  transition: border-color .35s ease, background .35s ease, color .35s ease;
}
.chip span::before {
  content: "";
  width: 9px; height: 9px;
  background: currentColor;
  clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%);
  opacity: .35;
  transform: scale(.7);
  transition: opacity .35s ease, transform .5s var(--ease);
}
.chip:hover span { border-color: rgba(197, 168, 128, .6); }
.chip input:checked + span {
  border-color: var(--gold);
  background: rgba(197, 168, 128, .12);
  color: var(--ivory);
}
.chip input:checked + span::before { opacity: 1; transform: scale(1.15); background: var(--gold); }
.chip input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }

/* ---------- Pied de lettre ---------- */

.letter__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-top: 8px;
}
.letter__note {
  margin: 0;
  max-width: 280px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ivory-65);
}
.letter__submit { min-width: 240px; }
.letter__spinner {
  display: none;
  width: 14px; height: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.letter__form.is-sending .letter__spinner { display: inline-block; }
.letter__form.is-sending .letter__arrow { display: none; }
.letter__form.is-sending .letter__submit { pointer-events: none; opacity: .85; }

.letter__status {
  margin: 18px 0 0;
  min-height: 1.5em;
  font-size: 14px;
  line-height: 1.6;
  color: #E0857A;
}
.letter__status:empty { margin: 0; min-height: 0; }
.letter__status a { color: var(--gold); }

.letter__honey {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

/* ---------- Message envoyé ---------- */

.letter__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 8px;
  text-align: center;
  outline: none;
}
.letter__done[hidden] { display: none; }
.letter__constellation { width: 220px; margin-bottom: 24px; }
.letter__constellation .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawIn 1.8s var(--ease) .2s forwards;
}
@keyframes drawIn { to { stroke-dashoffset: 0; } }
.letter__done-star {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 8px rgba(255, 236, 200, .9));
  animation: starPop 1.2s var(--ease) .6s backwards;
}
@keyframes starPop {
  from { opacity: 0; transform: scale(0) rotate(-90deg); }
}
.letter__done-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 3vw, 42px);
}
.letter__done-text {
  max-width: 420px;
  margin: 0 0 32px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ivory-85);
}

/* ---------- Apparition ---------- */

.has-reveal .contact [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1.2s var(--ease);
}
.has-reveal .contact [data-reveal].is-visible { opacity: 1; transform: none; }
.has-reveal .contact__intro [data-reveal]:nth-child(2) { transition-delay: .08s; }
.has-reveal .contact__intro [data-reveal]:nth-child(3) { transition-delay: .16s; }
.has-reveal .contact__intro [data-reveal]:nth-child(4) { transition-delay: .24s; }
.has-reveal .letter[data-reveal] { transition-delay: .15s; }

/* =========================================================
   APPARITIONS PROPRES À CHAQUE SECTION
   ========================================================= */

/* À propos : l'arche se pose doucement pendant que ses traits se dessinent */
.has-reveal .about__arch {
  opacity: 0;
  transform: scale(.94);
  transition: opacity 1.4s ease, transform 2s var(--ease);
}
.has-reveal .about__arch.is-visible { opacity: 1; transform: none; }

/* Services : l'en-tête sort d'un léger flou, les arches se dévoilent de bas en haut */
.has-reveal .services__head [data-reveal] { filter: blur(8px); transform: none; }
.has-reveal .services__head [data-reveal].is-visible { filter: none; }
.has-reveal .services__head [data-reveal] { transition: opacity 1.2s ease, filter 1.2s ease; }

.has-reveal .services .service[data-reveal] {
  transform: none;
  clip-path: inset(100% -60px -60px -60px);
  transition: clip-path 1.6s var(--ease), opacity 1.2s ease, transform .7s var(--ease), border-color .5s ease, box-shadow .7s ease;
}
.has-reveal .services .service[data-reveal].is-visible { clip-path: inset(-80px -60px -60px -60px); }

/* Réalisations : l'écran se découvre comme un rideau, puis le téléphone monte */
.has-reveal .work .project__visual[data-reveal] { opacity: 1; transform: none; }
.has-reveal .project__visual .browser {
  clip-path: inset(0 100% 0 0 round 10px);
  transition: clip-path 1.6s var(--ease), transform .8s var(--ease), border-color .5s ease, box-shadow .8s ease;
}
.has-reveal .project__visual.is-visible .browser { clip-path: inset(-80px round 10px); }
.has-reveal .project__visual .phone {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s ease .8s, transform 1.4s var(--ease) .8s, outline-color .5s ease;
}
.has-reveal .project__visual.is-visible .phone { opacity: 1; transform: none; }
.has-reveal .project__visual.is-visible:hover .phone {
  transform: translate(6px, -14px) rotate(2deg);
  transition-delay: 0s;
}

/* Contact : la lettre se déplie, le sceau se pose, les canaux glissent un à un */
.has-reveal .contact .letter[data-reveal] {
  transform: perspective(1400px) rotateX(14deg) translateY(40px);
  transform-origin: 50% 0;
  transition: opacity 1.2s ease .15s, transform 1.6s var(--ease) .15s;
}
.has-reveal .contact .letter[data-reveal].is-visible { transform: none; }
.has-reveal .letter .letter__seal {
  scale: 1.8;
  opacity: 0;
  transition: transform 1s var(--ease), box-shadow .8s ease, scale 1s var(--ease) 1s, opacity .5s ease 1s;
}
.has-reveal .letter.is-visible .letter__seal { scale: 1; opacity: 1; }

.has-reveal .contact .channels[data-reveal] { opacity: 1; transform: none; }
.has-reveal .channels li {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .8s ease, transform 1s var(--ease);
}
.has-reveal .channels.is-visible li { opacity: 1; transform: none; }
.has-reveal .channels li:nth-child(2) { transition-delay: .12s; }
.has-reveal .channels li:nth-child(3) { transition-delay: .24s; }

/* Footer : les colonnes apparaissent, puis les lettres de la signature montent une à une */
.has-reveal .footer__top[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1.2s var(--ease);
}
.has-reveal .footer__top.is-visible { opacity: 1; transform: none; }
.has-reveal .footer__word span {
  transform: translateY(105%);
  transition: transform 1.3s var(--ease) calc(var(--i) * .07s);
}
.has-reveal .footer__sign.is-visible .footer__word span { transform: none; }
.has-reveal .footer__star { opacity: 0; transition: opacity 1s ease .9s; }
.has-reveal .footer__maison { opacity: 0; letter-spacing: 1.2em; transition: opacity 1.2s ease .2s, letter-spacing 1.6s var(--ease) .2s; }
.has-reveal .footer__sign.is-visible .footer__maison { opacity: 1; letter-spacing: .7em; }
.has-reveal .footer__sign.is-visible .footer__star { opacity: 1; }

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 9vw, 128px) clamp(16px, 4.5vw, 72px) 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(38, 48, 90, .45), rgba(38, 48, 90, 0) 70%),
    linear-gradient(180deg, var(--midnight), #070A12);
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line-strong) 20%, var(--gold-line-strong) 80%, transparent);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px clamp(32px, 4vw, 72px);
  max-width: 1400px;
  margin: 0 auto;
}

.footer__logo { display: inline-block; }
.footer__logo img { height: 80px; width: auto; }
.footer__tagline {
  margin: 20px 0 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--gold);
}
.footer__about {
  max-width: 340px;
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ivory-65);
}

.footer__title {
  margin: 8px 0 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__col ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__col .ul {
  display: inline-block;
  padding: 3px 0;
  font-size: 15px;
  font-weight: 300;
  color: var(--ivory-85);
  overflow-wrap: anywhere;
}
.footer__col .ul:hover { color: var(--gold); }

/* Signature géante, entière ; overflow masque les lettres avant leur montée */
.footer__sign {
  --w: min(250px, 17vw);
  position: relative;
  padding: .12em 0 .04em;
  font-size: var(--w);
  max-width: 1400px;
  margin: clamp(56px, 7vw, 104px) auto 0;
  overflow: hidden;
}
.footer__maison {
  margin: 0 0 calc(var(--w) * .02);
  padding-left: .7em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: calc(var(--w) * .16);
  letter-spacing: .7em;
  text-align: center;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__word {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  padding-left: .06em; /* compense le tracking */
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--w);
  line-height: 1;
  letter-spacing: .06em;
  text-align: center;
  white-space: nowrap;
}
.footer__word span {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(197, 168, 128, .5);
  background: linear-gradient(180deg, rgba(197, 168, 128, .22), rgba(197, 168, 128, 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
}
.footer__star {
  position: absolute;
  top: 2%;
  right: -2%;
  width: clamp(16px, 2.2vw, 34px);
  fill: #FFF4DD;
  filter: drop-shadow(0 0 8px rgba(255, 236, 200, .9)) drop-shadow(0 0 22px rgba(197, 168, 128, .6));
}
.footer__sign.is-visible .footer__star,
html:not(.has-reveal) .footer__star { animation: regTw 3.2s ease-in-out infinite; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 26px 0 30px;
  border-top: 1px solid var(--gold-line-soft);
  font-size: 13px;
  color: var(--ivory-65);
}
.footer__bottom p { margin: 0; }
.footer__made { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold); }
.footer__up {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory-85);
  text-decoration: none;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  transition: color .4s ease;
}
.footer__up span:last-child {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(197, 168, 128, .45);
  border-radius: 50%;
  font-size: 13px;
  transition: transform .5s var(--ease), background .4s ease, color .4s ease;
}
.footer__up:hover { color: var(--gold); }
.footer__up:hover span:last-child { transform: translateY(-4px); background: var(--gold); color: var(--midnight); }

/* =========================================================
   CONTACT FLOTTANT
   ========================================================= */

.contact-fab {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  /* --fab-lift : hauteur visible du bandeau des offres (script.js) */
  bottom: calc(var(--fab-lift, 0px) + clamp(16px, 2.5vw, 32px));
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  animation: rise 1s var(--ease) calc(var(--intro) + 1.8s) backwards;
}

.contact-fab__toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px 16px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, #B8996E, #D6BC92 45%, #B8996E);
  color: var(--midnight);
  font: 600 13px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 240, 210, .15) inset;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s ease;
}
/* Reflet de lumière qui traverse la dorure au survol */
.contact-fab__toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 248, 230, .65) 50%, transparent 70%);
  transform: translateX(-120%);
}
.contact-fab__toggle:hover::after {
  transform: translateX(120%);
  transition: transform .9s var(--ease);
}
.contact-fab__toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 28px rgba(197, 168, 128, .45);
}
.contact-fab__toggle:active { transform: translateY(-1px) scale(.98); }
.contact-fab:not(.is-open) .contact-fab__toggle:hover .contact-fab__chat {
  animation: nudge .6s var(--ease);
}
@keyframes nudge {
  30% { transform: rotate(-12deg) scale(1.08); }
  60% { transform: rotate(8deg); }
}

.contact-fab__icons {
  position: relative;
  width: 20px; height: 20px;
}
.contact-fab__icons svg {
  position: absolute; inset: 0;
  width: 20px; height: 20px;
  transition: opacity .3s ease, transform .4s var(--ease);
}
.contact-fab__close { opacity: 0; transform: rotate(-90deg); }
.contact-fab.is-open .contact-fab__chat  { opacity: 0; transform: rotate(90deg); }
.contact-fab.is-open .contact-fab__close { opacity: 1; transform: none; }

.contact-fab__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin: 0; padding: 0;
  list-style: none;
  visibility: hidden;
  transition: visibility 0s .5s;
}
.contact-fab.is-open .contact-fab__menu { visibility: visible; transition: none; }

.contact-fab__menu li {
  opacity: 0;
  transform: translateY(12px) scale(.96);
  transform-origin: right bottom;
  transition: opacity .35s ease, transform .45s var(--ease);
}
.contact-fab.is-open .contact-fab__menu li { opacity: 1; transform: none; }
/* La carte la plus proche du bouton sort en premier */
.contact-fab.is-open .contact-fab__menu li:last-child  { transition-delay: 0s; }
.contact-fab.is-open .contact-fab__menu li:first-child { transition-delay: .07s; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  padding: 12px 24px 12px 12px;
  border: 1px solid rgba(197, 168, 128, .35);
  border-radius: 999px;
  background: rgba(11, 15, 25, .97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ivory);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: border-color .4s ease, background .4s ease, transform .5s var(--ease), box-shadow .5s ease;
}
.contact-card:hover,
.contact-card:focus-visible {
  border-color: var(--gold);
  background: rgba(20, 25, 40, .96);
  transform: translateX(-6px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 22px rgba(197, 168, 128, .18);
}

.contact-card__icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  transition: transform .5s var(--ease);
}
/* Onde qui part de l'icône au survol */
.contact-card__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--ring);
  opacity: 0;
}
.contact-card:hover .contact-card__icon { transform: scale(1.06); }
.contact-card:hover .contact-card__icon::after { animation: ring 1.2s var(--ease); }
@keyframes ring {
  0%   { opacity: 1; box-shadow: 0 0 0 0 var(--ring); }
  100% { opacity: 0; box-shadow: 0 0 0 12px var(--ring); }
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__icon--wa   { --ring: rgba(37, 211, 102, .5); background: #25D366; color: #fff; }
.contact-card__icon--mail { --ring: rgba(197, 168, 128, .55); background: var(--gold); color: var(--midnight); }
.contact-card__icon--mail svg { width: 20px; height: 20px; }

.contact-card__text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.contact-card__title { font-size: 16px; font-weight: 500; }
.contact-card__sub { font-size: 13px; color: var(--gold); transition: color .4s ease; }
.contact-card:hover .contact-card__sub { color: #E2CBA3; }

/* Flèche qui glisse en place au survol */
.contact-card__go {
  flex: none;
  width: 22px; height: 11px;
  margin-left: 4px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .35s ease, transform .5s var(--ease);
}
.contact-card:hover .contact-card__go,
.contact-card:focus-visible .contact-card__go { opacity: 1; transform: none; }

/* Section Contact à l'écran : le bouton flottant s'efface (même contenu, et il gênerait la saisie) */
body.contact-in-view .contact-fab {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .5s var(--ease), visibility 0s .5s;
}
.contact-fab { transition: opacity .4s ease, transform .5s var(--ease), visibility 0s; }

/* =========================================================
   RETOUR À L'ACCUEIL
   ========================================================= */

.to-top {
  position: fixed;
  left: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 50;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(11, 15, 25, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color: var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .6s var(--ease), visibility 0s .6s, background .4s ease, color .4s ease, box-shadow .5s ease;
}
.to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .4s ease, transform .6s var(--ease), background .4s ease, color .4s ease, box-shadow .5s ease;
}

/* Anneau : fond discret + trait doré qui se remplit avec le défilement */
.to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  fill: none;
  stroke-width: 1.2;
}
.to-top__ring circle {
  stroke: var(--gold);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .2s linear;
}
.to-top::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(197, 168, 128, .22);
}

.to-top__arrow {
  width: 10px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--ease);
}
.to-top:hover {
  background: var(--gold);
  color: var(--midnight);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 26px rgba(197, 168, 128, .45);
}
.to-top:hover .to-top__arrow { transform: translateY(-3px); }
.to-top:hover .to-top__ring circle { stroke: var(--midnight); }

body.menu-open .to-top,
body.footer-in-view .to-top { opacity: 0; visibility: hidden; transform: translateY(16px); }

/* =========================================================
   CURSEUR
   ========================================================= */

.cursor { display: none; }

.has-cursor,
.has-cursor * { cursor: none !important; }
.has-cursor input:not([type="radio"]),
.has-cursor textarea { cursor: text !important; }

.has-cursor .cursor {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.has-cursor .cursor.is-visible { opacity: 1; }

/* Position pilotée par script.js ; le visuel est sur ::before pour pouvoir le mettre à l'échelle */
.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0; left: 0;
  will-change: transform;
}
.cursor__dot::before,
.cursor__ring::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  transition: transform .35s var(--ease), background .35s ease, border-color .35s ease, opacity .35s ease;
}

.cursor__dot::before {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: #FFF4DD;
  box-shadow: 0 0 8px 2px rgba(255, 236, 200, .85), 0 0 18px 4px rgba(197, 168, 128, .45);
}

.cursor__ring::before {
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(197, 168, 128, .75);
  box-shadow: 0 0 14px rgba(197, 168, 128, .35), inset 0 0 10px rgba(197, 168, 128, .2);
}

/* Sur un lien ou un bouton : l'anneau s'ouvre et s'illumine, le point s'efface un peu */
.cursor.is-hover .cursor__ring::before {
  transform: scale(1.6);
  border-color: var(--gold);
  background: rgba(197, 168, 128, .08);
}
.cursor.is-hover .cursor__dot::before { transform: scale(.6); }

/* Au clic : l'anneau se resserre */
.cursor.is-down .cursor__ring::before { transform: scale(.75); }
.cursor.is-hover.is-down .cursor__ring::before { transform: scale(1.3); }

/* =========================================================
   Responsive
   ========================================================= */

/* Grand écran : titre et intro des services sur une seule ligne chacun */
@media (min-width: 1200px) {
  .services__title,
  .services__intro { white-space: nowrap; }
}

/* Écrans d'ordinateur peu hauts : le hero se resserre pour garder les offres visibles */
@media (min-width: 961px) and (max-height: 800px) {
  .seal { width: clamp(64px, 10vh, 100px); margin-bottom: 2px; }
  .hero__maison { font-size: clamp(14px, 2.6vh, 22px); }
  .hero__studio { margin-top: 10px; }
  .hero__tagline { margin-top: 16px; font-size: clamp(26px, 5vh, 40px); }
  .hero__lead { margin-top: 10px; }
  .hero__actions { margin-top: 18px; }
}

/* Petits portables : le libellé du ciel déborderait, les listes passent sur une colonne */
@media (max-width: 1279px) {
  .reg-label { display: none; }
}
@media (min-width: 961px) and (max-width: 1279px) {
  .service__list { grid-template-columns: minmax(0, 1fr); max-width: 400px; }
}

/* Ordinateur : ciel légèrement flou pour donner de la profondeur ; Regulus reste net */
@media (min-width: 961px) {
  .sky__map { filter: blur(1.5px); }
}

@media (max-width: 1180px) {
  .nav__links { gap: 28px; }
  .offer, .offer + .offer { padding-left: 48px; padding-right: 48px; }
}

@media (max-width: 960px) {
  :root { --nav-h: 80px; --offers-h: 0px; }

  .nav__brand img { height: 46px; }

  .nav__toggle {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    margin-right: -10px;
    flex: none;
    padding: 0;
    background: none;
    border: 0;
    color: var(--ivory);
    cursor: pointer;
  }
  .nav__bars,
  .nav__bars::before,
  .nav__bars::after {
    display: block;
    width: 24px; height: 1px;
    background: currentColor;
    transition: transform .4s var(--ease), background .4s ease;
  }
  .nav__bars { position: relative; }
  .nav__bars::before,
  .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -7px; }
  .nav__bars::after  { top: 7px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after  { transform: translateY(-7px) rotate(-45deg); }

  /* Menu plein écran */
  .nav { z-index: 60; } /* passe au-dessus du bouton de contact */
  .nav__brand, .nav__toggle, .lang { position: relative; z-index: 2; }
  .lang { order: 0; margin: 0 20px 0 auto; }

  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: var(--nav-h) var(--gutter) 48px;
    background:
      radial-gradient(ellipse 70% 45% at 50% 46%, rgba(38, 48, 90, .55), rgba(38, 48, 90, 0) 70%),
      radial-gradient(circle at 50% 46%, rgba(197, 168, 128, .10), rgba(197, 168, 128, 0) 40%),
      var(--midnight);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility 0s .5s;
  }
  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .5s ease;
  }

  .nav__links {
    flex-direction: column;
    align-items: center;
    gap: clamp(18px, 4.5vh, 36px);
    font-family: var(--serif);
    font-size: clamp(28px, 8.8vw, 44px);
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
  }
  .nav__links .ul { padding: 4px 0 4px .14em; } /* compense le tracking */

  .nav__cta { display: none; }

  .nav__tagline {
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: max(32px, env(safe-area-inset-bottom));
    margin: 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 20px;
    text-align: center;
    color: var(--gold);
  }

  /* Les liens arrivent l'un après l'autre */
  .nav__links li,
  .nav__tagline {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .7s var(--ease);
  }
  .nav__menu.is-open .nav__links li,
  .nav__menu.is-open .nav__tagline { opacity: 1; transform: none; }
  .nav__menu.is-open .nav__links li:nth-child(1) { transition-delay: .10s; }
  .nav__menu.is-open .nav__links li:nth-child(2) { transition-delay: .17s; }
  .nav__menu.is-open .nav__links li:nth-child(3) { transition-delay: .24s; }
  .nav__menu.is-open .nav__links li:nth-child(4) { transition-delay: .31s; }
  .nav__menu.is-open .nav__tagline { transition-delay: .45s; }

  /* Menu ouvert : la page ne défile plus et le bouton de contact s'efface */
  body.menu-open { overflow: hidden; }
  .contact-fab { transition: opacity .3s ease, visibility 0s; }
  body.menu-open .contact-fab { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }

  .reg-label { display: none; }
  /* Recadre le ciel pour garder Regulus à l'écran (étoile à 72,5 % du ciel) */
  .sky {
    left: calc(76vw - .225 * max(100vw, 160svh));
    top: calc(118px - 13.9svh);
  }

  .about__inner { grid-template-columns: 1fr; }
  .about__arch { max-width: 360px; }

  .services__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; max-width: 620px; }
  .services__divider { display: none; }

  .project { grid-template-columns: minmax(0, 1fr); }

  .contact__inner { grid-template-columns: minmax(0, 1fr); gap: 96px; }
  /* Une seule colonne : l'introduction se centre au-dessus de la lettre */
  .contact__intro .eyebrow { justify-content: center; }

  /* Même chose pour À propos et Réalisations : titres et descriptions centrés */
  .about__content .eyebrow,
  .work__head .eyebrow,
  .project__meta,
  .project__tags { justify-content: center; }
  .about__title, .about__text,
  .work__title,
  .project__title, .project__role, .project__desc { text-align: center; }
  .about__text { margin-left: auto; margin-right: auto; }
  .about__content > div:last-child,
  .project__info > div:last-child { text-align: center; }
  .work__next { flex-direction: column; gap: 18px; }
  .contact__title, .contact__lead { text-align: center; }
  .contact__lead { margin-left: auto; margin-right: auto; }
  .channels { margin: 0 auto; }
  .letter__grid { grid-template-columns: minmax(0, 1fr); }
  .letter__foot { flex-direction: column; align-items: stretch; }
  .letter__submit { width: 100%; }

  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .services__after { flex-direction: column; align-items: center; gap: 8px; }

  .offers { grid-template-columns: 1fr; }
  .offer, .offer + .offer { padding: 24px var(--gutter); }
  .offer + .offer::after {
    top: 0; bottom: auto; left: var(--gutter); right: var(--gutter);
    width: auto; height: 1px;
    background: linear-gradient(90deg, var(--gold-line), transparent);
  }
}

@media (max-width: 600px) {
  /* Bas plus généreux : place pour le bouton de contact au-dessus des offres */
  .hero__body { padding: 32px var(--gutter) 112px; }
  .hero__name { font-size: clamp(40px, 13vw, 64px); }
  .hero__studio { gap: 12px; font-size: 10px; letter-spacing: .26em; padding-left: .26em; }
  .hero__studio .rule { width: 28px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { flex-direction: column; align-self: stretch; gap: 12px; }
  .offer__head { gap: 20px; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .footer__col:last-child { grid-column: 1 / -1; }

  /* Le justifié crée de grands blancs sur une colonne étroite */
  .about__text, .project__desc { text-align: center; -webkit-hyphens: manual; hyphens: manual; }
  .channel__value { font-size: 19px; }
  .channel { gap: 14px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .pledges { grid-template-columns: 1fr; gap: 24px; }
  .service__list { grid-template-columns: 1fr; }
  .about__text { font-size: 16px; }
  .offer__title { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .sky, .tw, .reg-star, .reg-star2, .reg-halo,
  .nav__brand, .nav__links, .nav__cta, .seal, .hero__name, .hero__studio,
  .hero__tagline, .hero__lead, .hero__actions, .offer,
  .nav::after, .offers::before, .hero__studio .rule, .sky__map, .reg-label,
  .contact-fab, .lang { animation: none; }
  .logo-anim, .logo-anim__glow, .logo-anim__star path, .logo-anim__spark,
  .project__live i, .work__next-star, .footer__star { animation: none !important; }
  .contact-card:hover .contact-card__icon::after,
  .contact-fab:not(.is-open) .contact-fab__toggle:hover .contact-fab__chat { animation: none; }
  .hero__sky { transform: none; }
  .sky { transform: translate(-50%, -50%); }
  .reg-star2 { transform: rotate(45deg); }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
