/*
Theme Name: Maison Limousin
Description: Thème sur mesure pour l'annonce de vente d'une grande maison en pierre en Haute-Vienne.
Version: 1.0.1
Text Domain: maison-limousin
*/

:root {
  --creme: #f7f2e9;
  --creme-fonce: #ece3d2;
  --pierre: #8c7b64;
  --encre: #2b2a26;
  --vert: #3f5a3c;
  --vert-clair: #e3ebdc;
  --terre: #b5603a;
  --blanc: #fffdf9;
  --rayon: 14px;
  --ombre: 0 10px 30px rgba(43, 42, 38, .14);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--vert); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: var(--blanc); }
.surtitre { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--terre); font-weight: 700; margin-bottom: .6rem; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(247, 242, 233, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--creme-fonce); }
.entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.marque { text-decoration: none; color: var(--encre); font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.15; }
.marque small { display: block; font-family: var(--sans); font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pierre); }
.menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.menu a { display: block; padding: 8px 14px; border-radius: 99px; text-decoration: none; color: var(--encre); font-size: .95rem; }
.menu a:hover { background: var(--creme-fonce); }
.menu .actif a, .menu a[aria-current="page"] { background: var(--vert); color: #fff; }

/* Hero */
.hero { position: relative; min-height: clamp(460px, 78vh, 760px); display: flex; align-items: flex-end; color: #fff; background: #3a3a34 center 42% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.66) 100%); }
.hero .wrap { position: relative; padding-block: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.8rem); margin-bottom: .25em; text-shadow: 0 2px 18px rgba(0,0,0,.35); max-width: 16ch; }
.hero p { margin: 0; font-size: 1.1rem; opacity: .95; }
.pastille { background: var(--terre); color: #fff; border-radius: 999px; padding: 18px 30px; text-align: center; box-shadow: var(--ombre); transform: rotate(-3deg); border: 3px solid rgba(255,255,255,.85); }
.pastille small { display: block; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; opacity: .92; }
.pastille strong { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1; }

/* Chiffres clés */
.chiffres { margin-top: -38px; position: relative; z-index: 2; }
.chiffres ul { list-style: none; margin: 0; padding: 22px 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); }
.chiffres li { text-align: center; padding: 6px 10px; }
.chiffres strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--vert); line-height: 1.15; }
.chiffres span { font-size: .88rem; color: var(--pierre); }

/* Atouts */
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 28px; }
.atout { background: var(--blanc); border: 1px solid var(--creme-fonce); border-radius: var(--rayon); padding: 24px; }
.section--alt .atout { background: var(--creme); }
.atout .pic { width: 44px; height: 44px; border-radius: 12px; background: var(--vert-clair); color: var(--vert); display: grid; place-items: center; margin-bottom: 14px; }
.atout .pic svg { width: 24px; height: 24px; }
.atout p { margin: 0; color: #4d4a42; }

/* Carrousel */
.carrousel { position: relative; }
.piste { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.piste::-webkit-scrollbar { display: none; }
.piste figure { margin: 0; flex: 0 0 min(78%, 620px); scroll-snap-align: center; border-radius: var(--rayon); overflow: hidden; background: var(--creme-fonce); cursor: zoom-in; }
.piste img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.piste figcaption { padding: 10px 14px; font-size: .9rem; color: var(--pierre); background: var(--blanc); }
.fleche { position: absolute; top: calc(50% - 30px); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,253,249,.94); box-shadow: var(--ombre); cursor: pointer; font-size: 1.4rem; color: var(--encre); }
.fleche:hover { background: #fff; }
.fleche--g { left: 8px; } .fleche--d { right: 8px; }
.points { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.points button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--creme-fonce); cursor: pointer; }
.points button[aria-current="true"] { background: var(--vert); width: 24px; border-radius: 99px; }

/* Visionneuse */
.visio { position: fixed; inset: 0; background: rgba(20, 19, 17, .92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.visio.ouverte { display: flex; }
.visio img { max-height: 88vh; max-width: 94vw; border-radius: 8px; }
.visio button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; }

/* Boutons */
.bouton { display: inline-block; background: var(--vert); color: #fff; text-decoration: none; padding: 14px 28px; border-radius: 99px; font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; }
.bouton:hover { background: #31472f; }
.bouton--terre { background: var(--terre); } .bouton--terre:hover { background: #9a4f2d; }
.appel { text-align: center; background: var(--vert); color: #fff; }
.appel h2 { color: #fff; } .appel p { max-width: 56ch; margin: 0 auto 1.4em; opacity: .93; }
.appel .bouton { background: #fff; color: var(--vert); }

/* Pages intérieures */
.titre-page { padding: clamp(40px, 6vw, 72px) 0 12px; }
.titre-page h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: .3em; }
.titre-page p { color: var(--pierre); max-width: 60ch; margin: 0; }
.deux { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.piece { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--creme-fonce); }
.piece span:last-child { font-weight: 600; white-space: nowrap; }
.carte { background: var(--blanc); border: 1px solid var(--creme-fonce); border-radius: var(--rayon); padding: 26px; }
.carte + .carte { margin-top: 18px; }
.dpe { display: flex; align-items: center; gap: 14px; }
.dpe b { width: 54px; height: 54px; border-radius: 12px; background: #e8863b; color: #fff; display: grid; place-items: center; font: 700 1.8rem var(--serif); }
.attention { background: #fbefe6; border-left: 4px solid var(--terre); border-radius: 8px; padding: 14px 18px; }
.attention ul { margin: .4em 0 0; padding-left: 1.2em; }

/* Formulaire */
.formulaire { display: grid; gap: 16px; }
.formulaire .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.formulaire label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.formulaire input, .formulaire select, .formulaire textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #d7ccb7; border-radius: 10px; background: #fff; color: var(--encre); }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 3px solid var(--vert-clair); border-color: var(--vert); }
.formulaire textarea { min-height: 140px; resize: vertical; }
.piege { position: absolute; left: -9999px; }
.message { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; }
.message--ok { background: var(--vert-clair); color: #26401f; }
.message--ko { background: #f9dfd4; color: #6b2c14; }
.note { font-size: .86rem; color: var(--pierre); }

/* Pied de page */
.pied { background: #26251f; color: #cfc8b8; padding: 36px 0; font-size: .92rem; }
.pied .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pied a { color: #fff; }

@media (max-width: 820px) {
  .deux { grid-template-columns: 1fr; }
  .formulaire .duo { grid-template-columns: 1fr; }
  .piste figure { flex-basis: 88%; }
  .fleche { display: none; }
  .pastille { transform: none; }
}
