/* Lumen — feuille de style commune à toutes les pages */
@font-face { font-family: "Cormorant Garamond"; src: url("../polices/cormorant-garamond.woff") format("woff"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../polices/cormorant-garamond-italique.woff") format("woff"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../polices/manrope.woff") format("woff"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../polices/jetbrains-mono.woff") format("woff"); font-weight: 100 800; font-style: normal; font-display: swap; }
:root {
  --nuit: #070b16;
  --nuit-2: #0e1528;
  --encre: #0f1a33;
  --or: #d9b05c;
  --or-clair: #f2d58f;
  --or-sombre: #8a6a2a;
  --creme: #f3ede1;
  --creme-2: #ece0c8;
  --creme-doux: rgba(243, 237, 225, 0.72);
  --ligne: rgba(217, 176, 92, 0.28);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;
  --large: min(1300px, 90%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body {
  background: var(--nuit);
  color: var(--creme);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; border-radius: 4px; }

/* ---------- LOGO ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.logo svg { width: 22px; height: 14px; }
.logo > span {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  line-height: 1;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -3;
  opacity: 0.55;
}
.halo {
  position: absolute; inset: 0; z-index: -4;
  background:
    radial-gradient(ellipse 50% 40% at 50% 45%, rgba(217,176,92,0.22), transparent 70%),
    radial-gradient(ellipse 35% 30% at 80% 85%, rgba(242,213,143,0.10), transparent 70%),
    linear-gradient(180deg, var(--nuit-2), var(--nuit));
  animation: respire 9s ease-in-out infinite alternate;
}
@keyframes respire {
  from { filter: brightness(0.85); transform: scale(1); }
  to   { filter: brightness(1.15); transform: scale(1.06); }
}
/* Filtre bleu nuit posé sur la vidéo */
.teinte {
  position: absolute; inset: 0; z-index: -2;
  background: var(--nuit-2);
  opacity: 0.35;
  pointer-events: none;
}
.voile {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(7,11,22,0.55) 0%, rgba(7,11,22,0.25) 45%, rgba(7,11,22,0.85) 100%);
}

/* ---------- NAV ---------- */
.nav {
  width: var(--large);
  margin: 0 auto;
  padding: 28px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ligne);
  position: relative;
}
.nav ul { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav ul a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--creme);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s ease;
}
.nav ul a:hover::after, .nav ul a.actif::after { transform: scaleX(1); transform-origin: left; }
.nav ul a.btn-contact::after { display: none; }
.nav ul a.btn-contact { padding: 12px 30px; line-height: 1; }
.btn-contact {
  background: var(--or);
  color: var(--nuit);
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-block;
  transition: background 0.3s, box-shadow 0.3s;
}
.btn-contact:hover { background: var(--or-clair); box-shadow: 0 0 30px rgba(242,213,143,0.45); }
.burger { display: none; background: none; border: 0; color: var(--creme); font: inherit; cursor: pointer; }

/* ---------- TITRE HERO ---------- */
.titre {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.titre h1 { line-height: 0.9; }
.titre .l1 {
  display: block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 7.5rem);
  letter-spacing: -0.03em;
  color: var(--creme);
  animation: monteTitre 1.1s cubic-bezier(.2,.8,.2,1) 0.5s both;
}
.titre .l2 {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 8.5rem);
  color: var(--or-clair);
  margin-top: -0.12em;
  text-shadow: 0 0 40px rgba(242,213,143,0.35);
  animation: allumage 2.4s ease-out 0.9s both;
}
@keyframes allumage {
  0%   { opacity: 0; text-shadow: none; filter: blur(8px); }
  35%  { opacity: 0.6; }
  45%  { opacity: 0.25; }
  60%  { opacity: 1; filter: blur(0); text-shadow: 0 0 70px rgba(242,213,143,0.8); }
  100% { opacity: 1; text-shadow: 0 0 40px rgba(242,213,143,0.35); }
}
@keyframes monteTitre { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.bas {
  width: var(--large);
  margin: 0 auto;
  padding-bottom: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}
.accroche { max-width: 380px; }
.trait { width: 34px; height: 1px; background: var(--or); margin-bottom: 18px; }
.accroche p { color: var(--creme-doux); line-height: 1.6; font-size: 1rem; }
.accroche code {
  display: block; margin-top: 14px;
  font-family: var(--mono); font-size: 0.78rem; color: var(--or);
}

.badge {
  position: relative;
  width: 150px; height: 150px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.badge .anneau { position: absolute; inset: 0; animation: tourne 14s linear infinite; }
.badge text { font-family: var(--mono); font-size: 9.4px; letter-spacing: 2.6px; fill: var(--creme); }
@keyframes tourne { to { transform: rotate(360deg); } }
.badge .rond {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--or);
  display: grid; place-items: center;
  transition: transform 0.5s cubic-bezier(.34,1.56,.64,1), box-shadow 0.4s, background 0.4s;
}
.badge .rond svg {
  width: 36px; height: 36px; stroke: var(--nuit);
  transform: rotate(-45deg);
  transition: transform 0.6s cubic-bezier(.34,1.56,.64,1);
}
.badge:hover .rond { transform: scale(1.08); background: var(--or-clair); box-shadow: 0 0 45px rgba(242,213,143,0.5); }
.badge:hover .rond svg { transform: rotate(0deg) translateY(3px); }

/* ---------- EMPLACEMENTS D'IMAGES ----------
   Pour mettre une image : ajoute <img src="mon-image.jpg" alt="..."> dans la balise <figure class="photo">.
   L'image remplit le cadre et cache l'étiquette. */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 60% at 30% 25%, rgba(242,213,143,0.18), transparent 70%),
    linear-gradient(160deg, #1a2747, #0b1224);
  display: grid;
  place-items: center;
}
.photo::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px dashed rgba(217,176,92,0.35);
  border-radius: 14px;
}
.photo > span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--or);
  text-align: center;
  padding: 0 24px;
  line-height: 1.5;
}
.photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.clair .photo {
  background:
    radial-gradient(ellipse 70% 60% at 30% 25%, rgba(255,255,255,0.5), transparent 70%),
    linear-gradient(160deg, #e2cfa6, #cdb37c);
}
.clair .photo::before { border-color: rgba(7,11,22,0.25); }
.clair .photo > span { color: var(--nuit); }

/* Élément qui monte puis se stabilise au défilement */
.monte > * { will-change: transform; }

/* ---------- TEXTES DE SECTION ---------- */
.section { position: relative; padding: 130px 0; }
.section h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1;
}
.section p.texte { line-height: 1.7; font-size: 1.02rem; max-width: 520px; }
.lien-fleche {
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  font-size: 0.95rem;
  transition: gap 0.3s;
}
.lien-fleche:hover { gap: 14px; }
.lien-fleche svg { width: 14px; height: 14px; }

/* ---------- SECTION SERVICES ---------- */
.services { background: var(--encre); text-align: center; }
.services h2 { color: var(--or-clair); }
.services .trait { margin: 30px auto; }
.services p.texte { margin: 0 auto 40px; color: var(--creme-doux); }
.services > h2, .services > p.texte { padding-left: 20px; padding-right: 20px; }
.services .lien-fleche { color: var(--or-clair); }
.cartes {
  width: var(--large);
  margin: 90px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cartes .photo { aspect-ratio: 3 / 4.2; }
.cartes figcaption {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  font-family: var(--serif); font-style: italic; font-size: 1.6rem;
  color: var(--creme);
  text-shadow: 0 2px 18px rgba(7,11,22,0.7);
}


/* ---------- Cartes : changement de photo au survol ----------
   Image normale : <img> directement dans la figure.
   Image au survol : <img> dans la <div class="survol">. */
.carte > img { transition: transform 0.9s cubic-bezier(.2,.8,.2,1); }
.carte:hover > img { transform: scale(1.06); }
.carte .survol {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse 70% 60% at 30% 25%, rgba(255,255,255,0.7), transparent 70%),
    linear-gradient(160deg, #f7f1e4, #e9dcc0);
  clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
  transition: clip-path 0.75s cubic-bezier(.65,0,.35,1);
}
.carte .survol::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px dashed rgba(7,11,22,0.25); border-radius: 14px;
}
.carte .survol > span {
  font-family: var(--mono); font-size: 0.75rem; color: var(--nuit);
  text-align: center; line-height: 1.5;
}
.carte .survol img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.carte:hover .survol, .carte:focus-within .survol { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.carte .survol:has(img)::before { display: none; }
.carte .survol:has(img)::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(243,237,225,0.92) 100%);
}
.cartes .carte figcaption { z-index: 3; transition: color 0.5s ease 0.1s, text-shadow 0.5s; }
.cartes .carte:hover figcaption { color: var(--nuit); text-shadow: none; }


/* Quand une vraie photo est en place : plus de cadre pointillé, et un dégradé pour lire le titre */
.photo:has(> img)::before { display: none; }
.carte:has(> img)::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(7,11,22,0.85) 100%);
  pointer-events: none;
}

/* ---------- BANDEAU CITATION ---------- */
.bandeau {
  position: relative;
  min-height: 75vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.bandeau .photo {
  position: absolute; inset: -12% 0;
  border-radius: 0;
  z-index: -2;
  align-items: start;
  padding-top: 14vh;
}
.bandeau .photo::before { display: none; }
.bandeau::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(7,11,22,0.6);
}
.bandeau blockquote {
  width: min(950px, 88%);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  color: var(--or-clair);
}

/* ---------- SECTION RÉALISATIONS ---------- */
.realisations { background: var(--creme); color: var(--nuit); }
.quinconce {
  width: var(--large);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.quinconce .photo { aspect-ratio: 1 / 1; }
.quinconce .texte-bloc { padding: 20px 0 0; display: flex; flex-direction: column; }
.quinconce .texte-bloc .trait { background: var(--or-sombre); margin: 30px 0 26px; }
.quinconce .texte-bloc p.texte { color: rgba(7,11,22,0.75); max-width: 440px; }
.quinconce .texte-bloc .lien-fleche { align-self: flex-end; margin-top: 50px; }
.quinconce > .monte:first-child { grid-row: span 2; }
.quinconce { align-items: start; }
.quinconce .bas-droite { grid-column: 2; margin-top: 10px; }
.quinconce .bas-droite .photo { aspect-ratio: 4 / 3; }
.realisations { padding-bottom: 100px; }

/* ---------- SECTION COLLABORATION ---------- */
.collab { background: var(--nuit-2); overflow: hidden; }
.collab .grille {
  width: var(--large);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: center;
}
.collab h2 { color: var(--or-clair); }
.collab .trait { margin: 30px 0 26px; }
.collab p.texte { color: var(--creme-doux); margin-bottom: 36px; }
.collage { position: relative; height: 640px; }
.collage .photo { position: absolute; }
.collage .c1 { left: 0;    top: 140px; width: 46%; height: 340px; z-index: 1; }
.collage .c2 { right: 0;   top: 30px;  width: 58%; height: 330px; z-index: 2; }
.collage .c3 { left: 40%;  top: 300px; width: 50%; height: 320px; z-index: 3; box-shadow: 0 30px 60px rgba(0,0,0,0.45); }


/* ---------- Rappels de la police de code ---------- */
.dev { font-family: var(--mono); font-size: 0.78rem; color: var(--or); font-style: normal; letter-spacing: 0.02em; }
.bandeau blockquote .dev { display: block; margin-top: 26px; font-size: 0.85rem; opacity: 0.85; }
.dev-haut { display: block; color: var(--or-sombre); margin-bottom: 18px; }
.dev-curseur { display: block; margin-top: 18px; }
/* curseur en bloc : même hauteur (0,74 em) et même largeur que les chiffres (0,42 em à l’œil) que les chiffres de JetBrains Mono, posé sur la ligne de base */
.dev-curseur::after { content: ""; display: inline-block; width: 0.42em; height: 0.74em; margin-left: 0.3em; background: currentColor; vertical-align: baseline; animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.pied .legal .dev { color: var(--or-sombre); margin-left: 8px; font-size: 0.75rem; }

/* ---------- PIED DE PAGE ---------- */
.pied {
  background: var(--creme);
  color: var(--nuit);
  padding: 90px 0 30px;
  border-radius: 28px 28px 0 0;
  margin-top: -28px;
  position: relative;
}
.pied .logo-grand { display: flex; justify-content: center; margin-bottom: 70px; }
.pied .logo-grand .logo { transform: scale(2.4); }
.pied .logo-grand .logo svg path { stroke: var(--or-sombre); }
.pied .colonnes {
  width: var(--large);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 40px;
}
.pied h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 16px; color: var(--or-sombre); }
.pied ul { list-style: none; display: grid; gap: 10px; }
/* Surlignage en vague : il se remplit depuis la gauche et s'efface vers la droite */
.pied ul a, .pied .legal a {
  font-size: 0.92rem;
  opacity: 0.8;
  padding: 2px 6px;
  margin: 0 -6px;
  border-radius: 4px;
  background-image: linear-gradient(rgba(217,176,92,0.45), rgba(217,176,92,0.45));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: right center;
  transition: background-size 0.55s cubic-bezier(.65,0,.35,1), opacity 0.3s, color 0.3s;
}
.pied ul a:hover, .pied .legal a:hover,
.pied ul a:focus-visible, .pied .legal a:focus-visible {
  opacity: 1;
  color: var(--nuit);
  background-size: 100% 100%;
  background-position: left center;
}
.pied .legal {
  padding-right: 80px;
  width: var(--large);
  margin: 60px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(7,11,22,0.2);
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 0.85rem; opacity: 0.7;
}

/* Bouton retour en haut */
.haut {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--or); border: 0; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.4s, transform 0.4s, background 0.3s;
}
.haut.visible { opacity: 1; transform: none; pointer-events: auto; }
.haut:hover { background: var(--or-clair); }
.haut svg { width: 22px; height: 22px; stroke: var(--nuit); }

/* ---------- AUTRES PAGES ---------- */
.page-simple {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(217,176,92,0.10), transparent 70%), var(--nuit);
}
.page-simple .centre { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.page-simple h1, .page-simple h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(3rem, 8vw, 6rem); color: var(--or-clair);
}
.page-simple p { color: var(--creme-doux); margin-top: 14px; }


/* ---------- PAGE MENTIONS LÉGALES ---------- */
.page-legale { min-height: 100vh; background: var(--nuit); }
.legal-contenu { width: min(760px, 90%); margin: 0 auto; padding: 90px 0 120px; }
.legal-contenu h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--or-clair); margin: 14px 0 10px; }
.legal-contenu .maj { color: var(--creme-doux); font-size: 0.85rem; margin-bottom: 50px; }
.legal-contenu h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.7rem; color: var(--or); margin: 44px 0 14px; padding-top: 26px; border-top: 1px solid var(--ligne); }
.legal-contenu p { color: var(--creme-doux); line-height: 1.75; margin-bottom: 14px; }
.legal-contenu a { color: var(--or-clair); border-bottom: 1px solid var(--ligne); }
.legal-contenu strong { color: var(--creme); font-weight: 600; }
.a-completer { background: rgba(217,176,92,0.18); color: var(--or-clair); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: 0.82em; }

/* ---------- RIDEAU DE TRANSITION ---------- */
.rideau {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--or);
  display: grid; place-items: center;
  transform: translateY(-100%);
  pointer-events: none;
}
.rideau { will-change: transform; backface-visibility: hidden; }
.logo-rideau { display: block; color: var(--nuit); opacity: 0; transform: translateZ(0); }
.rideau.entre { animation: rideauEntre 0.7s cubic-bezier(.76,0,.24,1) forwards; }
.rideau.sort  { animation: rideauSort 0.7s cubic-bezier(.76,0,.24,1) forwards; }
/* le logo est entièrement allumé avant que la page change (0,15 s + 0,4 s < 0,7 s) */
.rideau.entre .logo-rideau { animation: logoAllume 0.4s ease 0.15s forwards; }
.rideau.tient { transform: translateY(0); }
.rideau.tient .logo-rideau { opacity: 1; }
/* au départ du rideau, le logo s'efface en douceur */
.rideau.sort .logo-rideau { opacity: 1; animation: logoEteint 0.4s ease forwards; }
@keyframes logoEteint { from { opacity: 1; } to { opacity: 0; } }
@keyframes rideauEntre { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes rideauSort  { from { transform: translateY(0); }     to { transform: translateY(100%); } }
@keyframes logoAllume { from { opacity: 0; } to { opacity: 1; } }

/* ---------- MOBILE ---------- */
@media (max-width: 960px) {
  .cartes { grid-template-columns: 1fr 1fr; }
  .collab .grille { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav ul { display: none; }
  .burger { display: block; }
  .nav.ouvert ul {
    display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
    position: absolute; top: 90px; left: 0; right: 0;
    background: var(--nuit-2); padding: 28px; border-radius: 18px;
    border: 1px solid var(--ligne); z-index: 10;
  }
  .bas { flex-direction: column; align-items: flex-start; }
  .badge { align-self: flex-end; width: 120px; height: 120px; }
  .badge .rond { width: 76px; height: 76px; }
  .section { padding: 90px 0; }
  .quinconce { grid-template-columns: 1fr; }
  .quinconce .bas-droite { grid-column: 1; margin-top: 0; }
  .quinconce > .monte:first-child { grid-row: auto; }
  .haut { width: 46px; height: 46px; right: 14px; bottom: 14px; }
  .haut svg { width: 18px; height: 18px; }
  .collage { height: 520px; }
  .collage .c1 { top: 110px; height: 250px; }
  .collage .c2 { top: 20px; height: 240px; }
  .collage .c3 { top: 260px; height: 240px; left: 30%; width: 62%; }
  .pied .colonnes { grid-template-columns: 1fr; }
  .pied .legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Rideau à l'arrivée sur une nouvelle page ---------- */
html.arrivee .rideau { transform: translateY(0); }
html.arrivee .rideau .logo-rideau { opacity: 1; }

/* ---------- EN-TÊTE DES PAGES INTÉRIEURES ---------- */
.entete-page { width: min(900px, 90%); margin: 0 auto; padding: 110px 0 70px; text-align: center; }
.entete-page h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1; color: var(--or-clair); margin-top: 18px; }
.entete-page .trait { margin: 30px auto; }
.entete-page .texte { color: var(--creme-doux); line-height: 1.7; max-width: 600px; margin: 0 auto; }

/* ---------- PAGE TARIFS ---------- */
.page-tarifs {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(217,176,92,0.12), transparent 70%),
    var(--nuit);
  padding-bottom: 60px;
}
.grille-offres {
  width: var(--large); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  align-items: stretch;
}
.grille-offres > .monte { display: flex; }
.offre {
  position: relative; flex: 1;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--nuit-2), var(--nuit));
  border: 1px solid var(--ligne); border-radius: 22px;
  padding: 34px 28px 30px;
  transition: border-color 0.4s, box-shadow 0.4s, translate 0.4s;
}
.offre:hover { border-color: var(--or); box-shadow: 0 0 50px rgba(217,176,92,0.14); translate: 0 -6px; }
.offre-vedette { border-color: rgba(217,176,92,0.6); background: linear-gradient(180deg, #17213d, var(--nuit-2)); }
.offre-badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--or); color: var(--nuit);
  font-size: 0.75rem; font-weight: 700; padding: 5px 14px; border-radius: 999px;
}
.offre h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.1rem; color: var(--or-clair); margin: 10px 0 10px; line-height: 1.05; }
.offre-acc { color: var(--creme-doux); font-size: 0.92rem; line-height: 1.6; min-height: 4.8em; }
.offre-prix {
  font-family: var(--sans); font-weight: 800; font-size: 2rem; letter-spacing: -0.02em;
  color: var(--creme); margin: 22px 0 22px; padding: 18px 0;
  border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne);
}
.offre-prix .de, .offre-prix .a { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15rem; color: var(--or); letter-spacing: 0; }
.offre ul, .tarifs-inclus ul { list-style: none; display: grid; gap: 12px; }
.offre ul { margin-bottom: 30px; flex: 1; }
.offre li, .tarifs-inclus li { display: flex; gap: 10px; align-items: flex-start; color: var(--creme-doux); font-size: 0.92rem; line-height: 1.5; }
.offre li svg, .tarifs-inclus li svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--or); margin-top: 2px; }
.offre-btn { text-align: center; align-self: stretch; }

.tarifs-inclus { width: var(--large); margin: 110px auto 0; }
.inclus-grille {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: center;
  padding: 50px; border: 1px solid var(--ligne); border-radius: 22px;
  background: rgba(14,21,40,0.6);
}
.inclus-grille h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--or-clair); margin-top: 12px; }
.tarifs-inclus li { font-size: 1rem; color: var(--creme); }
.tarifs-cta { text-align: center; padding: 80px 0 40px; }
.tarifs-cta p { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--creme); margin-bottom: 22px; }
.tarifs-cta .lien-fleche { color: var(--or-clair); }

@media (max-width: 1100px) { .grille-offres { grid-template-columns: repeat(2, 1fr); row-gap: 34px; } }
@media (max-width: 680px) {
  .grille-offres { grid-template-columns: 1fr; }
  .inclus-grille { grid-template-columns: 1fr; padding: 32px 24px; gap: 26px; }
  .entete-page { padding: 70px 0 50px; }
  .offre-acc { min-height: 0; }
}

/* ---------- Maintenance mensuelle ---------- */
.maintenance { width: var(--large); margin: 34px auto 0; }
.maint-carte {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px;
  background: linear-gradient(135deg, #17213d, var(--nuit));
  border: 1px solid rgba(217,176,92,0.6); border-radius: 22px; padding: 44px;
  transition: box-shadow 0.4s, border-color 0.4s;
}
.maint-carte:hover { border-color: var(--or); box-shadow: 0 0 50px rgba(217,176,92,0.14); }
.maint-carte h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.4rem; color: var(--or-clair); margin: 10px 0; }
.maint-carte .offre-acc { min-height: 0; margin-bottom: 24px; }
.maint-carte ul { list-style: none; display: grid; gap: 12px; }
.maint-carte li { display: flex; gap: 10px; color: var(--creme-doux); font-size: 0.95rem; line-height: 1.5; }
.maint-carte li svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--or); margin-top: 2px; }
.maint-prix { display: flex; flex-direction: column; justify-content: center; }
.maint-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ligne); }
.maint-ligne:first-child { border-top: 1px solid var(--ligne); }
.maint-nom { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--creme); }
.maint-montant { font-weight: 800; font-size: 1.6rem; color: var(--creme); letter-spacing: -0.02em; }
.maint-montant small { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1rem; color: var(--or); margin-left: 4px; letter-spacing: 0; }
.maint-note { color: var(--creme-doux); font-size: 0.85rem; margin: 16px 0 24px; }
[id] { scroll-margin-top: 40px; }
.carte-lien { display: block; color: inherit; }
@media (max-width: 860px) { .maint-carte { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; } }

/* ---------- PAGE CONTACT ---------- */
[hidden] { display: none !important; }
.page-contact {
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(217,176,92,0.12), transparent 70%), var(--nuit);
  padding-bottom: 120px;
}
.contact-grille { width: var(--large); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.formulaire, .form-merci {
  background: linear-gradient(180deg, var(--nuit-2), var(--nuit));
  border: 1px solid var(--ligne); border-radius: 22px; padding: 40px;
  display: grid; gap: 22px;
}
.champ-double { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.champ { display: grid; gap: 8px; }
.champ > span { font-family: var(--mono); font-size: 0.75rem; color: var(--or); letter-spacing: 0.02em; }
.champ em { font-style: normal; color: var(--creme-doux); opacity: 0.7; }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--creme);
  background: rgba(7,11,22,0.6); border: 1px solid rgba(217,176,92,0.22); border-radius: 12px;
  padding: 14px 16px; transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.champ select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b05c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.champ select option { background: var(--nuit-2); color: var(--creme); }
.champ textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.champ ::placeholder { color: rgba(243,237,225,0.35); }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--or); background: rgba(14,21,40,0.9);
  box-shadow: 0 0 0 3px rgba(217,176,92,0.15), 0 0 30px rgba(217,176,92,0.12);
}
.champ.invalide input, .champ.invalide select, .champ.invalide textarea { border-color: #e08a6b; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.accord { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; line-height: 1.55; color: var(--creme-doux); cursor: pointer; }
.accord input { appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--or); border-radius: 6px; cursor: pointer; display: grid; place-items: center; transition: background 0.2s; }
.accord input:checked { background: var(--or); }
.accord input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--nuit); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.accord.invalide input { border-color: #e08a6b; box-shadow: 0 0 0 3px rgba(224,138,107,0.2); }
.accord a { color: var(--or-clair); border-bottom: 1px solid var(--ligne); }
.form-erreur { color: #f0a58a; font-size: 0.9rem; }
.form-envoi { border: 0; cursor: pointer; font: inherit; font-weight: 700; justify-self: start; padding: 15px 34px; }
.form-envoi[disabled] { opacity: 0.6; cursor: wait; }
.form-merci { text-align: center; justify-items: center; padding: 70px 40px; }
.form-merci h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 3.4rem; color: var(--or-clair); }
.form-merci p { color: var(--creme-doux); }
.form-merci .lien-fleche { color: var(--or-clair); margin-top: 10px; }

.contact-infos { display: grid; gap: 20px; }
.info-bloc { border: 1px solid var(--ligne); border-radius: 22px; padding: 32px; background: rgba(14,21,40,0.6); }
.info-bloc h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.2rem; color: var(--or-clair); margin: 8px 0 6px; }
.info-noms { color: var(--creme-doux); margin-bottom: 18px; }
.info-tel { display: inline-block; font-weight: 800; font-size: 1.9rem; letter-spacing: -0.01em; color: var(--creme); transition: color 0.3s, text-shadow 0.3s; }
.info-tel:hover { color: var(--or-clair); text-shadow: 0 0 24px rgba(242,213,143,0.4); }
.info-note { color: var(--creme-doux); font-size: 0.85rem; line-height: 1.6; margin-top: 12px; }
.etapes { list-style: none; display: grid; gap: 20px; margin-top: 18px; }
.etapes li { display: grid; grid-template-columns: auto 1fr; gap: 16px; color: var(--creme-doux); font-size: 0.92rem; line-height: 1.55; }
.etapes li > span { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--or); line-height: 1; }
.etapes strong { display: block; color: var(--creme); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 960px) { .contact-grille { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .champ-double { grid-template-columns: 1fr; }
  .formulaire { padding: 28px 22px; }
  .form-envoi { justify-self: stretch; text-align: center; }
}

/* ---------- PAGE RÉALISATIONS ---------- */
.page-realisations { background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(217,176,92,0.12), transparent 70%), var(--nuit); padding-bottom: 60px; }
.projets { width: var(--large); margin: 0 auto; display: grid; gap: 140px; }
.projet { display: grid; grid-template-columns: 1.35fr 1fr; gap: 70px; align-items: center; }
.projet-inverse .projet-visuel { order: 2; }
.ecrans { position: relative; padding: 0 0 40px 0; }
.navigateur { border-radius: 14px; overflow: hidden; border: 1px solid var(--ligne); background: var(--nuit-2); box-shadow: 0 40px 80px rgba(0,0,0,0.45); }
.navigateur .barre { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #121a30; border-bottom: 1px solid rgba(217,176,92,0.15); }
.navigateur .barre i { width: 10px; height: 10px; border-radius: 50%; background: rgba(217,176,92,0.35); }
.navigateur .barre span { margin-left: 12px; font-family: var(--mono); font-size: 0.7rem; color: var(--creme-doux); background: rgba(7,11,22,0.6); padding: 3px 12px; border-radius: 6px; }
.navigateur img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.telephone { position: absolute; right: -24px; bottom: 0; width: 26%; border-radius: 26px; padding: 7px; background: #0b1020; border: 1px solid rgba(217,176,92,0.4); box-shadow: 0 30px 60px rgba(0,0,0,0.55); }
.projet-inverse .telephone { right: auto; left: -24px; }
.telephone img { display: block; width: 100%; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; border-radius: 20px; }
.projet-texte h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--or-clair); margin: 12px 0 8px; line-height: 1; }
.projet-sous { color: var(--creme); font-size: 0.95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.etiquette-demo { font-family: var(--mono); font-size: 0.68rem; color: var(--or); border: 1px solid var(--ligne); border-radius: 999px; padding: 3px 10px; }
.projet-texte .texte { color: var(--creme-doux); line-height: 1.7; margin-bottom: 22px; }
.projet-texte ul { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; }
.projet-texte li { display: flex; gap: 10px; color: var(--creme-doux); font-size: 0.92rem; }
.projet-texte li svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--or); margin-top: 1px; }
.projet-liens { display: flex; align-items: center; gap: 28px; }
.projet-liens .lien-fleche { color: var(--or-clair); }
.lien-discret { color: var(--creme-doux); font-size: 0.9rem; transition: color 0.3s; }
.lien-discret:hover { color: var(--creme); }
.page-realisations .tarifs-cta { padding-top: 140px; }
@media (max-width: 960px) {
  .projet { grid-template-columns: 1fr; gap: 40px; }
  .projet-inverse .projet-visuel { order: 0; }
  .telephone, .projet-inverse .telephone { right: -6px; left: auto; width: 28%; }
  .projets { gap: 100px; }
  .ecrans { padding-bottom: 56px; }
}
/* captures d'écran dans les cadres de l'accueil : on montre le haut de la page */
.photo img.capture { object-position: left top; }

/* Carte dont la photo de survol est sombre : titre clair et dégradé nuit */
.carte.survol-sombre .survol:has(img)::after { background: linear-gradient(180deg, transparent 50%, rgba(7,11,22,0.85) 100%); }
.cartes .carte.survol-sombre:hover figcaption { color: var(--creme); text-shadow: 0 2px 18px rgba(7,11,22,0.7); }

/* ---------- Téléphone : rideau fluide ----------
   Pendant le passage du rideau, les animations coûteuses de l'accueil sont mises en pause,
   et sur petit écran elles n'utilisent que des propriétés que le téléphone anime sans effort. */
@media (max-width: 860px) {
  .rideau { contain: strict; }
  .halo { animation-name: respireMobile; }
  @keyframes respireMobile { from { opacity: 0.85; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }
  .titre .l2 { animation-name: allumageMobile; text-shadow: 0 0 40px rgba(242,213,143,0.35); }
  @keyframes allumageMobile {
    0% { opacity: 0; } 35% { opacity: 0.6; } 45% { opacity: 0.25; } 60% { opacity: 1; } 100% { opacity: 1; }
  }
  html.rideau-actif .halo,
  html.rideau-actif .titre .l1,
  html.rideau-actif .titre .l2,
  html.rideau-actif .badge .anneau { animation-play-state: paused; }
}

.info-mail { display: block; margin-top: 6px; color: var(--or-clair); font-size: 0.98rem; border-bottom: 1px solid transparent; width: fit-content; transition: border-color 0.3s; }
.info-mail:hover { border-color: var(--ligne); }
