/* =========================================================
   Nomade Conciergerie — feuille de style
   Palette issue de l'identité visuelle
   ========================================================= */
:root {
  --cream: #fbede1;
  --cream-2: #f6e3d2;
  --paper: #fffaf4;
  --brown: #541f05;
  --brown-soft: #7a3a1a;
  --terra: #c2551a;
  --terra-dark: #9f4210;
  --sand: #e8c08f;
  --line: rgba(84, 31, 5, 0.14);
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(84, 31, 5, 0.45);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-dark); }
a:hover { color: var(--brown); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--alt { background: var(--paper); }
.section--pattern::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("assets/motif.svg") repeat; background-size: 240px; opacity: .28;
}
.section > .container { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--terra);
  margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--terra); }
.lead { font-size: 1.2rem; color: var(--brown-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terra); color: #fff; box-shadow: 0 10px 22px -12px var(--terra-dark); }
.btn--primary:hover { background: var(--terra-dark); color: #fff; }
.btn--ghost { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn--ghost:hover { background: var(--brown); color: var(--cream); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 237, 225, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--brown); }
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 1.55rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 600; font-size: .6rem; letter-spacing: .38em; margin-top: .3rem; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { text-decoration: none; color: var(--brown); font-weight: 500; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--terra); }
.nav .btn { padding: .6rem 1.2rem; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--brown); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 em { font-style: normal; color: var(--terra); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; padding: 0; margin: 2rem 0 0; font-size: .95rem; color: var(--brown-soft); }
.hero-badges li::before { content: "◆"; color: var(--terra); margin-right: .5rem; font-size: .7rem; vertical-align: .1em; }
.hero-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow); padding: 1.2rem; transform: rotate(1.5deg);
}
.hero-card img { border-radius: 18px; width: 100%; }

/* Cartes */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.section-head { margin-bottom: 3rem; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.section--alt .card { background: var(--cream); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brown); color: var(--sand);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.icon svg { width: 26px; height: 26px; }
.card p { color: var(--brown-soft); margin: 0; font-size: 1rem; }

/* Étapes */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.steps li { position: relative; padding-top: 4.2rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: var(--terra); color: #fff; display: grid; place-items: center;
  font: 800 1.4rem var(--serif);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.6rem; left: 4rem; right: -1rem; height: 0;
  border-top: 2px dashed var(--sand);
}
.steps p { color: var(--brown-soft); font-size: 1rem; margin: 0; }

/* Bandeau valeurs */
.values { background: var(--brown); color: var(--cream); }
.values h2 { color: var(--cream); }
.values .lead { color: var(--sand); }
.values .eyebrow { color: var(--sand); }
.values .eyebrow::before, .values .eyebrow::after { background: var(--sand); }
.value { border-top: 2px solid var(--terra); padding-top: 1.2rem; }
.value h3 { color: var(--sand); }
.value p { color: #f0d9c4; margin: 0; font-size: 1rem; }

/* Zone / tarifs */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--terra) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat;
}
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow);
}
.panel .big { font: 800 clamp(2.4rem, 5vw, 3.4rem) var(--serif); color: var(--terra); line-height: 1; margin-bottom: .4rem; }
.panel small { color: var(--brown-soft); }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.4rem; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem var(--sans); color: var(--terra); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--brown-soft); padding-bottom: 1.2rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon { width: 44px; height: 44px; margin: 0; flex: none; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list a { color: var(--brown); font-weight: 600; }
.contact-list span { display: block; font-size: .85rem; color: var(--brown-soft); }

form.contact { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { font-weight: 600; font-size: .95rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--brown); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(194, 85, 26, .18); }
textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--brown-soft); font-weight: 400; }
.consent input { width: auto; margin-top: .25rem; accent-color: var(--terra); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--brown-soft); margin: 0; }
.alert { border-radius: 12px; padding: 1rem 1.2rem; font-weight: 500; margin-bottom: 1.2rem; }
.alert--ok { background: #e6f0df; color: #2d4a1b; border: 1px solid #b9d3a6; }
.alert--err { background: #fbe3dc; color: #7a1f0b; border: 1px solid #efb7a8; }

/* Pied de page */
.site-footer { background: var(--brown); color: #f0d9c4; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: var(--sand); font-size: 1rem; letter-spacing: .15em; text-transform: uppercase; font-family: var(--sans); }
.site-footer a { color: #f0d9c4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-brand { font: 800 1.8rem var(--serif); color: var(--cream); margin-bottom: .6rem; }
.footer-bottom { border-top: 1px solid rgba(232, 192, 143, .25); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }

/* Pages légales */
.legal { padding: 4rem 0 5rem; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.todo { background: #fff1c9; padding: 0 .3em; border-radius: 4px; }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; margin-inline: auto; transform: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.2rem;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; border: 0; justify-content: center; }
}
@media (max-width: 560px) {
  .grid--3, .grid--2, .steps, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* Lien d'évitement (accessibilité clavier) */
.skip { position: absolute; left: -9999px; top: 0; background: var(--brown); color: var(--cream); padding: .8rem 1.2rem; z-index: 100; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
