/* ==========================================================
   Karajene — feuille de style commune
   ========================================================== */

:root {
  --ink: #14202e;
  --ink-soft: #3d4b5c;
  --muted: #6b7787;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --sand: #f3efe6;
  --line: #e4ded2;
  --brand: #0f4c5c;
  --brand-dark: #0a3540;
  --accent: #c8862e;
  --accent-soft: #f6e9d5;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(20, 32, 46, 0.18);
  --max: 1160px;
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #b0731f; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 600;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .97rem;
  position: relative;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { color: var(--brand); }
.nav-links a[aria-current="page"]:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
}
.nav-links .btn { padding: .6rem 1.2rem; color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

/* ---------- Héros ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, #16697a 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -140px; top: -160px;
  border-radius: 50%;
  border: 70px solid rgba(200, 134, 46, .18);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: center;
  padding: 96px 24px 104px;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #f0c27a; }
.hero .lead { color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(4px);
}
.hero-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 1.2rem; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li {
  display: flex;
  gap: .8rem;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-size: .97rem;
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card .num {
  font-family: var(--font-title);
  color: #f0c27a;
  font-weight: 600;
  min-width: 1.6rem;
}

/* Bandeau de page intérieure */
.page-hero {
  background: var(--brand);
  color: #fff;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 50px solid rgba(200, 134, 46, .2);
  pointer-events: none; /* le cercle décoratif ne doit pas bloquer les boutons */
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .4em; }
.page-hero .lead { color: rgba(255,255,255,.85); }
.breadcrumb { font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 3.5rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin: 0 auto; }

/* Grille de services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: transparent;
}
.icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
}
.icon svg { width: 26px; height: 26px; }
.service-card p { color: var(--ink-soft); }
.service-card .more {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
  font-size: .95rem;
}
.service-card .more::after { content: " →"; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.tags li {
  font-size: .82rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-soft);
}

/* Pourquoi nous */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.features { display: grid; gap: 1.6rem; }
.feature { display: flex; gap: 1.2rem; }
.feature .icon { flex-shrink: 0; margin: 0; background: #e3eef0; color: var(--brand); }
.feature h3 { font-size: 1.1rem; margin-bottom: .3em; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

.visual-block {
  background: var(--brand);
  border-radius: 20px;
  padding: 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.visual-block::before {
  content: "";
  position: absolute;
  left: -60px; bottom: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(200, 134, 46, .25);
}
.visual-block blockquote {
  position: relative;
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.5rem;
  line-height: 1.4;
}
.visual-block cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: .95rem;
  color: #f0c27a;
  position: relative;
}

/* Étapes */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  padding: 1.8rem;
  background: var(--surface);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--accent);
  display: block;
  margin-bottom: .6rem;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Appel à l'action */
.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255,255,255,.75); margin: 0; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Page Services : détail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.service-detail:last-child { border-bottom: 0; }
.service-detail .label {
  font-family: var(--font-title);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 2rem; }
.check-list li { position: relative; padding-left: 1.8rem; color: var(--ink-soft); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8862e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.sub-card {
  background: var(--sand);
  border-radius: 12px;
  padding: 1.4rem;
}
.sub-card h4 { font-size: 1.05rem; margin-bottom: .4em; }
.sub-card p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
}
.service-nav a {
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  padding: .45rem 1rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
}
.service-nav a:hover { background: rgba(255,255,255,.12); }

/* ---------- À propos ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
}
.value p { color: var(--ink-soft); margin: 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: 2.4rem;
  color: var(--brand);
  line-height: 1.1;
}
.stat span { color: var(--muted); font-size: .93rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: grid; gap: 1rem; }
.info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
a.info-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.info-card .icon { margin: 0; width: 46px; height: 46px; flex-shrink: 0; }
.info-card .icon svg { width: 22px; height: 22px; }
.info-card small { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.info-card strong { font-size: 1.05rem; }

.form-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, .12);
  background: #fff;
}
.field .error { display: none; color: #b42318; font-size: .85rem; margin-top: .3rem; }
.field.invalid input,
.field.invalid textarea { border-color: #b42318; }
.field.invalid .error { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.form-status {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  font-size: .95rem;
}
.form-status.success { display: block; background: #e7f5ee; color: #11643d; }
.form-status.fail { display: block; background: #fdecea; color: #a12517; }
.hp { position: absolute; left: -9999px; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 72px 0 28px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.site-footer .logo-mark::after { border-color: var(--ink); }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
  margin-bottom: 1.2rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: #f0c27a; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .87rem;
}

/* Bouton WhatsApp flottant */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 76px; /* au-dessus du badge Netlify */
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 60;
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 28px; height: 28px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 1rem; }
  .sub-grid, .values { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.5rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 1rem; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero-inner { padding: 64px 16px 72px; }
  .services-grid, .steps, .form-row, .check-list, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 2.5rem 1.6rem; }
  .form-card { padding: 1.6rem; }
  .service-card { padding: 1.6rem; }
  .visual-block { padding: 2rem; }
}

/* ---------- Espace gestion (pied de page) et inscription ---------- */
.site-footer .btn-gestion {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  padding: .4rem 1rem;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
}
.site-footer .btn-gestion:hover { border-color: #f0c27a; color: #f0c27a; }
.choice-group { display: flex; gap: 1.4rem; padding: .55rem 0; flex-wrap: wrap; }
.choice-group label { display: flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }
.choice-group input { width: auto; accent-color: var(--brand); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.consent input { width: auto; margin-top: .25rem; accent-color: var(--brand); }
.field.invalid .choice-group { outline: 2px solid #b42318; outline-offset: 4px; border-radius: 6px; }
.field.invalid select { border-color: #b42318; }
.inscription-wrap { max-width: 760px; margin: 0 auto; }
.steps-note { background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.6rem; font-size: .95rem; color: var(--ink); }
.field .consent { font-weight: 400; }

/* ---------- Sélecteur de langue FR / EN ---------- */
.lang-switch {
  display: flex;
  gap: 2px;
  margin-left: 1.5rem;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang-switch a {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--muted);
  padding: .3rem .7rem;
  border-radius: 999px;
}
.lang-switch a:hover { color: var(--brand); }
.lang-switch a[aria-current="true"] { background: var(--brand); color: #fff; }
@media (max-width: 820px) {
  .lang-switch { margin-left: auto; margin-right: .6rem; }
  .nav-toggle { order: 3; }
}
