/* SAPY Trade Center — l'immeuble lu niveau par niveau : bandeaux « nuit » (verre, éclairage ambré, laiton) et pages claires. */
:root {
  --nuit: #0E1320;
  --nuit-2: #182033;
  --indigo: #2D3077;          /* aile du logo */
  --laiton: #C29055;          /* sur fond sombre */
  --laiton-fonce: #8A6131;    /* sur fond clair (contraste ≥ 4,5:1) */
  --papier: #FFFFFF;
  --pierre: #F1F2F4;
  --trait: #D9DCE2;
  --texte: #151B27;
  --doux: #535D6F;
  --clair: #ECEFF4;
  --clair-doux: #A8B0C0;
  --f-titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --l-max: 1200px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--texte); font-family: var(--f-texte); font-size: 17px; line-height: 1.62; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--papier); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--laiton); outline-offset: 3px; }
.c { max-width: var(--l-max); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.lien-evitement { position: absolute; left: -9999px; top: 0; background: var(--nuit); color: #fff; padding: 10px 16px; z-index: 50; }
.lien-evitement:focus { left: 12px; top: 12px; }

/* Titres et textes */
h1, h2, h3 { font-family: var(--f-titre); font-stretch: 112%; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 1.2; font-weight: 650; }
p { margin: 0; }
.sur-titre { font-family: var(--f-titre); font-size: 13px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--laiton-fonce); margin: 0 0 14px; }
.sombre .sur-titre { color: var(--laiton); }
.chapo { font-size: 20px; line-height: 1.5; color: var(--doux); max-width: 40ch; }
.sombre .chapo { color: var(--clair-doux); }
.texte { display: grid; gap: 16px; max-width: 62ch; }
.texte p { color: var(--doux); }
.note { font-size: 14px; color: var(--doux); }

/* En-tête */
.entete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--papier); border-bottom: 1px solid var(--trait); }
.entete .c { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-family: var(--f-titre); font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--trait); }
.nav a[aria-current="page"] { border-bottom-color: var(--laiton); }
.langues { display: flex; gap: 4px; font-family: var(--f-titre); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }
.langues a, .langues span { padding: 4px 7px; text-decoration: none; border: 1px solid var(--trait); }
.langues span { background: var(--nuit); color: #fff; border-color: var(--nuit); }
.bouton-menu { display: none; font: 600 14px var(--f-titre); letter-spacing: 0.06em; text-transform: uppercase; background: none; border: 1px solid var(--texte); color: var(--texte); padding: 9px 14px; cursor: pointer; }

/* Boutons */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 650 15px var(--f-titre); letter-spacing: 0.04em; text-decoration: none; padding: 14px 22px; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s; }
.btn-plein { background: var(--laiton); color: var(--nuit); }
.btn-plein:hover { background: #D6A56A; }
.btn-ligne { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ligne:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sombre { background: var(--nuit); color: #fff; }
.btn-sombre:hover { background: var(--indigo); }

/* Bandeaux */
.sombre { background: var(--nuit); color: #fff; }
.pierre { background: var(--pierre); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.tete-section { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }

/* Accueil : ouverture */
.ouverture .c { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.ouverture-texte { padding-block: clamp(56px, 8vw, 104px); display: grid; align-content: center; gap: 24px; }
.ouverture h1 { font-size: clamp(46px, 7.4vw, 96px); line-height: 0.94; font-weight: 800; font-stretch: 118%; letter-spacing: -0.015em; }
.ouverture h1 span { display: block; color: var(--laiton); }
.ouverture figure { margin: 0; position: relative; min-height: 420px; }
.ouverture figure img { width: 100%; height: 100%; max-height: 760px; object-fit: cover; object-position: center 30%; }
.legende-img { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: rgba(255, 255, 255, 0.78); background: rgba(14, 19, 32, 0.55); padding: 3px 8px; }

.chiffres .c { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 34px; }
.chiffre { display: grid; gap: 4px; border-left: 2px solid var(--laiton); padding-left: 16px; }
.chiffre b { font-family: var(--f-titre); font-stretch: 112%; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.chiffre span { font-size: 14px; color: var(--doux); }

/* Cartes des espaces */
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.carte { text-decoration: none; display: grid; gap: 14px; align-content: start; }
.carte .cadre { overflow: hidden; aspect-ratio: 4 / 3; background: var(--pierre); }
.carte img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.carte:hover img { transform: scale(1.035); }
.carte p { color: var(--doux); font-size: 16px; }
.carte .suite { font: 650 14px var(--f-titre); letter-spacing: 0.05em; color: var(--laiton-fonce); text-transform: uppercase; }

/* Niveaux */
.niveaux .c { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.niveaux figure { margin: 24px 0 0; }
.niveaux figure img { width: 100%; }
.liste-niveaux { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.liste-niveaux li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.liste-niveaux .etage { font-family: var(--f-titre); font-stretch: 120%; font-weight: 700; font-size: 19px; color: var(--laiton); font-variant-numeric: tabular-nums; }
.liste-niveaux strong { display: block; font-family: var(--f-titre); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.liste-niveaux span { color: var(--clair-doux); font-size: 15px; }

/* Arguments */
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.argument { display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--trait); padding-top: 22px; }
.argument b { font-family: var(--f-titre); font-stretch: 112%; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.argument p { color: var(--doux); }

/* Calendrier */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.etapes li { border-top: 3px solid var(--trait); padding-top: 18px; display: grid; gap: 6px; align-content: start; }
.etapes li.fait { border-top-color: var(--laiton); }
.etapes time { font: 700 15px var(--f-titre); letter-spacing: 0.06em; text-transform: uppercase; color: var(--laiton-fonce); }
.etapes span { color: var(--doux); font-size: 15px; }

/* Porteur du projet */
.porteur .c { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
.activites { margin: 0; display: grid; gap: 0; }
.activites div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-top: 1px solid var(--trait); }
.activites dt { font-family: var(--f-titre); font-weight: 650; }
.activites dd { margin: 0; color: var(--doux); }

/* Appel à l'action */
.appel { background: var(--indigo); color: #fff; }
.appel .c { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(48px, 6vw, 72px); }
.appel h2 { font-size: clamp(26px, 3.2vw, 38px); max-width: 22ch; }
.appel p { color: #CDD0F0; margin-top: 10px; max-width: 52ch; }

/* Pages intérieures */
.tete-page .c { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 60px); display: grid; gap: 18px; }
.tete-page h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1; font-weight: 800; font-stretch: 116%; }
.bandeau-image { margin: 0; background: var(--nuit); position: relative; }
.bandeau-image img { width: 100%; max-height: 600px; object-fit: cover; }
.bloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.bloc + .bloc { margin-top: clamp(56px, 8vw, 96px); }
.bloc.inverse > figure { order: -1; }
.bloc figure { margin: 0; }
.bloc figure img { width: 100%; }
.reperes { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 4px 0 0; padding: 0; }
.reperes li { font: 600 14px var(--f-titre); border: 1px solid var(--trait); padding: 6px 12px; font-variant-numeric: tabular-nums; }
.liste { margin: 0; padding-left: 20px; color: var(--doux); display: grid; gap: 6px; }
.univers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.univers li { padding-block: 12px; border-top: 1px solid var(--trait); font-size: 16px; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.galerie figure { margin: 0; display: grid; gap: 8px; }
.galerie img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.galerie figcaption { font-size: 14px; color: var(--doux); }
.galerie.large { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }

/* Tableau */
.tableau { overflow-x: auto; border-top: 2px solid var(--texte); }
.tableau table { width: 100%; border-collapse: collapse; min-width: 560px; }
.tableau th { text-align: left; font: 650 12px var(--f-titre); letter-spacing: 0.1em; text-transform: uppercase; color: var(--doux); padding: 14px 16px 12px 0; border-bottom: 1px solid var(--trait); }
.tableau td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--trait); vertical-align: top; font-variant-numeric: tabular-nums; }
.tableau td:first-child { font-family: var(--f-titre); font-weight: 650; }

/* Fiches appartements et restaurants */
.fiches { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.fiche { border: 1px solid var(--trait); background: var(--papier); display: grid; align-content: start; }
.fiche-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 22px 22px 12px; }
.fiche-tete b { font-family: var(--f-titre); font-stretch: 118%; font-size: 40px; font-weight: 800; line-height: 1; }
.fiche-tete span { font-family: var(--f-titre); font-size: 22px; font-weight: 600; color: var(--laiton-fonce); font-variant-numeric: tabular-nums; }
.fiche figure { margin: 0; padding: 12px 22px; background: #fff; border-block: 1px solid var(--trait); }
.fiche figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.fiche .liste { padding: 18px 22px 22px 40px; }
.couverts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.couverts div { border: 1px solid var(--trait); padding: 12px 14px; }
.couverts b { display: block; font-family: var(--f-titre); font-stretch: 112%; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.couverts span { font-size: 14px; color: var(--doux); }

/* Contact */
.contact .c { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.formulaire { display: grid; gap: 18px; background: var(--papier); border: 1px solid var(--trait); padding: clamp(22px, 3vw, 36px); }
.deux-champs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.champ { display: grid; gap: 6px; }
.champ label { font: 600 14px var(--f-titre); letter-spacing: 0.02em; }
.champ label i { font-style: normal; color: var(--laiton-fonce); }
.champ input, .champ select, .champ textarea { font: inherit; font-size: 16px; color: var(--texte); background: #fff; border: 1px solid #BFC4CD; border-radius: 2px; padding: 12px 13px; width: 100%; }
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--indigo); outline-offset: 0; border-color: var(--indigo); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.etat { font-size: 15px; padding: 12px 14px; border-left: 3px solid var(--laiton); background: var(--pierre); }
.etat[data-type="erreur"] { border-left-color: #B3261E; }
.coordonnees { margin: 0; display: grid; gap: 0; }
.coordonnees div { padding-block: 16px; border-top: 1px solid var(--trait); display: grid; gap: 4px; }
.coordonnees dt { font: 650 12px var(--f-titre); letter-spacing: 0.12em; text-transform: uppercase; color: var(--doux); }
.coordonnees dd { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.coordonnees a { color: var(--texte); }

/* Pied de page */
.pied { background: var(--nuit); color: var(--clair); padding-block: 56px 28px; font-size: 15px; }
.pied .c { display: grid; gap: 36px; }
.pied-haut { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.pied img { height: 56px; width: auto; margin-bottom: 16px; }
.pied p { color: var(--clair-doux); max-width: 36ch; }
.pied h3 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--laiton); margin-bottom: 12px; font-stretch: 100%; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a { color: var(--clair); text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied-bas { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; font-size: 13px; color: var(--clair-doux); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Petits écrans */
@media (max-width: 960px) {
  .bouton-menu { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--trait); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); }
  .entete.ouvert .nav { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding-block: 14px; border-bottom: 1px solid var(--trait); }
  .langues { margin-top: 16px; }
  .ouverture .c, .niveaux .c, .porteur .c, .bloc, .contact .c { grid-template-columns: minmax(0, 1fr); }
  .bloc.inverse > figure { order: 0; }
  .ouverture figure { min-height: 0; margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); }
  .ouverture figure img { max-height: 520px; }
  .chiffres .c, .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trois, .pied-haut { grid-template-columns: minmax(0, 1fr); }
  .univers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo img { height: 42px; }
  .chiffres .c, .etapes, .univers, .deux-champs, .couverts { grid-template-columns: minmax(0, 1fr); }
  .liste-niveaux li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .activites div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .galerie, .galerie.large, .fiches { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
