/* Charte graphique Green Corner (reprise du thème du PowerPoint) */
:root {
  --foret: #232C17;   /* vert du logo */
  --olive: #4A5A2E;
  --bronze: #7F6951;
  --sable: #DDD6C8;
  --lin: #F3F0E7;
  --papier: #FBFAF6;
  --encre: #2B2B26;
  --taupe: #6B675E;

  --titre: "Century Gothic", "CenturyGothic", "Questrial", "Avenir Next", sans-serif;
  --texte: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --gouttiere: clamp(16px, 4vw, 56px);
  --largeur: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 16px/1.6 var(--texte);
  color: var(--encre);
  background: var(--lin);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.2vw, 52px); color: var(--foret); }
h3 { font-size: 22px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.lead { font-size: 18px; color: var(--taupe); max-width: 60ch; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font: 15px/1 var(--titre);
  text-decoration: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-plein { background: var(--lin); color: var(--foret); border-color: var(--lin); }
.btn-plein:hover { background: #fff; border-color: #fff; }
.btn-fonce { background: var(--foret); color: var(--lin); border-color: var(--foret); }
.btn-fonce:hover { background: var(--olive); border-color: var(--olive); }
.btn-ligne:hover { background: rgba(243, 240, 231, .12); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 240, 231, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sable);
}
.entete .wrap { display: flex; align-items: center; gap: 32px; height: 80px; }
.entete-logo { display: flex; align-items: center; gap: 14px; flex: none; text-decoration: none; color: var(--foret); }
.logo-marque { display: block; width: 74px; height: 75px; flex: none; }
.logo-marque text { font-family: var(--titre); font-weight: 700; }
.entete nav { display: flex; gap: 28px; margin-left: auto; }
.entete nav a { font: 15px var(--titre); text-decoration: none; color: var(--encre); white-space: nowrap; }
.entete nav a:hover { color: var(--bronze); }
@media (max-width: 640px) {
  .entete .wrap { gap: 16px; height: 68px; }
  .logo-marque { width: 58px; height: 59px; }
  .entete nav { gap: 16px; overflow-x: auto; }
  .entete nav a { font-size: 14px; }
  .entete nav .nav-gc5, .entete nav .nav-parcours { display: none; } /* place limitée : Projets et Contact restent */
}

/* Bouton WhatsApp flottant */
.wa-flottant {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.wa-flottant:hover { background: #1ebe5b; }
.wa-flottant svg { width: 30px; height: 30px; }

/* ---------- Accueil : diaporama de 3 immeubles ---------- */
.accueil {
  position: relative;
  height: calc(100svh - 80px);
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  background: var(--foret);
  color: #fff;
}
.diapo { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.diapo.active { opacity: 1; }
.diapo img { width: 100%; height: 100%; object-fit: cover; }
.diapo figcaption {
  position: absolute; right: var(--gouttiere); top: 20px;
  font-size: 13px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.accueil::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(35, 44, 23, .9) 0%, rgba(35, 44, 23, .5) 42%, rgba(35, 44, 23, 0) 72%);
}
.accueil-contenu {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center;
  margin: 0 auto; padding-bottom: 32px;
  text-align: center;
}
.accueil-contenu h1 { font-size: clamp(36px, 5.2vw, 68px); line-height: 1.02; max-width: 16ch; letter-spacing: -.02em; }
.accueil-contenu > p { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--sable); max-width: 46ch; }
.accueil-contenu .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Points de navigation du diaporama */
.points { display: flex; justify-content: center; gap: 4px; margin-top: 36px; }
.points button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.points button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; transition: background .3s; }
.points button[aria-current="true"]::before { background: #fff; }
.points button:hover::before { background: rgba(255, 255, 255, .5); }
@media (prefers-reduced-motion: no-preference) {
  .diapo.active img { animation: approche 7s ease-out both; }
  @keyframes approche { from { transform: scale(1.07); } to { transform: scale(1); } }
}
@media (max-width: 640px) {
  .accueil { height: 82svh; min-height: 520px; }
  .accueil-contenu > p { font-size: 16px; }
  .points { margin-top: 24px; }
  .diapo figcaption { top: 12px; font-size: 11px; }
}

/* ---------- Repères ---------- */
.reperes { background: var(--sable); }
.reperes ul {
  list-style: none; margin: 0 auto; padding: 36px var(--gouttiere);
  max-width: var(--largeur);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.reperes strong { display: block; font: 40px/1 var(--titre); color: var(--foret); }
.reperes span { display: block; margin-top: 8px; font-size: 14px; color: var(--taupe); max-width: 24ch; }
@media (max-width: 760px) { .reperes ul { grid-template-columns: repeat(2, 1fr); } }

section.bloc { padding: clamp(64px, 9vw, 120px) 0; }
.bloc-tete { display: grid; gap: 16px; margin-bottom: 48px; }

/* ---------- Projets : la ligne d'immeubles, hauteur proportionnelle au nombre de biens ---------- */
.ligne {
  --h: clamp(320px, 42vw, 540px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  height: calc(var(--h) + 120px);
}
.immeuble {
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%;
  padding: 0; border: 0; background: none; color: inherit;
  text-align: left; font: inherit; text-decoration: none;
  cursor: pointer;
}
.immeuble-photo {
  position: relative;
  height: calc(var(--h) * var(--part));
  overflow: hidden;
  background: var(--sable);
}
.immeuble-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.immeuble:hover .immeuble-photo img, .immeuble:focus-visible .immeuble-photo img { transform: scale(1.04); }
.immeuble-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(35, 44, 23, .55)); pointer-events: none; }
.immeuble-num {
  position: absolute; z-index: 1; left: 14px; bottom: 6px;
  font: clamp(48px, 6vw, 88px)/1 var(--titre);
  color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}
.immeuble-info { height: 120px; padding-top: 14px; }
.immeuble-info b { display: block; font: 17px var(--titre); font-weight: 400; color: var(--foret); }
.immeuble-info span { display: block; font-size: 14px; color: var(--taupe); }
.immeuble-statut { margin-top: 6px; font-size: 13px !important; color: var(--bronze) !important; }
.ligne-lien { margin-top: 24px; }
.immeuble.encours .immeuble-photo { outline: 4px solid var(--foret); outline-offset: -4px; }
@media (max-width: 900px) {
  .ligne { grid-template-columns: repeat(5, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; --h: 420px; }
  .immeuble { scroll-snap-align: start; }
}

/* ---------- Parcours ---------- */
.parcours ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--foret); }
.parcours li { position: relative; padding: 28px 20px 0 0; }
.parcours li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; background: var(--foret); }
.parcours li.futur::before { background: var(--lin); border: 2px solid var(--foret); }
.parcours time { display: block; font: 28px/1 var(--titre); color: var(--foret); }
.parcours h3 { margin-top: 14px; font-size: 17px; }
.parcours li p { margin-top: 8px; font-size: 15px; color: var(--taupe); }
@media (max-width: 900px) {
  .parcours ol { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--foret); }
  .parcours li { padding: 0 0 32px 28px; }
  .parcours li::before { top: 4px; left: -8px; }
}

/* ---------- Prestations ---------- */
.prestations { background: var(--papier); }
.prestations-grille { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.prestations figure { margin: 0; }
.prestations figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prestations figcaption { margin-top: 10px; font-size: 13px; color: var(--taupe); }
.prestations ul { list-style: none; margin: 32px 0 0; padding: 0; }
.prestations li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--sable); }
.prestations li svg { width: 22px; height: 22px; color: var(--bronze); margin-top: 1px; }
.surfaces { margin-top: 28px; font: 20px var(--titre); color: var(--foret); }
@media (max-width: 900px) { .prestations-grille { grid-template-columns: 1fr; } }

/* ---------- Méthode (cycle en 8 étapes) ---------- */
.methode ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--sable); border: 1px solid var(--sable); counter-reset: etape; }
.methode li { background: var(--lin); padding: 28px 24px; counter-increment: etape; }
.methode li::before { content: counter(etape, decimal-leading-zero); display: block; font: 15px var(--titre); color: var(--bronze); }
.methode h3 { margin-top: 18px; font-size: 19px; color: var(--foret); }
.methode li p { margin-top: 6px; font-size: 15px; color: var(--taupe); }
.methode .duree { margin-top: 28px; font-size: 15px; color: var(--taupe); }
@media (max-width: 900px) { .methode ol { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .methode ol { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--foret); color: var(--lin); }
.contact h2 { color: var(--lin); max-width: 16ch; }
.contact-grille { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.contact .personne { margin-top: 28px; font-size: 17px; color: var(--sable); }
.contact .personne b { display: block; font: 22px var(--titre); font-weight: 400; color: var(--lin); }
.contact .tel { display: inline-block; margin-top: 18px; font: clamp(26px, 3vw, 34px) var(--titre); text-decoration: none; }
.contact .tel:hover { color: var(--sable); }
.contact .actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) { .contact-grille { grid-template-columns: 1fr; } .contact .actions { flex-direction: row; flex-wrap: wrap; } }

.pied { padding: 28px 0; font-size: 13px; color: var(--taupe); }
.pied .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--foret); }

/* ---------- Fenêtres (maquette 3D, carte, fiche projet) ---------- */
dialog {
  padding: 0; border: 0;
  max-width: none; max-height: none;
  background: var(--papier); color: var(--encre);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
dialog::backdrop { background: rgba(35, 44, 23, .78); }
.fermer {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: var(--papier); color: var(--foret);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.fermer svg { width: 20px; height: 20px; }
.fenetre-carte { width: min(640px, calc(100vw - 32px)); height: min(480px, calc(100svh - 32px)); overflow: hidden; }
.fenetre-carte iframe { display: block; width: 100%; height: 100%; border: 0; }
/* ---------- Page Projets ---------- */
.entete nav a[aria-current="page"] { color: var(--bronze); }
.page-tete { padding: clamp(48px, 7vw, 96px) 0 0; }
.page-tete h1 { font-size: clamp(38px, 5.4vw, 64px); color: var(--foret); }
.page-tete .lead { margin-top: 16px; }

.filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.filtres button {
  padding: 11px 20px;
  border: 1px solid var(--sable);
  border-radius: 999px;
  background: var(--papier);
  color: var(--encre);
  font: 700 13px/1 var(--titre);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.filtres button:hover { border-color: var(--foret); }
.filtres button[aria-pressed="true"] { background: var(--foret); border-color: var(--foret); color: #fff; }

.liste-projets { padding: 40px 0 clamp(64px, 9vw, 120px); }
.grille-projets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.carte-projet[hidden] { display: none; }
.carte-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sable); }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 14px; left: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--lin); color: var(--foret);
  font: 700 11px/1 var(--titre); letter-spacing: .05em; text-transform: uppercase;
}
.badge-fonce { background: var(--foret); color: #fff; }
.carte-projet h2 { margin-top: 18px; font-size: 26px; }
.carte-faits { list-style: none; margin: 10px 0 0; padding: 0; color: var(--taupe); font-size: 15px; }
.carte-faits li { padding: 3px 0; }
.carte-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.carte-actions .btn { padding: 12px 18px; font-size: 14px; }
.btn-contour { color: var(--foret); }
.btn-contour:hover { background: var(--foret); color: var(--lin); }
.projets-vide { padding: 48px 32px; border: 1px dashed var(--sable); text-align: center; color: var(--taupe); }
.projets-vide p + p { margin-top: 8px; }
.projets-vide a { color: var(--foret); }
@media (max-width: 960px) { .grille-projets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grille-projets { grid-template-columns: 1fr; } }


.carte-photo { display: block; }
.carte-photo:hover img { transform: scale(1.03); }
.carte-photo img { transition: transform .5s ease; }

/* ---------- Page d'un projet ---------- */
.projet-tete { padding-top: 32px; }
.fil-ariane { display: flex; gap: 10px; font-size: 14px; color: var(--taupe); }
.fil-ariane a { color: var(--taupe); }
.fil-ariane a:hover { color: var(--foret); }
.projet-titre { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.projet-titre h1 { font-size: clamp(38px, 5.4vw, 64px); color: var(--foret); }
.projet-titre .badge { position: static; }

.projet-visuel { margin-top: 32px; }
.projet-visuel img { width: 100%; max-height: 78vh; object-fit: cover; }
.projet-visuel.avec-maquette { height: min(78vh, 760px); min-height: 420px; }
.projet-visuel.avec-maquette iframe { background: var(--foret); }
.projet-visuel iframe { display: block; width: 100%; height: 100%; border: 0; }

.projet-corps { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 88px); padding-top: 48px; padding-bottom: 24px; }
.projet-corps .lead { color: var(--encre); }
.projet-corps .mention { margin-top: 12px; font-size: 13px; color: var(--taupe); }
.projet-corps .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.projet-chiffres { margin: 0; border-top: 2px solid var(--foret); }
.projet-chiffres div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--sable); }
.projet-chiffres dt { color: var(--taupe); }
.projet-chiffres dd { margin: 0; font: 30px/1 var(--titre); color: var(--foret); white-space: nowrap; }

.projet-galerie { padding-top: 48px; }
.projet-galerie h2 { font-size: 30px; margin-bottom: 24px; }
.galerie-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.galerie-grille figure { margin: 0; }
.galerie-grille img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #fff; }
.galerie-grille img.plan { object-fit: contain; }
.galerie-grille figcaption { margin-top: 8px; font-size: 13px; color: var(--taupe); }

.projet-suite { display: flex; justify-content: space-between; gap: 16px; padding-top: 56px; padding-bottom: clamp(56px, 8vw, 96px); }
.projet-suite a { display: flex; flex-direction: column; gap: 4px; font: 22px var(--titre); color: var(--foret); text-decoration: none; }
.projet-suite a span { font: 13px var(--texte); color: var(--taupe); }
.projet-suite a.suivant { text-align: right; margin-left: auto; }
.projet-suite a:hover { color: var(--bronze); }
@media (max-width: 760px) {
  .projet-corps { grid-template-columns: 1fr; }
  .galerie-grille { grid-template-columns: 1fr; }
  .projet-visuel.avec-maquette { height: 70svh; }
  .projet-visuel { padding: 0; }
}

/* ---------- Page Contact ---------- */
.contact-page { padding: 40px 0 clamp(64px, 9vw, 120px); }
.contact-page-grille { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.champ { display: flex; flex-direction: column; min-width: 0; }
.champ-large { grid-column: 1 / -1; }
.champ label, .rappel legend { margin-bottom: 8px; font: 15px var(--titre); color: var(--foret); }
.requis { color: var(--bronze); }
.champ input, .champ select, .champ textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #CFC7B8;
  border-radius: 0;
  background: var(--papier);
  color: var(--encre);
  font: 16px/1.4 var(--texte);
}
.champ select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232C17' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.champ select:invalid { color: var(--taupe); }
.champ textarea { resize: vertical; min-height: 140px; }
.champ input::placeholder, .champ textarea::placeholder { color: #9C9486; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--foret); outline-offset: 0; border-color: var(--foret); }
.champ [aria-invalid="true"] { border-color: #A3392B; }
.champ-erreur { min-height: 0; margin-top: 6px; font-size: 13px; color: #A3392B; }
.champ-erreur:empty { display: none; }
.rappel { margin: 0; padding: 0; border: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
.rappel legend { width: 100%; padding: 0; }
.rappel label { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.rappel input { width: 18px; height: 18px; accent-color: var(--foret); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .btn[type="submit"] { margin-top: 28px; }
.formulaire .btn[disabled] { opacity: .6; cursor: wait; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--taupe); }
.form-statut { margin-top: 24px; padding: 16px 18px; border-left: 4px solid var(--foret); background: var(--papier); }
.form-statut.erreur { border-left-color: #A3392B; color: #7A2A20; }
.contact-infos { padding: 32px; background: var(--foret); color: var(--sable); }
.contact-infos-titre { font: 22px var(--titre); color: var(--lin); }
.contact-infos-nom { margin-top: 20px; font: 18px var(--titre); color: var(--lin); }
.contact-infos-tel { display: inline-block; margin-top: 16px; font: 26px var(--titre); color: var(--lin); text-decoration: none; }
.contact-infos .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }
.contact-infos .btn-fonce { background: var(--lin); color: var(--foret); border-color: var(--lin); }
.contact-infos .btn-contour { color: var(--lin); }
.contact-infos .btn-contour:hover { background: rgba(243, 240, 231, .12); color: var(--lin); }
@media (max-width: 860px) { .contact-page-grille { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .champs { grid-template-columns: 1fr; } }
