/* ImmoPrestige237 — charte. Toutes les classes sont préfixées « i- ». */
:root {
  --vert-mefou: #0E4B3B;
  --ocre: #E8A317;
  --bleu-wouri: #1D5E7A;
  --gris-releve: #EEF2EF;
  --blanc: #FFFFFF;
  --encre: #1C2622;
  --filet: #D5DDD8;
  --whatsapp: #25D366;
  --i-police: "Archivo", "Arial Narrow", Arial, sans-serif;
}

/* ---------- Base commune aux blocs i- ---------- */
.i-header, .i-pied, .i-appel, .i-wa-flottant, .i-panneau, .i-page { font-family: var(--i-police); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
.i-header *, .i-pied *, .i-appel *, .i-panneau *, .i-page * { box-sizing: border-box; }
.i-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .i-wrap { padding: 0 24px; } }
.i-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i-header :focus-visible, .i-pied :focus-visible, .i-appel :focus-visible, .i-panneau :focus-visible, .i-page :focus-visible, .i-wa-flottant:focus-visible {
  outline: 3px solid var(--ocre); outline-offset: 2px;
}

/* ---------- Boutons ---------- */
a.i-btn, button.i-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: 6px;
  font-family: var(--i-police); font-size: 17px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s;
}
a.i-btn-wa, button.i-btn-wa { background: var(--whatsapp); color: var(--vert-mefou); }
a.i-btn-wa:hover, button.i-btn-wa:hover { background: #1fbf5b; }
a.i-btn-vert, button.i-btn-vert { background: var(--vert-mefou); color: var(--blanc); }
a.i-btn-vert:hover, button.i-btn-vert:hover { background: #0a3a2d; }
.i-btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; display: block; }

/* ---------- En-tête ---------- */
.i-header { position: sticky; top: 0; z-index: 50; background: var(--blanc); border-bottom: 1px solid var(--filet); color: var(--encre); }
.i-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
a.i-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--vert-mefou); }
.i-logo-pastille { width: 34px; height: 34px; border-radius: 50%; background: var(--vert-mefou); color: var(--ocre); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex: none; }
.i-logo-nom { font-weight: 800; font-stretch: 75%; font-size: 22px; letter-spacing: 0; line-height: 1; }
.i-nav { display: none; }
.i-nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.i-nav-item { position: relative; }
.i-header button.i-nav-btn, .i-header a.i-nav-lien {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 0; border-radius: 6px;
  background: transparent; color: var(--vert-mefou); font-family: var(--i-police); font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background-color .2s;
}
.i-header button.i-nav-btn:hover, .i-header a.i-nav-lien:hover { background: var(--gris-releve); }
.i-nav-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; display: block; }
.i-nav-item.is-open .i-nav-btn svg { transform: rotate(180deg); }
.i-sous-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 280px;
  list-style: none; margin: 0; padding: 8px 0; background: var(--blanc); border: 1px solid var(--filet); border-radius: 6px;
  box-shadow: 0 10px 30px rgba(14, 75, 59, .16);
}
.i-nav-item.is-open > .i-sous-menu { display: block; }
html:not(.i-js) .i-nav-item:hover > .i-sous-menu, html:not(.i-js) .i-nav-item:focus-within > .i-sous-menu { display: block; }
.i-sous-menu a { display: block; padding: 10px 18px; color: var(--encre); font-size: 16px; text-decoration: none; transition: background-color .2s, color .2s; }
.i-sous-menu a:hover { background: var(--gris-releve); color: var(--vert-mefou); }
.i-header-actions { display: flex; align-items: center; gap: 8px; }
.i-header a.i-tel { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; height: 44px; justify-content: center; color: var(--vert-mefou); font-weight: 700; font-size: 16px; text-decoration: none; font-variant-numeric: tabular-nums; border-radius: 6px; transition: background-color .2s; }
.i-header a.i-tel:hover { background: var(--gris-releve); }
.i-tel svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.i-tel-texte { display: none; }
.i-header a.i-header-wa { display: none; min-height: 40px; padding: 8px 16px; font-size: 16px; }
.i-header a.i-menu-btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border: 1px solid var(--vert-mefou); border-radius: 6px;
  color: var(--vert-mefou); font-weight: 700; font-size: 16px; text-decoration: none; background: var(--blanc); transition: background-color .2s;
}
.i-header a.i-menu-btn:hover { background: var(--gris-releve); }
@media (min-width: 1024px) {
  .i-nav { display: block; }
  .i-tel-texte { display: inline; }
  .i-header a.i-header-wa { display: inline-flex; }
  .i-header a.i-menu-btn { display: none; }
  .i-header a.i-tel { padding: 0 10px; }
}

/* ---------- Panneau mobile ---------- */
.i-panneau { position: fixed; inset: 0; z-index: 100; background: var(--blanc); color: var(--encre); overflow-y: auto; padding: 0 16px 32px; }
.i-panneau[hidden] { display: none; }
html.i-panneau-ouvert { overflow: hidden; }
.i-panneau-haut { display: flex; align-items: center; justify-content: space-between; height: 64px; border-bottom: 1px solid var(--filet); margin: 0 -16px 8px; padding: 0 16px; }
.i-panneau button.i-fermer { height: 44px; padding: 0 14px; border: 1px solid var(--vert-mefou); border-radius: 6px; background: var(--blanc); color: var(--vert-mefou); font-family: var(--i-police); font-weight: 700; font-size: 16px; cursor: pointer; }
.i-panneau-titre { margin: 24px 0 4px; color: var(--vert-mefou); font-weight: 600; font-size: 15px; }
.i-panneau ul { list-style: none; margin: 0; padding: 0; }
.i-panneau ul a, .i-panneau a.i-panneau-lien { display: block; padding: 12px 0; border-bottom: 1px solid var(--filet); color: var(--encre); font-size: 18px; text-decoration: none; }
.i-panneau-contact { display: grid; gap: 12px; margin-top: 24px; }
.i-panneau a.i-panneau-tel { color: var(--vert-mefou); font-weight: 700; font-size: 18px; text-decoration: none; font-variant-numeric: tabular-nums; }

/* ---------- Bandeau d'appel (avant le pied de page) ---------- */
.i-appel { background: var(--gris-releve); color: var(--encre); padding: 48px 0; }
.i-appel-titre { margin: 0 0 8px; color: var(--vert-mefou); font-weight: 800; font-stretch: 75%; font-size: 30px; line-height: 1.05; }
.i-appel-texte { margin: 0 0 20px; font-size: 17px; line-height: 1.6; }
@media (min-width: 900px) { .i-appel-titre { font-size: 40px; } }

/* ---------- Pied de page ---------- */
.i-pied { background: var(--vert-mefou); color: var(--blanc); padding: 48px 0 24px; font-size: 16px; line-height: 1.6; }
.i-pied-grille { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .i-pied-grille { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .i-pied-grille { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } }
.i-pied-nom { margin: 0 0 8px; font-weight: 800; font-stretch: 75%; font-size: 24px; line-height: 1.1; }
.i-pied p { margin: 0 0 10px; }
.i-pied-titre { margin: 0 0 10px; font-weight: 600; font-size: 15px; color: var(--blanc); }
.i-pied ul { list-style: none; margin: 0; padding: 0; }
.i-pied li { margin: 0 0 6px; }
.i-pied a { color: #E6EFEA; text-decoration: none; transition: color .2s; }
.i-pied a:hover { text-decoration: underline; color: var(--blanc); }
.i-pied-bas { margin-top: 32px; }
.i-pied .i-pied-bas p { margin: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 15px; color: #E6EFEA; max-width: none; }
.i-nowrap, .i-pied a[href^="tel:"] { white-space: nowrap; }

/* ---------- Bouton flottant WhatsApp ---------- */
a.i-wa-flottant {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background-color .2s;
}
a.i-wa-flottant:hover { background: #1fbf5b; }
a.i-wa-flottant.i-wa-cache { display: none; }
.i-wa-flottant svg { width: 28px; height: 28px; fill: var(--vert-mefou); display: block; }

/* =================== Page d'accueil (body.i-page) =================== */
body.i-page { margin: 0; background: var(--blanc); color: var(--encre); font-size: 17px; line-height: 1.6; }
.i-page img { max-width: 100%; display: block; }
.i-page p { max-width: 70ch; }
.i-page h1, .i-page h2 { font-weight: 800; font-stretch: 75%; line-height: 1.05; color: var(--vert-mefou); margin: 0 0 16px; }
.i-page h1 { font-size: 40px; }
.i-page h2 { font-size: 34px; }
.i-page h3 { font-weight: 700; font-size: 20px; line-height: 1.25; margin: 0 0 6px; color: var(--vert-mefou); }
@media (min-width: 900px) { .i-page h1 { font-size: 64px; } .i-page h2 { font-size: 46px; } }
.i-section { padding: 56px 0; scroll-margin-top: 64px; }
@media (min-width: 900px) { .i-section { padding: 88px 0; } }
.i-gris { background: var(--gris-releve); }
.i-chiffre { font-weight: 700; font-stretch: 100%; font-variant-numeric: tabular-nums; }
.i-page a.i-lien { color: var(--vert-mefou); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.i-page a.i-lien:hover { color: var(--encre); }

/* A. Haut de page */
.i-haut { display: grid; grid-template-columns: 1fr; grid-template-areas: "photo" "panneau" "legende" "citable"; scroll-margin-top: 64px; }
.i-haut-photo { grid-area: photo; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.i-panneau-ocre { grid-area: panneau; position: relative; z-index: 1; margin: -48px 16px 0; padding: 28px; background: var(--ocre); color: var(--vert-mefou); border-radius: 0; }
.i-page .i-panneau-ocre h1 { color: var(--vert-mefou); margin-bottom: 12px; }
.i-sous-titre { margin: 0 0 20px; font-size: 19px; font-weight: 600; line-height: 1.4; }
.i-legende { grid-area: legende; margin: 12px 16px 0; font-size: 14px; color: var(--encre); }
.i-citable { grid-area: citable; margin: 24px 16px 0; font-size: 17px; color: var(--encre); }
@media (min-width: 900px) {
  .i-haut { max-width: 1200px; margin: 0 auto; padding: 48px 24px 0; column-gap: 48px; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "panneau photo" "citable photo" ". photo" ". legende"; }
  .i-haut-photo { aspect-ratio: auto; max-width: 690px; max-height: 560px; object-fit: cover; object-position: center 60%; justify-self: end; border-radius: 4px; }
  .i-panneau-ocre { margin: 0; padding: 40px; }
  .i-legende { margin: 10px 0 0; justify-self: end; max-width: 690px; width: 100%; }
  .i-citable { margin: 32px 0 0; }
}

/* B. Composeur */
.i-composeur-section { background: var(--vert-mefou); color: var(--blanc); }
.i-page .i-composeur-section h2 { color: var(--blanc); }
.i-composeur-section > .i-wrap > p { margin: 0 0 28px; }
.i-champs { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 24px; }
@media (min-width: 900px) { .i-champs { grid-template-columns: repeat(4, 1fr); } }
.i-champ[hidden] { display: none; }
.i-champ label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; color: var(--blanc); }
.i-champ select {
  width: 100%; min-height: 48px; padding: 10px 40px 10px 12px; border: 1px solid var(--filet); border-radius: 6px;
  background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E4B3B' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
  color: var(--encre); font-family: var(--i-police); font-size: 17px; -webkit-appearance: none; appearance: none;
}
.i-champ select[aria-invalid="true"] { border: 2px solid var(--ocre); }
.i-erreur { margin: 6px 0 0; color: var(--ocre); font-size: 15px; font-weight: 600; }
.i-erreur[hidden] { display: none; }

/* C. Biens à vendre */
.i-biens { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--filet); }
.i-biens li { border-bottom: 1px solid var(--filet); }
.i-page a.i-bien { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; padding: 20px 0; color: var(--encre); text-decoration: none; transition: background-color .2s; }
.i-page a.i-bien:hover { background: var(--gris-releve); }
.i-bien img { width: 112px; height: 112px; object-fit: cover; border-radius: 4px; }
.i-bien p { margin: 0 0 4px; }
.i-bien-lieu { font-weight: 600; color: var(--vert-mefou); }
.i-bien-prix { grid-column: 2; }
.i-pastille { display: inline-block; padding: 4px 10px; border-radius: 4px; background: var(--ocre); color: var(--vert-mefou); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.i-prix-note { display: block; margin-top: 6px; font-size: 15px; }
@media (min-width: 900px) {
  .i-page a.i-bien { grid-template-columns: 220px 1fr auto; gap: 28px; padding: 24px 12px 24px 0; }
  .i-bien img { width: 220px; height: 165px; }
  .i-bien-prix { grid-column: 3; text-align: right; }
}
.i-sous-liste { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }

/* D. Étapes d'achat */
.i-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .i-etapes { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.i-etape-num { display: block; font-weight: 800; font-stretch: 75%; font-size: 64px; line-height: 1; color: var(--vert-mefou); margin-bottom: 8px; }
.i-etapes p { margin: 0; }

/* E. Diaspora */
.i-diaspora { border-left: 6px solid var(--ocre); padding-left: 20px; }
.i-diaspora p { margin: 0 0 16px; }
@media (min-width: 900px) { .i-diaspora { padding-left: 32px; } .i-diaspora p { font-size: 22px; line-height: 1.5; } }

/* F. Location */
.i-location { background: var(--bleu-wouri); color: var(--blanc); }
.i-page .i-location h2 { color: var(--blanc); }
.i-location > .i-wrap > p { margin: 0 0 24px; }
.i-bande { display: flex; gap: 16px; list-style: none; margin: 0 0 24px; padding: 0 0 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.i-bande li { flex: 0 0 78%; scroll-snap-align: start; }
@media (min-width: 640px) { .i-bande li { flex-basis: 300px; } }
@media (min-width: 1100px) { .i-bande { overflow-x: visible; } .i-bande li { flex: 1 1 0; min-width: 0; } }
.i-page .i-bande a { display: block; color: var(--blanc); text-decoration: none; }
.i-bande img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 4px; margin-bottom: 12px; }
.i-bande p { margin: 0 0 4px; }
.i-bande-lieu { font-size: 15px; }
.i-bande-titre { font-weight: 700; font-size: 18px; line-height: 1.3; }
.i-page .i-bande a:hover .i-bande-titre { text-decoration: underline; }
.i-page .i-location a.i-lien { color: var(--blanc); }
.i-page .i-location a.i-lien:hover { color: #E6EFEA; }

/* G. Villes */
.i-villes { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .i-villes { grid-template-columns: minmax(0, 400px) 1fr; gap: 56px; } }
.i-carte svg { width: 100%; max-width: 400px; height: auto; display: block; }
.i-carte-txt { font-family: var(--i-police); font-size: 12px; fill: var(--encre); paint-order: stroke; stroke: #FFFFFF; stroke-width: 3px; stroke-linejoin: round; }
.i-carte a:hover .i-carte-txt { text-decoration: underline; }
.i-carte a:focus-visible { outline: none; }
.i-carte a:focus-visible circle { stroke: var(--ocre); stroke-width: 3; }
.i-carte-legende { margin: 12px 0 0; font-size: 15px; }
.i-liste-villes { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.i-liste-villes li { break-inside: avoid; padding: 6px 0; }

/* H. FAQ */
.i-faq details { border-bottom: 1px solid var(--filet); }
.i-faq details:first-of-type { border-top: 1px solid var(--filet); }
.i-faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 18px; color: var(--vert-mefou); }
.i-faq summary::-webkit-details-marker { display: none; }
.i-faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 26px; font-weight: 400; line-height: 1; }
.i-faq details[open] summary::after { content: "\2212"; }
.i-faq details p { margin: 0 0 20px; }

/* I. Bandeau final */
.i-final { background: var(--gris-releve); }
.i-final p { margin: 0 0 20px; }
