/* robvalley.fr : feuille de style unique, sans framework. Identité reprise de l'ancien site :
   fond clair, texte quasi noir, jaune-vert Rob Valley, touche pêche ; Kumbh Sans + Nunito. */

@font-face {
  font-family: "Kumbh Sans";
  src: url("../fonts/kumbh-sans-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #f9f9f8;
  --bg-alt: #f1efe9;
  --surface: #ffffff;
  --ink: #130a17;
  --text: #3d3742;
  --muted: #6b6570;
  --line: #e4e1da;
  --accent: #dbd420;
  --accent-hover: #c9c214;
  --peach-1: #f8b595;
  --peach-2: #f2907f;
  --dark: #17111a;
  --dark-text: #d9d4dc;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(19, 10, 23, 0.35);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-head: "Kumbh Sans", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--accent); vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.eyebrow-light { color: #fff; }
.lead { font-size: 1.2rem; color: var(--ink); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(249, 249, 248, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand img { width: 104px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-cta { min-height: 44px; padding: 0 20px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; transition: transform .2s, opacity .2s; }
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile : menu dépliant avec JavaScript, simple liste sous le logo sans */
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 20px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .js .nav-toggle { display: block; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .js .site-nav.is-open { display: flex; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding-top: clamp(32px, 5vw, 56px); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--dark-text); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: var(--dark-text); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-reverse .split-media { order: -1; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.media-tall { aspect-ratio: 4 / 5; max-height: 640px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .media-tall { aspect-ratio: 4 / 3; }
}

/* Accueil : bandeau */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19, 10, 23, .55) 0%, rgba(19, 10, 23, .2) 55%, rgba(19, 10, 23, 0) 80%), linear-gradient(180deg, rgba(19, 10, 23, .1) 0%, rgba(19, 10, 23, .3) 45%, rgba(19, 10, 23, .8) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; max-width: 15em; }
.hero-lead { font-size: 1.2rem; max-width: 34em; color: rgba(255, 255, 255, .92); }

/* Pastille pêche « Résident 190 € » */
.media-badge { position: relative; }
.badge-circle {
  position: absolute; top: -34px; left: -34px; width: 168px; height: 168px; margin: 0;
  border-radius: 50%; background: linear-gradient(135deg, var(--peach-1), var(--peach-2));
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--ink); line-height: 1.15; font-size: 0.85rem; box-shadow: var(--shadow);
}
.badge-circle strong { font-family: var(--font-head); font-size: 2rem; }
.badge-small { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
@media (max-width: 600px) { .badge-circle { width: 132px; height: 132px; top: -24px; left: -8px; font-size: .78rem; } .badge-circle strong { font-size: 1.6rem; } }

/* Listes à coches */
.checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23130a17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 24px; }
@media (max-width: 600px) { .cols-2 { grid-template-columns: 1fr; } }

/* Cartes */
.cards { display: grid; gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } .cards-3 { grid-template-columns: 1fr; max-width: 640px; } }
@media (max-width: 600px) { .cards-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 22px 22px 8px; }
.card-body p { color: var(--muted); font-size: 1rem; }

/* Offres */
.price-card { background: #231b27; border: 1px solid #352c3a; border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.price-card .checklist { margin-bottom: 28px; flex: 1; }
.price-card .btn { align-self: flex-start; }
.price-card-featured { background: #2c2231; border-color: var(--accent); }
.price { color: var(--dark-text); margin-bottom: 0; }
.price strong { font-family: var(--font-head); font-size: 2.6rem; color: #fff; line-height: 1.1; }
.price span { font-size: .95rem; }
.price .price-from { display: block; margin-bottom: 2px; }

/* Avis */
.testimonial { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; }
.testimonial blockquote { margin: 0 0 24px; font-size: 1rem; }
.testimonial blockquote::before { content: "“"; display: block; font-family: var(--font-head); font-size: 3.4rem; line-height: .8; color: var(--peach-2); margin-bottom: 4px; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--muted); }
.testimonial figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1rem; }

/* Coordonnées */
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 14px; }
.contact-list span { display: block; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Pages intérieures */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 0; }
.page-hero h1 { max-width: 16em; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }

/* Formulaire */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-title { font-size: 1.6rem; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.req { color: #b4232a; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 50px;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(219, 212, 32, .55); }
.field [aria-invalid="true"] { border-color: #b4232a; }
.field-error { color: #b4232a; font-size: .92rem; margin: 6px 0 0; }
.form-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 10px; padding: 16px 18px; margin-bottom: 22px; }
.notice p:last-child { margin-bottom: 0; }
.notice-error { background: #fbeaea; color: #7c1d22; }
.notice-ok { background: #f3f6d6; color: var(--ink); }
.notice-ok h2 { font-size: 1.5rem; }
.aside-photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Pied de page */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 64px 0 28px; font-size: .98rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 104px; margin-bottom: 18px; }
.footer-title { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #352c3a; margin-top: 40px; padding-top: 22px; font-size: .9rem; }
.footer-bottom p { margin: 0; }
