/* =========================================================
   Groupe Kastrel — feuille de style principale
   Style corporatif lumineux : NOIR, BLANC, JAUNE MIEL.
   Couleurs modifiables dans :root
   ========================================================= */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --white: #FFFFFF;
  --soft: #F8F8F7;          /* gris très doux, sections alternées */
  --ink: #111111;           /* noir anthracite */
  --text: #111111;
  --muted: #4B5563;         /* gris charbon */
  --line: #E5E5E3;          /* bordures des cartes */
  --field: #D1D5DB;         /* bordures des champs */
  --honey: #D97706;         /* jaune miel */
  --honey-hover: #F59E0B;
  --radius: 4px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 4px 14px rgba(17, 17, 17, .04);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--honey); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--honey); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.028em; }
h3 { font-size: 1.1rem; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0 0 1em; }
::selection { background: var(--honey); color: var(--ink); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; background: var(--white); }
.section.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 1.2em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--honey); }
.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--honey); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 700px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 15px 28px; border-radius: var(--radius); font-weight: 700;
  text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s;
  cursor: pointer; font-family: inherit; font-size: .95rem; letter-spacing: .01em;
}
.btn-primary { background: var(--honey); color: var(--ink); border-color: var(--honey); }
.btn-primary:hover { background: var(--honey-hover); border-color: var(--honey-hover); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }

/* ---------- En-tête (noir) ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: var(--ink);
  border-bottom: 2px solid var(--honey);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-weight: 700; font-size: 1.1rem; color: var(--white); letter-spacing: .12em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 600; font-size: .62rem; letter-spacing: .32em; color: var(--honey); margin-bottom: 2px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; color: rgba(255, 255, 255, .78); font-weight: 500; font-size: .92rem; transition: color .2s; }
.nav a:hover { color: var(--white); }
.nav .lang {
  border: 1px solid rgba(255, 255, 255, .35); padding: 5px 11px; border-radius: var(--radius);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--white);
}
.nav .lang:hover { border-color: var(--honey); color: var(--honey); }
.nav .btn { padding: 10px 20px; color: var(--ink); }
.nav .btn:hover { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

/* ---------- Bannière principale (blanche, éditoriale) ---------- */
.hero { position: relative; padding: 140px 0 130px; background: var(--white); }
.hero .container { position: relative; }
.hero h1 { max-width: 840px; }
.hero h1::after { content: ""; display: block; width: 72px; height: 4px; background: var(--honey); margin-top: 32px; }
.hero .lead { font-size: 1.2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Bande de confiance ---------- */
.trust { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  padding: 32px 24px; display: flex; gap: 14px; align-items: flex-start;
  font-size: .88rem; color: var(--muted); border-left: 1px solid var(--line);
}
.trust-item:last-child { border-right: 1px solid var(--line); }
.trust-item strong { display: block; color: var(--ink); font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.trust-item svg { flex: 0 0 24px; color: var(--honey); margin-top: 2px; }

/* ---------- Grilles et cartes ---------- */
.grid { display: grid; gap: 20px; margin-top: 56px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: border-color .2s;
}
.card:hover { border-color: var(--honey); }
.card p { color: var(--muted); font-size: .94rem; margin: 0; }
.icon {
  width: 44px; height: 44px; border-radius: var(--radius); background: var(--ink); color: var(--honey);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.split p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { padding: 9px 0 9px 34px; position: relative; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 20px; height: 20px; border-radius: var(--radius);
  background: var(--honey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-9'/%3E%3C/svg%3E") center/12px no-repeat;
}
.panel {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--honey);
  border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow);
}
.panel ul { margin: 0; padding-left: 18px; color: var(--muted); }
.panel li { margin: 10px 0; }
.panel li::marker { color: var(--honey); }
.panel p { color: var(--muted) !important; }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; gap: 0; border-top: 1px solid var(--line); }
.step { position: relative; padding: 68px 28px 0 0; }
.step::before {
  counter-increment: step; content: "0" counter(step); position: absolute; top: 22px; left: 0;
  font-size: 1.05rem; font-weight: 800; letter-spacing: .06em; color: var(--honey);
}
.step::after { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 3px; background: var(--honey); }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; margin-top: 56px; }
.contact-info .item { margin-bottom: 28px; padding-left: 18px; border-left: 3px solid var(--honey); color: var(--muted); }
.contact-info .item strong {
  display: block; color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 4px;
}
form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 8px; color: var(--ink); }
input, select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--field); border-radius: var(--radius);
  font: inherit; font-size: .95rem; margin-bottom: 20px; background: var(--white); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #9CA3AF; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--honey); box-shadow: 0 0 0 3px rgba(217, 119, 6, .18);
}
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
select option { background: var(--white); color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .84rem; color: var(--muted); line-height: 1.6; }
.consent input { width: 16px; height: 16px; margin: 3px 0 0; flex: 0 0 16px; accent-color: var(--honey); }
.hidden { display: none; }

/* ---------- Pages simples (confidentialité, merci) ---------- */
.page { padding: 100px 0 120px; min-height: 60vh; background: var(--white); }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.2rem; margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.page p { color: var(--muted); }
.page em { color: var(--ink); }
.page.center .lead { margin-bottom: 0; }

/* ---------- Pied de page (noir) ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 72px 0 32px; font-size: .9rem; border-top: 2px solid var(--honey); }
.footer a { color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--honey); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer h4 { color: var(--white); margin: 0 0 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 8px 0; }
.footer-bottom { border-top: 1px solid rgba(217, 119, 6, .45); margin-top: 48px; padding-top: 24px; font-size: .8rem; color: rgba(255, 255, 255, .55); }

/* ---------- Adaptation mobile ---------- */
@media (max-width: 960px) {
  .grid-4, .trust .container { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 78px; left: 0; right: 0; background: var(--ink);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 24px; border-bottom: 2px solid var(--honey);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav .lang { width: auto; padding: 5px 11px; margin: 8px 0; }
  .nav .btn { text-align: center; margin-top: 8px; }
  .section { padding: 80px 0; }
  .hero { padding: 88px 0 80px; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .trust .container, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { padding: 18px 20px; border-right: 1px solid var(--line); }
  .steps .step { padding-right: 0; }
  form { padding: 28px 20px; }
}
