/* ==========================================================
   Cabanil Distribution — feuille de style principale
   ========================================================== */

:root {
  --cream: #fbf7f1;
  --cream-2: #f3ece2;
  --white: #ffffff;
  --ink: #16263a;
  --ink-soft: #4a5a6e;
  --teal: #0f6b6b;
  --teal-dark: #0a4f50;
  --berry: #d6336c;
  --berry-soft: #fde4ec;
  --mint: #d8f1ea;
  --line: #e6ddd0;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(22, 38, 58, .08);
  --shadow-lg: 0 24px 60px rgba(22, 38, 58, .14);
  --max: 1180px;
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, 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(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 10px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 10px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, .9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(140deg, var(--teal), var(--teal-dark));
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-title); font-weight: 700; font-size: 1.35rem;
}
.logo-text { line-height: 1.05; }
.logo-text strong { display: block; font-family: var(--font-title); font-size: 1.2rem; letter-spacing: .02em; }
.logo-text span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 10px; }
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: .25s;
}
.nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; }
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: .95rem;
}
.main-nav a:hover { background: var(--cream-2); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--mint); color: var(--teal-dark); }
.main-nav .btn { margin-left: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--berry); color: #fff; box-shadow: 0 8px 20px rgba(214, 51, 108, .28); }
.btn-primary:hover { color: #fff; background: #c02a5f; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #0d1a29; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.main-nav .btn { padding: 10px 20px; color: #fff; }
.main-nav .btn:hover { background: #c02a5f; color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 110px; }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  right: -160px; top: -180px; background: radial-gradient(circle, var(--berry-soft), transparent 70%);
  z-index: -1;
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  left: -200px; bottom: -260px; background: radial-gradient(circle, var(--mint), transparent 70%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); background: var(--mint); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--berry); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; color: var(--ink-soft); font-size: .92rem; }
.hero-badges span { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--teal); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 30px; position: relative;
}
.hero-card .illu { border-radius: var(--radius); background: linear-gradient(160deg, #e8f6f1, #fdeef3); }
.floating {
  position: absolute; background: var(--white); border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: .9rem;
}
.floating strong { display: block; font-size: 1.15rem; font-family: var(--font-title); }
.floating .dot { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.floating-1 { left: -30px; bottom: 40px; }
.floating-1 .dot { background: var(--berry-soft); color: var(--berry); }
.floating-2 { right: -20px; top: 30px; }
.floating-2 .dot { background: var(--mint); color: var(--teal); }

/* ---------- En-tête de page intérieure ---------- */
.page-hero { padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 100%;
  background: radial-gradient(ellipse at top, var(--mint), transparent 60%); z-index: -1;
}
.page-hero .lead { margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--ink); color: #e9eef4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark p { color: #b9c5d3; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- Cartes ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.section-alt .card { background: var(--cream); }
.card p { color: var(--ink-soft); }
.card .link { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint); color: var(--teal); margin-bottom: 22px;
}
.icon.berry { background: var(--berry-soft); color: var(--berry); }
.icon.ink { background: #e3e8ef; color: var(--ink); }

/* ---------- Listes à puces ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 36px; margin-bottom: 14px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Chiffres clés ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.stat strong { display: block; font-family: var(--font-title); font-size: 2.6rem; color: #fff; line-height: 1.1; }
.stat span { color: #b9c5d3; font-size: .95rem; }
.section:not(.section-dark) .stat { background: var(--white); border-color: var(--line); }
.section:not(.section-dark) .stat strong { color: var(--teal); }
.section:not(.section-dark) .stat span { color: var(--ink-soft); }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 60px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--font-title); font-size: 2.4rem;
  color: var(--berry); font-weight: 600;
}
.step p { color: var(--ink-soft); }

/* ---------- Visuels ---------- */
.visual {
  border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, #e8f6f1, #fdeef3);
  box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; display: grid; place-items: center;
}
.visual.teal { background: linear-gradient(160deg, var(--teal), var(--teal-dark)); }
.visual.berry { background: linear-gradient(160deg, #f7c3d5, #fde4ec); }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: var(--white); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px;
  font-size: .93rem; font-weight: 500;
}
.section-alt .tag { background: var(--cream); }

/* ---------- Fiche produit ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; font-weight: 600; background: var(--cream-2); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.compare { display: flex; flex-direction: column; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 90px; gap: 14px; align-items: center; font-size: .95rem; }
.bar { height: 16px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; }

/* ---------- Bandeau d'appel ---------- */
.cta {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; border-radius: var(--radius-lg); padding: 64px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
}
.cta::after {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  right: -120px; top: -140px; background: rgba(255, 255, 255, .08);
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #cfe6e3; margin: 0; font-size: 1.1rem; }
.cta .btn { position: relative; z-index: 1; }

/* ---------- Citation ---------- */
.quote {
  font-family: var(--font-title); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.4;
  font-style: italic; max-width: 820px; margin: 0 auto; text-align: center;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { margin: 0; flex-shrink: 0; width: 48px; height: 48px; }
.contact-list small { display: block; color: var(--ink-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-list a, .contact-list strong { font-weight: 600; color: var(--ink); font-size: 1.05rem; }

form.card { gap: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--cream); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 107, 107, .12);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 14px; }

.map-frame { border: 0; width: 100%; height: 340px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Mentions légales ---------- */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-soft); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #b9c5d3; padding: 70px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b9c5d3; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 18px; }
.site-footer .logo-text span { color: #8c9bb0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 50px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem;
}

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--ink-soft); }
.highlight { color: var(--berry); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle-label { display: block; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 22px; gap: 2px; }
  .main-nav a { padding: 12px 16px; border-radius: 12px; }
  .main-nav .btn { margin: 10px 0 0; justify-content: center; }
  .nav-toggle:checked ~ .main-nav { max-height: 480px; }
  .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked + .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }

  .hero { padding: 60px 0 80px; }
  .hero-grid, .grid-2, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid-3 { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 44px 30px; }
  .section { padding: 70px 0; }
  .floating-1 { left: 10px; }
  .floating-2 { right: 10px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .grid-4, .steps, .stats, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr 70px; }
  .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .card { padding: 26px; }
  .hero-card { padding: 18px; }
  .floating { display: none; }
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { border-bottom: 0; padding-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
