/* ============================================================
   MAEVA IMMOBILIER — Vitrine
   Palette : marine #122E4A, marine clair #1E4E78, or #B8892F,
   or clair #D9B65B, béton #ECEEEF, fond #F7F8F9, encre #0F1A25
   ============================================================ */

/* ---- Polices auto-hébergées (aucun appel externe) ---- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../assets/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/public-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/public-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --marine: #122E4A;
  --marine-clair: #1E4E78;
  --or: #B8892F;
  --or-clair: #D9B65B;
  --beton: #ECEEEF;
  --fond: #F7F8F9;
  --encre: #0F1A25;
  --wa: #117A43;
  --wa-fonce: #0C5D33;
  --titre: 'Bricolage Grotesque', 'Arial Narrow', Arial, sans-serif;
  --texte: 'Public Sans', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--texte);
  color: var(--encre);
  background: var(--fond);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Les items de grille/flex peuvent rétrécir sous leur contenu min */
.hero-grille > *, .devis-grille > *, .contact-grille > *, .activite > *,
.pied > *, .form-actions > *, .hero-actions > * { min-width: 0; }
img { max-width: 100%; }
a { color: var(--marine-clair); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Lien d'évitement */
.aller-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--marine);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  font-weight: 600;
}
.aller-contenu:focus { left: 8px; top: 8px; }

/* ================= En-tête ================= */
.entete {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid var(--beton);
  position: sticky;
  top: 0;
  z-index: 100;
}
.marque {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--marine);
  font-family: var(--titre);
  font-stretch: 80%;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.marque-icone { width: 36px; height: 36px; }
.nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.nav a {
  color: var(--encre);
  text-decoration: none;
  padding: 10px 14px;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover { color: var(--marine-clair); text-decoration: underline; text-underline-offset: 4px; }
.nav a.actif { color: var(--marine-clair); text-decoration: underline; text-underline-offset: 4px; }
.nav-gestion {
  border-left: 1px solid #D8DCDF;
  color: #4A5764 !important;
  font-size: 14px;
}
.btn-appeler { margin-left: 8px; }

/* ================= Boutons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border: none;
  border-radius: 6px;
  font-family: var(--texte);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-plein { background: var(--marine); color: #fff; }
.btn-plein:hover { background: var(--marine-clair); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-fonce); }
.btn-grand { padding: 14px 28px; font-size: 17px; }
.lien-devis {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--marine-clair);
  font-weight: 600;
  text-underline-offset: 4px;
}

/* ================= Hero ================= */
.hero {
  background: var(--beton);
  border-bottom: 4px solid var(--or);
}
.hero-grille {
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 28px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
}
.hero-texte { padding-bottom: 56px; }
.hero h1 {
  font-family: var(--titre);
  font-stretch: 78%;
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08;
  color: var(--marine);
  margin: 0 0 18px;
}
.hero-sous-titre {
  font-size: 18px;
  max-width: 34em;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-skyline { display: flex; align-items: flex-end; justify-content: center; }
.skyline { width: 100%; max-width: 520px; display: block; }

/* Animation skyline : les immeubles sortent du sol l'un après l'autre */
.bat { transform: translateY(360px); animation: monter 0.9s cubic-bezier(0.22, 0.9, 0.32, 1) forwards; }
.bat-1 { animation-delay: 0.15s; }
.bat-2 { animation-delay: 0.29s; }
.bat-4 { animation-delay: 0.43s; }
.bat-5 { animation-delay: 0.57s; }
.bat-3 { animation-delay: 0.71s; } /* tour centrale en dernier */
@keyframes monter { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .bat { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ================= Sections ================= */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 28px;
}
.section-titre {
  font-family: var(--titre);
  font-stretch: 80%;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--marine);
  margin: 0 0 36px;
}
.section-titre::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--or);
  margin-top: 12px;
}
.section-titre-clair { color: #fff; }

/* Activités : lignes séparées par un filet */
.activite {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid #D8DCDF;
}
.activite:last-child { border-bottom: 1px solid #D8DCDF; }
.activite h3 {
  font-family: var(--titre);
  font-stretch: 82%;
  font-size: 22px;
  color: var(--marine);
  margin: 0;
}
.activite p { margin: 0 0 10px; }
.activite ul {
  margin: 0;
  padding-left: 20px;
}
.activite li { margin-bottom: 4px; }
.activite li::marker { color: var(--or); }

/* Devis */
.devis-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.devis-texte p { font-size: 17px; margin-top: 0; }
.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: etape;
}
.etapes li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid #D8DCDF;
}
.etapes li:first-child { border-top: none; padding-top: 0; }
.etape-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--or);
  color: var(--marine);
  font-family: var(--titre);
  font-weight: 700;
  font-size: 17px;
}

/* Réalisations */
.photos-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.photos-grille img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border: 1px solid #D8DCDF;
}
.photo-projet { margin: 0; }
.photo-projet figcaption {
  padding: 8px 2px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--encre);
}
.photo-projet figcaption strong {
  display: block;
  font-weight: 600;
  color: var(--marine);
}
.photo-projet figcaption span { color: #4A5764; }

/* ================= Contact ================= */
.contact {
  background: var(--marine);
  color: #E8EEF4;
  padding: 72px 28px;
}
.contact .section-titre { max-width: 1140px; margin-left: auto; margin-right: auto; }
.contact-grille {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-tel {
  display: block;
  font-family: var(--titre);
  font-stretch: 80%;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  color: var(--or-clair);
  text-decoration: none;
  margin-bottom: 20px;
}
.contact-tel:hover { text-decoration: underline; text-underline-offset: 6px; }
.contact-tel2 {
  display: block;
  font-family: var(--titre);
  font-stretch: 80%;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--or-clair);
  text-decoration: none;
  margin-bottom: 20px;
}
.contact-tel2:hover { text-decoration: underline; text-underline-offset: 6px; }
.contact-infos .btn-grand { margin-bottom: 32px; }
.contact-ligne { margin: 0 0 14px; }
.contact-label {
  display: block;
  font-size: 13px;
  color: #9FB4C8;
  margin-bottom: 2px;
}
.contact a { color: #DCE6F0; }

/* Formulaire */
.contact-form {
  background: #fff;
  color: var(--encre);
  padding: 28px;
  border-top: 4px solid var(--or);
}
.champ { margin-bottom: 16px; }
.champ label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--marine);
}
.champ input, .champ select, .champ textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #B9C2C9;
  border-radius: 4px;
  font-family: var(--texte);
  font-size: 16px;
  min-height: 44px;
  background: #fff;
}
.champ textarea { resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  border-color: var(--marine-clair);
  outline: 2px solid var(--marine-clair);
  outline-offset: 0;
}
.champ.invalide input, .champ.invalide select {
  border-color: #B3261E;
  outline: 2px solid #B3261E;
}
.form-erreur {
  color: #B3261E;
  font-weight: 600;
  margin: 0 0 14px;
}
.form-succes {
  color: var(--wa);
  font-weight: 600;
  margin: 0 0 14px;
}
.champ-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.lien-email {
  background: none;
  border: none;
  padding: 12px 4px;
  min-height: 44px;
  color: var(--marine-clair);
  font-family: var(--texte);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* Liens vers les autres pages / section accueil */
.page-suite { margin: 32px 0 0; }
.page-vide { color: #4A5764; font-size: 17px; }
.section-accueil .activite h3 a {
  color: var(--marine);
  text-decoration: none;
}
.section-accueil .activite h3 a:hover {
  color: var(--marine-clair);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ================= Pied de page ================= */
.pied {
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #4A5764;
  border-top: 1px solid var(--beton);
}
.pied p { margin: 0; }
.lien-gestion { color: #4A5764; font-size: 13px; }

/* ================= Barre mobile ================= */
.barre-mobile {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
  background: #fff;
  border-top: 1px solid #D8DCDF;
  z-index: 150;
}
.barre-mobile .btn { flex: 1; }

/* ================= Responsive ================= */
@media (max-width: 860px) {
  .hero-grille { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; }
  .hero-texte { padding-bottom: 0; }
  .hero-skyline { max-width: 420px; margin: 0 auto; }
  .activite, .devis-grille, .contact-grille { grid-template-columns: 1fr; gap: 16px; }
  .contact-grille { gap: 40px; }
  .nav { display: none; }
  .entete { padding: 10px 16px; }
  .btn-appeler { display: none; }
  .barre-mobile { display: flex; }
  body { padding-bottom: 76px; } /* espace pour la barre fixe */
  .section { padding: 52px 20px; }
  .contact { padding: 52px 20px calc(72px); }
  .hero-grille { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 420px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-actions .lien-devis { flex: 1 1 100%; justify-content: center; }
}

/* Page de gestion des photos (app) + grille vitrine */
.photo-ligne { display:flex; gap:16px; padding:14px 0; border-top:1px solid #E2E6EA; align-items:flex-start; }
.photo-ligne img { width:140px; height:100px; object-fit:cover; border:1px solid #D8DCDF; }
.photo-meta { flex:1; display:flex; flex-direction:column; gap:8px; }
