/* ==========================================================
   KeyUp! – feuille de style
   Palette : orange #FF7518 / charbon #1A1A1A / crème chaud
   ========================================================== */

:root {
  --orange: #FF7518;
  --orange-hover: #FF8A3C;
  --orange-text: #B84A08;      /* orange foncé : texte lisible (contraste AA) */
  --ink: #1A1A1A;
  --ink-soft: #4A413B;
  --muted: #5E534C;
  --cream: #FFF8F1;
  --peach: #FFE9D8;
  --white: #FFFFFF;
  --line: #EBD9CA;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(90, 40, 5, .25);
  --shadow-lg: 0 24px 50px -20px rgba(90, 40, 5, .35);

  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--orange-text); }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .8em 1.6em;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(255, 117, 24, .8); }
.btn-primary:hover { background: var(--orange-hover); box-shadow: 0 14px 28px -10px rgba(255, 117, 24, .9); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); }
.btn-sm { min-height: 42px; padding: .55em 1.2em; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 241, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(90, 40, 5, .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 44px; height: auto; }
.brand-word { width: 118px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav ul a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; padding: 8px 2px; position: relative;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav ul a:hover::after, .main-nav ul a.active::after { transform: scaleX(1); }

.burger {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  border-radius: 12px; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 24px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(255, 117, 24, .16), transparent 65%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }

.eyebrow {
  display: inline-block; margin: 0 0 1rem; padding: .35em .9em;
  font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-text); background: var(--peach); border-radius: 999px;
}
.eyebrow-light { color: var(--orange); background: rgba(255, 117, 24, .14); }

.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); margin-bottom: .45em; line-height: 1.02; }
.hl { color: var(--orange-text); font-style: italic; position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .18em; background: var(--orange); opacity: .35; border-radius: 99px; z-index: -1;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.8rem 0 1rem; }
.microcopy { font-size: .92rem; color: var(--muted); margin: 0; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.blob {
  position: absolute; inset: 6%; background: var(--peach);
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  animation: morph 14s ease-in-out infinite alternate;
}
.hero-icon { position: relative; width: 68%; filter: drop-shadow(0 18px 24px rgba(184, 74, 8, .25)); animation: floaty 7s ease-in-out infinite; }
.chip {
  position: absolute; background: var(--white); color: var(--ink); font-weight: 800; font-size: .92rem;
  padding: .55em 1.1em; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}
.chip::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); margin-right: .55em; }
.chip-1 { top: 8%; left: -2%; animation-delay: -1s; }
.chip-2 { top: 46%; right: -4%; animation-delay: -3s; }
.chip-3 { bottom: 8%; left: 6%; animation-delay: -2s; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes morph {
  0% { border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; }
  100% { border-radius: 44% 56% 42% 58% / 56% 44% 56% 44%; }
}

/* ---------- Bandeau confiance ---------- */
.trust { background: var(--ink); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.trust-item { padding: 28px 28px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid rgba(255, 255, 255, .14); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { color: var(--orange); font-size: 1.08rem; }
.trust-item span { color: #E4DAD2; font-size: .98rem; line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 9vw, 112px) 0; }
.section-tinted { background: var(--peach); background: linear-gradient(180deg, #FFEEDF, #FFE9D8); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.section-intro { font-size: 1.12rem; color: var(--ink-soft); }

/* Piliers */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); border-top: 5px solid var(--orange); }
.pillar-num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--orange-text); opacity: .55; line-height: 1; margin-bottom: 14px; }
.pillar h3 { font-size: 1.35rem; }
.pillar p { margin: 0; }

/* Offres */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.offer {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow); border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.offer:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.offer-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--peach); color: var(--orange-text); display: grid; place-items: center; margin-bottom: 20px; }
.offer-icon svg { width: 34px; height: 34px; }
.offer-kicker { font-weight: 800; font-size: .88rem; letter-spacing: .05em; text-transform: uppercase; color: var(--orange-text); margin-bottom: .4rem; }
.offer h3 { font-size: 1.55rem; }
.checks { margin: 0 0 1.2rem; display: grid; gap: .55rem; }
.checks li { position: relative; padding-left: 30px; font-size: .99rem; line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 20px; height: 20px; border-radius: 50%; background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm4.7 7.3l-5.5 6a1 1 0 01-1.4.1l-2.6-2.3 1.3-1.5 1.8 1.6 4.8-5.2 1.6 1.3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm4.7 7.3l-5.5 6a1 1 0 01-1.4.1l-2.6-2.3 1.3-1.5 1.8 1.6 4.8-5.2 1.6 1.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.offer-format { font-size: .95rem; color: var(--muted); padding-top: 1rem; border-top: 1px dashed var(--line); margin-top: auto; }
.offer .btn { align-self: flex-start; }

/* Etapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.step { position: relative; padding-top: 8px; }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); color: var(--ink); font-weight: 800; font-size: 1.4rem; margin-bottom: 18px;
  box-shadow: 0 8px 18px -8px rgba(255, 117, 24, .9); position: relative; z-index: 1;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; left: 66px; right: -20px; height: 0; border-top: 3px dotted var(--orange); opacity: .55;
}
.step h3 { font-size: 1.2rem; }
.step p { font-size: .98rem; margin: 0; }

/* A propos */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.photo-frame {
  aspect-ratio: 4 / 5; border-radius: 38% 62% 44% 56% / 46% 40% 60% 54%;
  background: linear-gradient(135deg, #FFD3B0, #FFB27A); display: grid; place-items: center; align-content: center; gap: 10px;
  color: var(--ink); font-weight: 800; box-shadow: var(--shadow-lg); max-width: 400px; margin-inline: auto;
}
.photo-frame img { width: 96px; opacity: .9; }
.about-text h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }

/* Temoignages */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; background: var(--white); border-radius: var(--radius); padding: 36px 28px 28px; box-shadow: var(--shadow); position: relative; }
.quote::before { content: "“"; position: absolute; top: -6px; left: 22px; font-size: 5.5rem; line-height: 1; font-weight: 800; color: var(--orange); }
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote figcaption { font-size: .92rem; font-weight: 700; color: var(--ink); }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq details { background: var(--white); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: 0 4px 14px -10px rgba(90, 40, 5, .4); border: 2px solid transparent; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--orange); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 800; color: var(--ink); position: relative; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--peach); color: var(--orange-text);
  display: grid; place-items: center; font-size: 1.4rem; line-height: 1; transition: transform .25s ease, background-color .2s ease;
}
.faq details[open] summary::after { content: "–"; background: var(--orange); color: var(--ink); }
.faq details p { padding: 0 24px 22px; margin: 0; }

/* Contact */
.contact { background: var(--ink); color: #E4DAD2; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 117, 24, .28), transparent 68%); pointer-events: none;
}
.contact h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-logo { width: 150px; margin-bottom: 28px; }
.contact-list { display: grid; gap: 10px; margin-top: 1.4rem; }
.contact-list li { display: flex; gap: 12px; align-items: center; color: #fff; }
.contact-list li > span:first-child { color: var(--orange); font-size: 1.2rem; width: 1.4em; text-align: center; }

.form { background: var(--white); color: var(--ink-soft); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; color: var(--ink); margin-bottom: 6px; font-size: .98rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream);
  border: 2px solid var(--line); border-radius: var(--radius-sm); padding: .75em 1em; min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(255, 117, 24, .25); }
.field .invalid { border-color: #B3261E; }
.error { color: #B3261E; font-size: .9rem; font-weight: 700; margin: 6px 0 0; min-height: 0; }
.field-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--orange); }
.field-check label { font-weight: 600; font-size: .92rem; margin: 0; color: var(--ink-soft); }
.field-check .error { grid-column: 2; }
.form-status { margin: 14px 0 0; font-weight: 800; text-align: center; min-height: 1.5em; }
.form-status.ok { color: #1D6B3A; }

/* Footer */
.site-footer { background: #111; color: #CFC6BF; padding: 36px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: auto; }
.footer-brand strong { display: block; color: #fff; font-size: 1.1rem; line-height: 1.2; }
.footer-brand span { font-size: .88rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: #E4DAD2; text-decoration: none; padding: 6px 0; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.copy { margin: 0; width: 100%; font-size: .85rem; opacity: .75; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; }

/* Marqueurs "à compléter" (version de proposition) */
.todo { background: #FFF1A8; color: #5A4300; padding: 0 .35em; border-radius: 6px; font-style: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.todo-block { display: block; padding: .6em .9em; border: 2px dashed #D9B800; }
.contact .todo { background: rgba(255, 241, 168, .16); color: #FFE98A; }

/* Page mentions légales */
.legal { padding: clamp(40px, 7vw, 80px) 0; max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }

/* ---------- Animation d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .08s; }
.js .reveal:nth-child(3) { transition-delay: .16s; }
.js .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .offers { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .step:nth-child(2)::after { display: none; }
  .quotes { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .burger { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 8px; padding: 18px 20px 26px;
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -20px rgba(90, 40, 5, .4);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .main-nav ul a::after { display: none; }
  .nav-cta { margin-top: 10px; min-height: 52px; font-size: 1rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; margin-top: 8px; }
  .hero-text { text-align: left; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding: 20px 0; }
  .trust-item:first-child { border-top: 0; }
  .pillars { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .photo-frame { max-width: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  body { font-size: 1rem; }
  .container { width: min(1160px, 100% - 32px); }
  .brand-word { width: 100px; }
  .brand-icon { width: 38px; }
  .cta-row .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .chip { font-size: .8rem; }
  .chip-2 { right: -2%; }
  .offer { padding: 28px 22px; }
  .offer .btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
