/* ===================================================================
   Artivea — Feuille de style
   Palette : terre cuite (chaleur / matière), bleu ardoise (confiance),
   crème sable (douceur), ambre (accent lumineux)
   =================================================================== */

:root {
  --terracotta: #c4562d;
  --terracotta-dark: #a8451f;
  --terracotta-soft: #e88a5f;
  --amber: #e5a24a;
  --slate: #2a3644;
  --slate-deep: #1d2732;
  --slate-soft: #556170;
  --cream: #fbf6ef;
  --cream-2: #f4ece0;
  --sand: #efe4d4;
  --white: #ffffff;
  --ink: #26303a;

  --radius: 16px;
  --radius-lg: 26px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(42, 54, 68, .06);
  --shadow: 0 14px 40px rgba(42, 54, 68, .10);
  --shadow-lg: 0 30px 70px rgba(42, 54, 68, .16);
  --maxw: 1140px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--slate-deep); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.24rem; }
p { color: var(--slate-soft); }
a { color: inherit; text-decoration: none; }

.accent { color: var(--terracotta); position: relative; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--amber); }

/* ===== Boutons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(196, 86, 45, .32);
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(196, 86, 45, .38); }
.btn-ghost { background: transparent; color: var(--slate-deep); border-color: var(--sand); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 239, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 54, 68, .07);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; color: var(--slate-deep); letter-spacing: -.02em; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { font-weight: 500; font-size: .96rem; color: var(--slate-soft); transition: color .2s; }
.main-nav a:hover { color: var(--terracotta); }
.header-cta { margin-left: 4px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--slate-deep); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(80px, 10vw, 130px); background: radial-gradient(1100px 520px at 78% -8%, rgba(229, 162, 74, .20), transparent 60%), radial-gradient(900px 500px at 8% 8%, rgba(196, 86, 45, .10), transparent 55%), var(--cream); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-text .lead { font-size: 1.18rem; color: var(--slate-soft); max-width: 34ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-reassure { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; font-size: .92rem; font-weight: 500; color: var(--slate); }
.hero-reassure li { white-space: nowrap; }

/* Mockup navigateur */
.hero-visual { position: relative; }
.mock-browser {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.2deg);
  transition: transform .5s var(--ease);
}
.hero-visual:hover .mock-browser { transform: rotate(0); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; background: var(--cream-2); border-bottom: 1px solid var(--sand); }
.mock-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #d9c8b3; }
.mock-bar > span:nth-child(1) { background: #e8785a; }
.mock-bar > span:nth-child(2) { background: #e5b24a; }
.mock-bar > span:nth-child(3) { background: #7bbd8f; }
.mock-url { margin-left: 12px; flex: 1; background: var(--white); border-radius: 100px; font-size: .74rem; color: var(--slate-soft); padding: 5px 14px; font-weight: 500; }
.mock-screen { padding: 26px; background: linear-gradient(180deg, #fff, var(--cream)); }
.mock-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--slate-deep), var(--slate)); border-radius: var(--radius); padding: 26px; color: #fff; }
.mock-hero > *:not(.mock-art) { position: relative; z-index: 1; }
.mock-badge { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 16px; }
.mock-line { height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .28); margin-bottom: 10px; }
.mock-line.w80 { width: 80%; } .mock-line.w60 { width: 55%; }
.mock-btn { width: 120px; height: 30px; border-radius: 100px; background: var(--amber); margin-top: 18px; }

/* Éléments abstraits dans l'encadré sombre */
.mock-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.art-blob { position: absolute; border-radius: 50%; filter: blur(6px); }
.art-blob-1 { width: 120px; height: 120px; top: -34px; right: -26px;
  background: radial-gradient(circle at 30% 30%, var(--terracotta-soft), transparent 70%); opacity: .55;
  animation: artDrift 9s ease-in-out infinite; }
.art-blob-2 { width: 90px; height: 90px; bottom: -30px; left: 30%;
  background: radial-gradient(circle at 50% 50%, var(--amber), transparent 70%); opacity: .35;
  animation: artDrift 11s ease-in-out infinite reverse; }
.art-ring { position: absolute; width: 74px; height: 74px; bottom: 14px; right: 18px;
  border: 2px solid rgba(255, 255, 255, .18); border-radius: 50%; }
.art-ring::after { content: ""; position: absolute; inset: 12px; border-radius: 50%;
  border: 2px dashed rgba(229, 162, 74, .5); }
.art-grid { position: absolute; top: 20px; right: 22px; width: 46px; height: 46px;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1.4px, transparent 1.4px);
  background-size: 11px 11px; opacity: .6; }
@keyframes artDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-8px, 6px); } }

.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.mock-card { position: relative; overflow: hidden; height: 62px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--sand); display: flex; flex-direction: column; justify-content: space-between; padding: 11px; }
.card-art { display: block; }
.card-line { display: block; height: 6px; width: 70%; border-radius: 4px; background: var(--sand); }
/* Arc terre cuite */
.card-art-arc { width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(from 140deg, var(--terracotta), var(--terracotta-soft) 60%, transparent 60%); }
/* Triangle ambre */
.card-art-tri { width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 19px solid var(--amber); border-radius: 2px; }
/* Points ardoise */
.card-art-dots { width: 24px; height: 16px;
  background-image: radial-gradient(var(--slate) 2.4px, transparent 2.6px);
  background-size: 8px 8px; }

.float-chip { position: absolute; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 11px 16px; font-size: .85rem; font-weight: 600; color: var(--slate-deep); display: flex; align-items: center; gap: 8px; }
.chip-google { top: 8%; left: -26px; animation: floaty 4.5s ease-in-out infinite; }
.chip-call { bottom: 6%; right: -18px; animation: floaty 5.2s ease-in-out infinite .6s; }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; background: #7bbd8f; box-shadow: 0 0 0 4px rgba(123, 189, 143, .22); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--white); clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%); }

/* ===== Bandeau confiance ===== */
.trust-strip { background: var(--white); padding: 26px 0; }
.trust-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.trust-inner > span { font-weight: 600; color: var(--slate-deep); }
.trust-inner ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.trust-inner li { background: var(--cream-2); color: var(--slate); font-weight: 600; font-size: .9rem; padding: 8px 16px; border-radius: 100px; border: 1px solid var(--sand); }
.trust-inner li.trust-more { background: transparent; border-color: transparent; color: var(--terracotta); font-style: italic; padding-left: 6px; }

/* ===== Sections génériques ===== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: linear-gradient(180deg, var(--white), var(--cream-2)); }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-sub { font-size: 1.1rem; margin-top: 16px; }

/* Cartes service */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon { width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.6rem; background: var(--cream-2); border-radius: 14px; margin-bottom: 18px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: .96rem; }

/* Étapes */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 40px 30px 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--sand); }
.step-num { position: absolute; top: -24px; left: 30px; width: 52px; height: 52px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--terracotta), var(--terracotta-soft)); border-radius: 16px; box-shadow: 0 10px 22px rgba(196, 86, 45, .32); }
.step h3 { margin: 14px 0 10px; }
.step p { font-size: .97rem; }

/* Avantages */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.benefit { display: flex; gap: 18px; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.benefit:hover { transform: translateY(-4px); }
.benefit-icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, rgba(196,86,45,.12), rgba(229,162,74,.16)); border-radius: 14px; }
.benefit h3 { margin-bottom: 6px; }
.benefit p { font-size: .96rem; }

/* Accompagnement */
.accompagnement { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.acc-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.acc-text p { font-size: 1.08rem; margin-top: 16px; }
.acc-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.acc-list li { position: relative; padding-left: 34px; font-weight: 500; color: var(--slate); }
.acc-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; background: var(--terracotta); border-radius: 50%; }
.acc-card { background: var(--slate-deep); border-radius: var(--radius-lg); padding: 40px; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.acc-card::before { content: "\201C"; position: absolute; top: -20px; right: 24px; font-family: var(--font-head); font-size: 9rem; color: rgba(229, 162, 74, .22); line-height: 1; }
.acc-quote p { color: #f3ede4; font-size: 1.22rem; font-family: var(--font-head); font-weight: 500; line-height: 1.5; position: relative; z-index: 1; }
.acc-author { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.acc-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--terracotta), var(--amber)); font-family: var(--font-head); }
.acc-author strong { display: block; color: #fff; font-size: .98rem; }
.acc-author span { font-size: .84rem; color: rgba(243, 237, 228, .6); }

/* Contact */
.contact { background: radial-gradient(900px 500px at 85% 0%, rgba(196, 86, 45, .5), transparent 55%), var(--slate-deep); color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 54px; align-items: start; }
.contact-text h2 { color: #fff; }
.contact-text p { color: rgba(243, 237, 228, .78); font-size: 1.1rem; margin-top: 16px; }
.contact-points { list-style: none; margin-top: 26px; display: grid; gap: 12px; font-weight: 500; color: #f3ede4; }
.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--slate-deep); margin-bottom: 7px; }
.field .opt { font-weight: 400; color: var(--slate-soft); }
.field input, .field textarea { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink); padding: 13px 15px; border: 1.5px solid var(--sand); border-radius: var(--radius-sm); background: var(--cream); transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(196, 86, 45, .12); background: #fff; }
.field input:invalid:not(:placeholder-shown) { border-color: #e08a6a; }
.form-note { font-size: .8rem; color: var(--slate-soft); margin-top: 14px; text-align: center; }
.form-success { margin-top: 16px; padding: 14px; border-radius: var(--radius-sm); background: #eaf6ee; color: #2f7d4f; font-weight: 600; text-align: center; }
.form-error { margin-top: 16px; padding: 14px; border-radius: var(--radius-sm); background: #fdecea; color: #b3261e; font-weight: 600; text-align: center; }

/* ===== Footer ===== */
.site-footer { background: var(--slate-deep); color: #fff; padding: 56px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { max-width: 320px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: rgba(243, 237, 228, .6); font-size: .94rem; margin-top: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-nav a { color: rgba(243, 237, 228, .8); font-weight: 500; font-size: .95rem; transition: color .2s; }
.footer-nav a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; font-size: .84rem; color: rgba(243, 237, 228, .5); }

/* ===== Page légale ===== */
.legal { padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 8vw, 90px); background: var(--cream); }
.legal-inner { max-width: 760px; }
.legal h1 { margin-bottom: 10px; }
.legal-updated { font-size: .9rem; color: var(--slate-soft); margin-bottom: 26px; }
.legal-note { background: #fdf3e9; border: 1px solid var(--sand); border-left: 4px solid var(--amber); border-radius: var(--radius-sm); padding: 16px 20px; font-size: .92rem; color: var(--slate); margin-bottom: 40px; }
.legal-note code { background: rgba(196,86,45,.1); color: var(--terracotta-dark); padding: 1px 6px; border-radius: 5px; font-size: .86em; }
.legal-block { margin-bottom: 34px; }
.legal-block h2 { font-size: 1.35rem; margin-bottom: 12px; }
.legal-block p { margin-bottom: 12px; }
.legal-list { list-style: none; display: grid; gap: 9px; }
.legal-list li { padding-left: 18px; position: relative; color: var(--slate); }
.legal-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); }
.legal [data-fill] { background: rgba(229,162,74,.18); color: var(--terracotta-dark); font-weight: 500; padding: 1px 6px; border-radius: 5px; }
.legal-back { margin-top: 40px; }

/* ===== Reveal au scroll ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-text { text-align: center; }
  .hero-text .lead { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-reassure { justify-content: center; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .acc-inner, .contact-inner { grid-template-columns: 1fr; }
  .contact-text { text-align: center; }
  .contact-points { justify-items: center; }
}

@media (max-width: 720px) {
  .main-nav, .header-cta { display: none; }
  .main-nav.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--sand); padding: 8px 24px 16px; box-shadow: var(--shadow); }
  .main-nav.open a { padding: 13px 0; border-bottom: 1px solid var(--sand); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .benefits { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .float-chip { display: none; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .contact-form { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
