/* ==========================================================================
   Page vitrine — Marc-Philippe Hourlier
   Sombre et premium. Aucune police ni bibliothèque externe : zéro requête
   tierce, donc aucun bandeau de consentement (Loi 25).
   ========================================================================== */

:root {
  --noir:        #0B0C0E;
  --noir-2:      #101216;
  --noir-3:      #16191F;
  --noir-4:      #1D212A;

  --ligne:       rgba(255, 255, 255, .08);
  --ligne-forte: rgba(255, 255, 255, .18);

  --texte:       #EDEAE4;
  --texte-doux:  #979CA5;
  --texte-faible:#6B7079;

  --or:          #D2924F;
  --or-clair:    #E8B274;
  --or-sombre:   #A9743B;
  --or-voile:    rgba(210, 146, 79, .12);

  --vert:        #7FC79B;

  --rayon:       16px;
  --rayon-sm:    10px;

  --display: "Segoe UI Variable Display", -apple-system, BlinkMacSystemFont,
             "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --corps:   "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont,
             "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.7;
  color: var(--texte-doux);
  background: var(--noir);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--texte);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

.wrap        { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.wrap-etroit { width: min(660px, 100% - 3rem); }

.skip {
  position: absolute; left: -9999px;
  background: var(--or); color: var(--noir); font-weight: 600;
  padding: .75rem 1.25rem;
}
.skip:focus { left: 0; top: 0; z-index: 100; }

::selection { background: var(--or); color: var(--noir); }

/* ---------- En-tête ---------- */

.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 14, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ligne);
}
.entete-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0;
}
.marque {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--texte); text-decoration: none; letter-spacing: -.02em;
}
.marque span { color: var(--texte-faible); font-weight: 400; }
.entete nav { display: flex; align-items: center; gap: 1.8rem; }
.entete nav a {
  color: var(--texte-doux); text-decoration: none; font-size: .93rem;
  transition: color .15s;
}
.entete nav a:hover { color: var(--texte); }
.nav-cta {
  color: var(--or) !important; border: 1px solid var(--or-sombre);
  padding: .48rem 1.1rem; border-radius: 999px;
}
.nav-cta:hover { background: var(--or-voile); }

/* ---------- Accroche ---------- */

.hero {
  position: relative; padding: 7rem 0 5.5rem; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 8% -20%, rgba(210,146,79,.16), transparent 62%),
    radial-gradient(680px 400px at 96% 4%, rgba(120,150,220,.09), transparent 60%);
}
.hero > * { position: relative; }

.kicker, .section-kicker {
  text-transform: uppercase; letter-spacing: .2em;
  font-size: .74rem; font-weight: 600; color: var(--or);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  max-width: 30ch;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--or-clair); }
.lede {
  font-size: 1.15rem; max-width: 66ch; margin-top: 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2.4rem 0 3.4rem; }

.preuve {
  display: flex; flex-wrap: wrap; gap: 3.5rem;
  list-style: none; margin: 0; padding: 2rem 0 0;
  border-top: 1px solid var(--ligne);
}
.preuve strong {
  display: block; font-family: var(--display); font-size: 2.1rem;
  font-weight: 700; color: var(--texte); letter-spacing: -.03em; line-height: 1.1;
}
.preuve span { font-size: .92rem; color: var(--texte-faible); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px;
  padding: .85rem 1.7rem; font-size: .98rem; font-weight: 600;
  font-family: var(--corps); transition: all .18s;
}
.btn-or {
  background: var(--or); color: #17130D;
  box-shadow: 0 10px 30px rgba(210, 146, 79, .18);
}
.btn-or:hover { background: var(--or-clair); transform: translateY(-2px); }
.btn-fantome { color: var(--texte); border-color: var(--ligne-forte); }
.btn-fantome:hover { border-color: var(--texte-doux); background: rgba(255,255,255,.04); }
.btn-bloc { width: 100%; }

/* ---------- Sections ---------- */

.section { padding: 6rem 0; }
.section-creme {
  background: var(--noir-2);
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
}
.section-titre { font-size: clamp(1.85rem, 3.8vw, 2.9rem); margin-bottom: .8rem; }
.section-lede { max-width: 58ch; margin-bottom: 3rem; }
.section-titre + .grille-oeuvres,
.section-titre + .grille-3,
.section-titre + .grille-4,
.section-titre + .oeuvre-large { margin-top: 3rem; }

/* ---------- Réalisations ---------- */

.oeuvre {
  background: var(--noir-3); border: 1px solid var(--ligne);
  border-radius: var(--rayon); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.oeuvre:hover { border-color: var(--ligne-forte); transform: translateY(-3px); }

.oeuvre-large {
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch;
  margin-bottom: 1.5rem;
}
.oeuvre-large .visuel img { height: 100%; min-height: 340px; }
.oeuvre-large .oeuvre-texte { padding: 2.4rem; align-self: center; }

.grille-oeuvres { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }

.visuel {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; cursor: pointer; background: var(--noir-4);
  overflow: hidden;
}
.visuel img {
  width: 100%; height: 235px; object-fit: cover; object-position: top center;
  transition: transform .4s ease, opacity .3s;
}
.oeuvre:hover .visuel img { transform: scale(1.035); }
.visuel-action {
  position: absolute; right: .8rem; bottom: .8rem;
  background: rgba(11,12,14,.82); color: var(--texte);
  border: 1px solid var(--ligne-forte);
  font-size: .78rem; font-weight: 600; padding: .38rem .85rem;
  border-radius: 999px; backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(4px); transition: all .22s;
}
.oeuvre:hover .visuel-action, .visuel:focus-visible .visuel-action {
  opacity: 1; transform: none;
}
.visuel:focus-visible { outline: 2px solid var(--or); outline-offset: -2px; }

.oeuvre-texte { padding: 1.7rem; display: flex; flex-direction: column; flex: 1; }
.oeuvre-tag {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 600; color: var(--or); margin-bottom: .7rem;
}
.pastille {
  display: inline-block; margin-left: .5rem; letter-spacing: .04em;
  color: var(--vert); background: rgba(127,199,155,.10);
  border: 1px solid rgba(127,199,155,.24);
  border-radius: 999px; padding: .1rem .55rem; text-transform: none; font-size: .72rem;
}
.oeuvre h3 { font-size: 1.45rem; }
.oeuvre-large h3 { font-size: 2rem; }
.oeuvre-texte > p { font-size: .97rem; }
.oeuvre-tech {
  font-size: .84rem; color: var(--texte-faible); margin-top: auto;
  padding-top: .8rem; margin-bottom: 0;
}
.lien-vif {
  display: inline-block; margin-top: 1rem; font-weight: 600;
  color: var(--or); text-decoration: none; font-size: .95rem;
}
.lien-vif:hover { color: var(--or-clair); }
.lien-vif span { display: inline-block; transition: transform .18s; }
.lien-vif:hover span { transform: translateX(4px); }

/* ---------- Aparté (la page comme 6e réalisation) ---------- */

.aparte {
  margin-top: 2.2rem; padding: 1.5rem 1.8rem;
  border-left: 3px solid var(--or);
  background: linear-gradient(90deg, var(--or-voile), transparent 70%);
  border-radius: 0 var(--rayon-sm) var(--rayon-sm) 0;
}
.aparte p {
  margin: 0; font-size: 1.08rem; color: var(--texte-doux); max-width: 68ch;
}
.aparte strong { color: var(--texte); }

/* ---------- Services ---------- */

.grille-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.service {
  border-top: 2px solid var(--or-sombre); padding-top: 1.6rem;
}
.service-num {
  font-family: var(--display); font-size: .82rem; font-weight: 700;
  color: var(--or); letter-spacing: .1em;
}
.service h3 { font-size: 1.35rem; margin-top: .5rem; }
.service p { margin-bottom: 0; font-size: .97rem; }

/* ---------- Tarifs ---------- */

.grille-4 { display: grid; gap: 1.2rem; grid-template-columns: repeat(4, 1fr); }
.prix {
  position: relative; background: var(--noir-3);
  border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 1.8rem 1.5rem; display: flex; flex-direction: column;
}
.prix h3 { font-size: 1.05rem; min-height: 2.5em; margin-bottom: .3rem; }
.prix-vedette {
  border-color: var(--or-sombre); background: var(--noir-4);
  box-shadow: 0 0 0 1px rgba(210,146,79,.18), 0 20px 50px rgba(0,0,0,.4);
}
.ruban {
  position: absolute; top: -.7rem; left: 1.5rem;
  background: var(--or); color: #17130D;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  padding: .2rem .7rem; border-radius: 999px;
}
.montant {
  font-family: var(--display); font-size: 2.3rem; font-weight: 700;
  color: var(--texte); letter-spacing: -.03em; line-height: 1; margin: .2rem 0 .35rem;
}
.montant span { font-size: 1rem; font-weight: 400; color: var(--texte-faible); }
.delai {
  font-size: .84rem; color: var(--or); margin-bottom: 1.1rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--ligne);
}
.prix > p:last-child { font-size: .92rem; margin-bottom: 0; }

.devis {
  margin-top: 2.6rem; padding: 2.4rem;
  background: linear-gradient(120deg, rgba(210,146,79,.14), rgba(210,146,79,.04));
  border: 1px solid var(--or-sombre); border-radius: var(--rayon);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap;
}
.devis h3 { font-size: 1.5rem; }
.devis p { margin: 0; max-width: 54ch; color: var(--texte-doux); }
.devis .btn-or { flex-shrink: 0; }

.extras { margin-top: 1.8rem; display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }
.extras p {
  margin: 0; padding: 1.2rem 1.4rem; font-size: .94rem;
  border: 1px dashed var(--ligne-forte); border-radius: var(--rayon-sm);
}
.extras strong { color: var(--texte); }

/* ---------- Méthode ---------- */

.etapes {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2.5rem; grid-template-columns: repeat(3, 1fr);
}
.etape-num {
  display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 700;
  color: var(--or); opacity: .55; line-height: 1; margin-bottom: .8rem;
}
.etapes h3 { font-size: 1.2rem; }
.etapes p { margin-bottom: 0; font-size: .96rem; }

/* ---------- Formulaire ---------- */

.champ { margin-bottom: 1.2rem; }
.champ label {
  display: block; font-size: .9rem; font-weight: 600;
  color: var(--texte); margin-bottom: .4rem;
}
.champ input, .champ select, .champ textarea {
  width: 100%; padding: .8rem .95rem; font: inherit; font-size: 1rem;
  color: var(--texte); background: var(--noir-3);
  border: 1px solid var(--ligne-forte); border-radius: var(--rayon-sm);
}
.champ textarea { resize: vertical; }
.champ ::placeholder { color: var(--texte-faible); }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--or); background: var(--noir-4);
}
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin: 1rem 0 0; font-weight: 600; min-height: 1.5em; }
.form-note.ok { color: var(--vert); }
.form-note.ko { color: var(--or-clair); }
.confidentialite { font-size: .84rem; color: var(--texte-faible); margin-top: 1.3rem; }

/* ---------- Pied de page ---------- */

.pied { border-top: 1px solid var(--ligne); padding: 3rem 0 3.5rem; }
.pied-nom {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  color: var(--texte); margin: 0 0 .2rem; letter-spacing: -.02em;
}
.pied-note { margin: 0; font-size: .9rem; color: var(--texte-faible); }

/* ---------- Visionneuse ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.5rem; background: rgba(6, 7, 8, .96);
  animation: apparait .18s ease-out;
}
.lightbox[hidden] { display: none; }
@keyframes apparait { from { opacity: 0 } to { opacity: 1 } }

.lb-scene { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; max-height: 100%; }
.lb-scene img {
  max-width: min(1100px, 100%); max-height: 78vh;
  border-radius: var(--rayon-sm); border: 1px solid var(--ligne-forte);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lb-scene figcaption { color: var(--texte-doux); font-size: .93rem; text-align: center; }

.lb-btn {
  flex-shrink: 0; cursor: pointer;
  background: rgba(255,255,255,.07); color: var(--texte);
  border: 1px solid var(--ligne-forte); border-radius: 50%;
  width: 3rem; height: 3rem; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background .15s;
}
.lb-btn:hover { background: rgba(255,255,255,.16); }
.lb-fermer { position: absolute; top: 1.3rem; right: 1.3rem; font-size: 1.7rem; }

/* ---------- Écrans étroits ---------- */

@media (max-width: 1000px) {
  .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .prix h3 { min-height: 0; }
}

@media (max-width: 860px) {
  .wrap, .wrap-etroit { width: min(100% - 2rem, 680px); }
  .entete nav { gap: 1rem; }
  .entete nav a:not(.nav-cta) { display: none; }
  .hero { padding: 4rem 0 3.5rem; }
  .preuve { gap: 2rem; }
  .section { padding: 4rem 0; }
  .oeuvre-large { grid-template-columns: 1fr; }
  .oeuvre-large .visuel img { min-height: 0; height: 235px; }
  .oeuvre-large .oeuvre-texte { padding: 1.7rem; }
  .oeuvre-large h3 { font-size: 1.6rem; }
  .grille-oeuvres, .grille-3, .grille-4, .etapes, .extras { grid-template-columns: 1fr; }
  .etapes { gap: 2rem; }
  .devis { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 1.8rem; }
  .visuel-action { opacity: 1; transform: none; }
  .lightbox { padding: .8rem; }
  .lb-scene img { max-height: 66vh; }
  .lb-prec, .lb-suiv { position: absolute; bottom: 1.3rem; }
  .lb-prec { left: 1.3rem; }
  .lb-suiv { right: 1.3rem; }
}

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