/* COSMO État des Lieux — charte reprise de la plaquette tarifaire */
:root {
  --green: #1c4a3e;
  --green-dark: #143a30;
  --gold: #c8a97a;
  --gold-text: #8a6d3b;
  --navy: #2b3e8c;
  --cream: #f6f1e9;
  --teal: #0e7c7b;
  --teal-light: #e3efec;
  --text: #2c3e50;
  --muted: #5d6b78;
  --line: #e6e2da;
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --label: "Montserrat", Arial, sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--serif); color: var(--green); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
h3 { font-family: var(--label); font-size: 1rem; font-weight: 700; }
.container { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.eyebrow { font-family: var(--label); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
.bar { display: flex; gap: 6px; margin: .2rem 0 1.6rem; }
.bar::before { content: ""; width: 46px; height: 3px; background: var(--gold); }
.bar::after { content: ""; width: 16px; height: 3px; background: var(--navy); }
.center { text-align: center; }
.center .bar { justify-content: center; }
section { padding: 5rem 0; }

/* Header */
.site-header { background: var(--green); color: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { font-family: var(--label); font-weight: 700; letter-spacing: .25em; color: #fff; text-decoration: none; font-size: .95rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-family: var(--label); font-size: .82rem; font-weight: 600; color: #e8dfcf; text-decoration: none; letter-spacing: .04em; }
.nav a:hover { color: var(--gold); }
.btn { display: inline-block; font-family: var(--label); font-weight: 600; font-size: .92rem; padding: .85rem 1.6rem; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: #fff !important; }
.btn-teal:hover { background: #0b6a69; }
.btn-gold { background: var(--gold); color: var(--green) !important; }
.btn-ghost { border: 1px solid var(--gold); color: var(--gold) !important; background: transparent; }
.btn { white-space: nowrap; }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .nav .btn { padding: .6rem 1rem; font-size: .76rem; }
  .brand { letter-spacing: .12em; font-size: .8rem; }
}

/* Hero — fond vert à bas arrondi, comme la couverture de la plaquette */
.hero { background: var(--green); color: #fff; text-align: center; padding: 4.5rem 0 7rem; border-radius: 0 0 50% 50% / 0 0 90px 90px; position: relative; overflow: hidden; }
.hero .inner { position: relative; }
.hero .tagline { font-style: italic; color: var(--gold); margin: .2rem 0 2.2rem; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); }
.hero .rule { width: 60px; height: 3px; background: var(--gold); margin: 1.4rem auto; }
.hero p.lead { color: #e8dfcf; max-width: 560px; margin: 0 auto 2rem; font-size: 1.1rem; }
.hero .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Engagements */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; }
.pillar { text-align: center; }
.pillar::before { content: ""; display: block; width: 46px; height: 3px; background: var(--gold); margin: 0 auto 1rem; }
.pillar p { color: var(--muted); margin: 0; }

/* Prestations */
.bg-cream { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--line); }
.card h3 { color: var(--green); margin-bottom: .4rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Tarifs */
.table-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 3rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
thead th { background: var(--green); color: #fff; font-family: var(--label); font-size: .82rem; font-weight: 600; padding: 1.1rem 1rem; text-align: center; }
thead th:first-child, tbody td:first-child { text-align: left; padding-left: 1.4rem; }
tbody td { padding: 1rem; border-top: 1px solid var(--line); text-align: center; }
tbody td:first-child { font-family: var(--label); font-weight: 600; font-size: .9rem; color: var(--green); }
tbody tr.highlight { background: var(--cream); }
.pill { display: inline-block; background: var(--teal-light); color: var(--teal); font-weight: 700; padding: .25rem .9rem; border-radius: 999px; }
.note { color: var(--muted); font-size: .9rem; text-align: center; }

/* Étapes */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.step { position: relative; padding: 1.6rem 1.6rem 1.6rem 4.4rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 1.4rem; top: 1.5rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--label); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Contacts */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin: 2rem 0 1.6rem; }
.contact { background: var(--cream); border-radius: var(--radius); padding: 2rem; text-align: center; }
.contact h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin-bottom: .3rem; }
.contact .phone { font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: .03em; }

/* CTA band */
.cta { background: var(--green); color: #e8dfcf; text-align: center; border-radius: 50% 50% 0 0 / 90px 90px 0 0; padding: 6rem 0 4.5rem; }
.cta h2 { color: #fff; }

/* Footer */
.site-footer { background: var(--green-dark); color: #b9c4bf; font-size: .88rem; padding: 2.2rem 0; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--gold); }

/* Page header (pages internes) */
.page-head { background: var(--green); color: #fff; text-align: center; padding: 3.5rem 0 5rem; border-radius: 0 0 50% 50% / 0 0 70px 70px; }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-head p { color: #e8dfcf; max-width: 620px; margin: 0 auto; }

/* Formulaire */
.form { max-width: 820px; margin: -2.5rem auto 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 2.4rem; box-shadow: 0 20px 50px -30px rgba(20, 58, 48, .35); position: relative; }
fieldset { border: 0; padding: 0; margin: 0 0 2.2rem; }
legend { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--green); margin-bottom: .2rem; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
label, .label { font-family: var(--label); font-size: .78rem; font-weight: 600; color: var(--green); letter-spacing: .02em; }
.req { color: var(--teal); }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--text); padding: .75rem .9rem; border: 1px solid #d6d1c6; border-radius: 10px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
textarea { min-height: 120px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span { display: inline-block; padding: .55rem 1rem; border: 1px solid #d6d1c6; border-radius: 999px; font-size: .95rem; cursor: pointer; transition: all .15s; }
.choice input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: auto; margin-top: .3rem; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.status { border-radius: 12px; padding: 1rem 1.2rem; margin-top: 1.4rem; display: none; }
.status.ok { display: block; background: var(--teal-light); color: var(--green); }
.status.err { display: block; background: #fbeaea; color: #8a2c2c; }
@media (max-width: 760px) { .form { padding: 1.6rem 1.2rem; } }

/* Mentions légales */
.prose { max-width: 820px; margin: 3rem auto; }
.prose h2 { font-size: 1.7rem; margin-top: 2rem; }
