/* ==========================================================================
   Eleora — feuille de style unique
   Palette reprise de l'identité des logements :
   beige très clair, vert sauge, terracotta en accent, chêne clair.
   ========================================================================== */

:root {
  --sable:      #f7f4ef;
  --sable-2:    #efeae1;
  --creme:      #fffdfa;
  --encre:      #2b2a26;
  --encre-doux: #6a665e;
  --sauge:      #8a9a80;
  --sauge-fonce:#5f7057;
  --terracotta: #c0603c;
  --terracotta-fonce: #a44f2f;
  --chene:      #d8c3a0;
  --trait:      #e2dcd1;
  --ombre:      0 1px 2px rgba(43,42,38,.05), 0 8px 24px rgba(43,42,38,.06);
  --ombre-fort: 0 2px 4px rgba(43,42,38,.06), 0 16px 40px rgba(43,42,38,.10);
  --radius:     14px;
  --max:        1120px;
}

/* --- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--sable);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
a { color: var(--terracotta-fonce); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- en-tête ------------------------------------------------------------- */
header.top {
  background: var(--creme);
  border-bottom: 1px solid var(--trait);
  position: sticky; top: 0; z-index: 50;
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 68px;
}
.logo {
  font-family: Georgia, serif; font-size: 1.5rem; letter-spacing: .02em;
  color: var(--encre); text-decoration: none; font-weight: 600;
}
.logo span { color: var(--sauge-fonce); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--encre-doux); text-decoration: none; font-size: .95rem;
}
.nav a:hover { color: var(--encre); }

/* --- boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: .97rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  font-family: inherit; line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa   { background: #25d366; color: #08331b; }
.btn-wa:hover { background: #1fbe5b; }
.btn-1    { background: var(--terracotta); color: #fff; }
.btn-1:hover { background: var(--terracotta-fonce); }
.btn-2    { background: transparent; color: var(--encre); border-color: #cfc7b8; }
.btn-2:hover { background: var(--sable-2); }
.btn-3    { background: var(--sauge-fonce); color: #fff; }
.btn-3:hover { background: #4f6048; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- hero ---------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--creme), var(--sable));
  padding: 68px 0 54px;
  border-bottom: 1px solid var(--trait);
}
.hero h1 { max-width: 22ch; }
.hero .chapo {
  font-size: 1.15rem; color: var(--encre-doux); max-width: 60ch; margin-bottom: 26px;
}
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.badge {
  background: var(--creme); border: 1px solid var(--trait); border-radius: 999px;
  padding: 7px 15px; font-size: .88rem; color: var(--encre-doux);
}
.badge strong { color: var(--encre); font-weight: 600; }

/* --- sections ------------------------------------------------------------ */
section { padding: 58px 0; }
section.alt { background: var(--creme); border-block: 1px solid var(--trait); }
.section-titre { max-width: 62ch; margin-bottom: 34px; }
.section-titre p { color: var(--encre-doux); margin: 0; }

/* --- grille des logements ------------------------------------------------ */
.grille {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.carte {
  background: var(--creme); border: 1px solid var(--trait); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--ombre); display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-fort); }
.carte .visuel { aspect-ratio: 4/3; background: var(--sable-2); position: relative; overflow: hidden; }
.carte .visuel img { width: 100%; height: 100%; object-fit: cover; }
.carte .a-venir {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, var(--sable-2) 0 14px, #e8e2d7 14px 28px);
  color: var(--encre-doux); padding: 24px;
}
.carte .a-venir strong { display: block; color: var(--encre); font-size: 1rem; margin-bottom: 4px; }
.carte .a-venir span { font-size: .87rem; }
.carte .corps { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.carte h3 { margin-bottom: 4px; }
.carte .meta { color: var(--encre-doux); font-size: .9rem; margin-bottom: 12px; }
.carte .accroche { font-size: .96rem; margin-bottom: 16px; }
.carte .bas {
  margin-top: auto; display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding-top: 14px; border-top: 1px solid var(--trait);
}
.prix { font-family: Georgia, serif; font-size: 1.55rem; color: var(--encre); }
.prix small { font-size: .72rem; color: var(--encre-doux); font-family: inherit; display: block; }
.lien-fiche { font-weight: 600; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.lien-fiche::after { content: " →"; }

.puces { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; padding: 0; list-style: none; }
.puces li {
  font-size: .8rem; background: var(--sable-2); border-radius: 6px;
  padding: 4px 9px; color: var(--encre-doux);
}

/* --- listes d'équipements ------------------------------------------------ */
.liste-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.liste-check li { position: relative; padding-left: 30px; }
.liste-check li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--sauge);
}

/* --- proximité ----------------------------------------------------------- */
.proximite { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.proximite li {
  background: var(--sable); border: 1px solid var(--trait); border-radius: var(--radius);
  padding: 18px 20px;
}
.proximite b { display: block; font-family: Georgia, serif; font-size: 1.45rem; color: var(--sauge-fonce); }
.proximite em { font-style: normal; color: var(--encre-doux); font-size: .85rem; }
.proximite span { display: block; margin-top: 4px; font-size: .95rem; }

/* --- baux ---------------------------------------------------------------- */
.baux { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.bail {
  background: var(--sable); border: 1px solid var(--trait);
  border-left: 3px solid var(--sauge); border-radius: 10px; padding: 20px 22px;
}
.bail h3 { margin-bottom: 2px; }
.bail .duree { color: var(--terracotta-fonce); font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.bail p { margin: 0; font-size: .94rem; color: var(--encre-doux); }

/* --- fiche logement ------------------------------------------------------ */
.fiche-tete { padding: 42px 0 8px; }
.fil { font-size: .9rem; color: var(--encre-doux); margin-bottom: 16px; }
.fil a { color: var(--encre-doux); }

.galerie { display: grid; gap: 10px; grid-template-columns: 2fr 1fr; margin-bottom: 34px; }
.galerie a { display: block; border-radius: 10px; overflow: hidden; background: var(--sable-2); }
.galerie a:first-child { grid-row: span 2; }
.galerie img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.galerie a:first-child img { aspect-ratio: 4/3.05; }
.galerie-suite { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 34px; }
.galerie-suite a { border-radius: 10px; overflow: hidden; display: block; }
.galerie-suite img { aspect-ratio: 4/3; width: 100%; height: 100%; object-fit: cover; }

.fiche-corps { display: grid; gap: 44px; grid-template-columns: 1fr 340px; align-items: start; }

.encart {
  background: var(--creme); border: 1px solid var(--trait); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--ombre); position: sticky; top: 90px;
}
.encart .prix-gros { font-family: Georgia, serif; font-size: 2.3rem; line-height: 1; }
.encart .prix-sous { color: var(--encre-doux); font-size: .9rem; margin: 6px 0 18px; }
.encart dl { margin: 0 0 20px; font-size: .93rem; }
.encart dl div { display: flex; justify-content: space-between; gap: 14px;
  padding: 8px 0; border-bottom: 1px dashed var(--trait); }
.encart dl div:last-child { border-bottom: 0; }
.encart dt { color: var(--encre-doux); }
.encart dd { margin: 0; text-align: right; font-weight: 600; }
.encart .btns { flex-direction: column; }
.encart .btn { width: 100%; }

.piece { border-top: 1px solid var(--trait); padding: 18px 0; }
.piece:first-of-type { border-top: 0; padding-top: 0; }
.piece h3 { margin-bottom: 3px; }
.piece p { margin: 0; color: var(--encre-doux); }

.avis {
  background: #fdf6f1; border: 1px solid #f0d9cc; border-left: 3px solid var(--terracotta);
  border-radius: 10px; padding: 16px 20px; margin: 26px 0; font-size: .95rem;
}
.avis strong { color: var(--terracotta-fonce); }

/* --- formulaire ---------------------------------------------------------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.champ { display: grid; gap: 6px; }
.champ label { font-size: .92rem; font-weight: 600; }
.champ .aide { font-size: .82rem; color: var(--encre-doux); font-weight: 400; }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #d6cfc2; background: var(--creme); color: var(--encre); width: 100%;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: 2px solid var(--sauge); outline-offset: 1px; border-color: var(--sauge);
}
.champ textarea { min-height: 120px; resize: vertical; }
.duo { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--encre-doux); }
.consent input { width: auto; margin-top: 4px; }
.pot { position: absolute; left: -9999px; }

.alerte { border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; font-size: .95rem; }
.alerte-ok { background: #eef5ea; border: 1px solid #cfe0c5; }
.alerte-ko { background: #fdecec; border: 1px solid #f2cdcd; }

/* --- contact ------------------------------------------------------------- */
.contact-cols { display: grid; gap: 40px; grid-template-columns: 1fr 340px; align-items: start; }
.bloc-contact {
  background: var(--creme); border: 1px solid var(--trait); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--ombre);
}
.bloc-contact h3 { margin-bottom: 10px; }
.bloc-contact p { font-size: .93rem; color: var(--encre-doux); }
.tel-cache { font-family: Georgia, serif; font-size: 1.5rem; letter-spacing: .04em; }

/* --- bandeau final ------------------------------------------------------- */
.cta-final { background: var(--sauge-fonce); color: #f4f7f2; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #dfe8da; max-width: 54ch; margin-inline: auto; }
.cta-final .btns { justify-content: center; margin-top: 24px; }
.cta-final .btn-2 { color: #fff; border-color: rgba(255,255,255,.45); }
.cta-final .btn-2:hover { background: rgba(255,255,255,.12); }

/* --- pied ---------------------------------------------------------------- */
footer.bas {
  background: var(--encre); color: #b9b4a9; padding: 46px 0 30px; font-size: .9rem;
}
footer.bas a { color: #e6e1d6; text-decoration: none; }
footer.bas a:hover { text-decoration: underline; }
.bas-cols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bas-cols h4 { color: #fff; font-size: .95rem; margin: 0 0 10px; font-family: inherit; letter-spacing: .04em; text-transform: uppercase; }
.bas-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.copy { margin-top: 34px; padding-top: 20px; border-top: 1px solid #3d3b35; font-size: .84rem; }

/* --- pages légales ------------------------------------------------------- */
.texte-legal { max-width: 72ch; }
.texte-legal h2 { margin-top: 1.8em; font-size: 1.35rem; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .fiche-corps, .contact-cols { grid-template-columns: 1fr; }
  .encart { position: static; }
  .galerie { grid-template-columns: 1fr; }
  .galerie a:first-child { grid-row: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .hero { padding: 46px 0 38px; }
  .nav { gap: 16px; }
  .nav a.masq-mob { display: none; }
  .duo { grid-template-columns: 1fr; }
}

@media print {
  header.top, footer.bas, .cta-final, .btns { display: none; }
  body { background: #fff; }
}

/* --- encart aides au logement -------------------------------------------- */
.encart-caf {
  margin-top: 30px;
  background: #f0f4ed;
  border: 1px solid #d5e0cd;
  border-left: 3px solid var(--sauge-fonce);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.encart-caf h3 { margin-bottom: 6px; color: var(--sauge-fonce); }
.encart-caf p { color: var(--encre-doux); font-size: .96rem; margin-bottom: 16px; max-width: 66ch; }

/* --- identité de l'en-tête ----------------------------------------------- */
.logo { display: flex; flex-direction: column; line-height: 1.15; }
.logo-nom  { font-family: Georgia, serif; font-size: 1.28rem; font-weight: 600; color: var(--encre); }
.logo-sous { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .7rem;
             letter-spacing: .13em; text-transform: uppercase; color: var(--sauge-fonce); font-weight: 600; }

/* --- sur-titre du hero ---------------------------------------------------- */
.sur-titre {
  font-size: .82rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--sauge-fonce); font-weight: 600; margin-bottom: 14px;
}
.hero .chapo strong { color: var(--encre); }
