/* ==========================================================================
   Ravalement ITE — Design system
   Thème « Façade & Pierre » : encre ardoise, sable, ocre chaud.
   Feuille de style unique, sans dépendance externe (bon pour le SEO / RGPD).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs */
  --ink: #0e1a20;
  --ink-2: #16262e;
  --ink-3: #1f333d;
  --slate: #3c4d56;
  --muted: #6a7a82;
  --muted-2: #8c999f;
  --sand: #f7f3ec;
  --sand-2: #efe7db;
  --sand-3: #e6dccb;
  --line: #e3dacd;
  --line-dark: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --ochre: #c1743a;
  --ochre-dark: #9d5a27;
  --ochre-soft: #f4e6d6;
  --sage: #6f7f68;
  --success: #2f7d5f;
  --danger: #b4442f;

  /* Typographie */
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  /* Rythme */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 32, 0.06),
    0 2px 8px rgba(14, 26, 32, 0.05);
  --shadow: 0 10px 30px -12px rgba(14, 26, 32, 0.22);
  --shadow-lg: 0 30px 70px -30px rgba(14, 26, 32, 0.38);
  --container: 1180px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
picture {
  max-width: 100%;
  height: auto; /* neutralise les attributs width/height HTML une fois le CSS appliqué */
  display: block;
}

a {
  color: var(--ochre-dark);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
}

ul,
ol {
  padding-left: 1.15rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

::selection {
  background: var(--ochre);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   3. Typographie
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.55em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.4rem + 3.4vw, 3.85rem);
}

h2 {
  font-size: clamp(1.72rem, 1.15rem + 2.2vw, 2.7rem);
}

h3 {
  font-size: clamp(1.24rem, 1.05rem + 0.7vw, 1.6rem);
}

h4 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
}

p {
  margin: 0 0 1.15rem;
}

.lead {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.24rem);
  color: var(--slate);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-dark);
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--ochre);
  border-radius: 2px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.narrow {
  max-width: 760px;
}

.section {
  padding: clamp(3.4rem, 2rem + 5vw, 6.4rem) 0;
}

.section--tight {
  padding: clamp(2.4rem, 1.6rem + 3vw, 4rem) 0;
}

.section--sand {
  background: var(--sand-2);
}

.section--ink {
  background: var(--ink);
  color: var(--sand);
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 {
  color: #fff;
}

.section--ink .lead,
.section--ink p {
  color: rgba(247, 243, 236, 0.78);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.2rem);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.6rem, 1rem + 3vw, 3.6rem);
  align-items: center;
}

/* --------------------------------------------------------------------------
   5. Boutons & liens d'action
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.92rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ochre);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(157, 90, 39, 0.9);
}

.btn-primary:hover {
  background: var(--ochre-dark);
}

.btn-dark {
  background: var(--ink);
  color: var(--sand);
}

.btn-dark:hover {
  background: var(--ink-3);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ochre);
  color: var(--ochre-dark);
  background: #fff;
}

.section--ink .btn-ghost {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
  color: var(--sand);
}

.section--ink .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-lg {
  padding: 1.1rem 1.85rem;
  font-size: 1.04rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.link-arrow {
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ochre-dark);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. En-tête & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 243, 236, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 243, 236, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 550;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--ochre-dark);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.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);
}

.mobile-panel {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 1rem 22px 1.6rem;
  z-index: 88;
  display: none;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.mobile-panel.is-open {
  display: block;
  animation: slideDown 0.24s var(--ease);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-panel li + li {
  border-top: 1px solid var(--line);
}

.mobile-panel a {
  display: block;
  padding: 0.85rem 0.2rem;
  color: var(--ink);
  font-weight: 600;
}

.mobile-panel .btn {
  width: 100%;
  margin-top: 1.1rem;
  padding: 1rem 1.25rem;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 1.6rem + 4vw, 4.6rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
  background: radial-gradient(
      1100px 520px at 82% -10%,
      rgba(193, 116, 58, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 1rem + 3vw, 3.6rem);
  align-items: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--ochre-dark);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: grid;
  gap: 0.6rem;
}

.hero-points li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--slate);
  font-size: 0.98rem;
}

.hero-points svg {
  flex: 0 0 auto;
  margin-top: 4px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.2rem;
  margin-top: 2.1rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}

.trust-row div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--ink);
}

.trust-row div span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   8. Comparateur avant / après
   -------------------------------------------------------------------------- */
.ba {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink);
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
  user-select: none;
  isolation: isolate;
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.92);
  z-index: 3;
  pointer-events: none;
}

.ba__label {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(14, 26, 32, 0.62);
  backdrop-filter: blur(6px);
}

.ba__label--before {
  left: 14px;
}

.ba__label--after {
  right: 14px;
  background: rgba(193, 116, 58, 0.92);
}

.ba__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  cursor: ew-resize;
  pointer-events: none;
  transition: transform 0.15s var(--ease);
}

.ba__handle::before {
  content: "↔";
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1;
}

.ba__range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 54px;
  height: 100%;
}

.ba__range::-moz-range-thumb {
  width: 54px;
  height: 300px;
  border: 0;
}

.ba-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1.1rem;
}

.ba-meta h3 {
  margin: 0;
  font-size: 1.14rem;
}

.ba-meta p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.project-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--slate);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.project-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.ba-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* --------------------------------------------------------------------------
   9. Cartes & blocs
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--sand-3);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card--media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card--media .card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card--media .card-body .link-arrow {
  margin-top: auto;
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--ochre-soft);
  color: var(--ochre-dark);
  margin-bottom: 1rem;
}

.section--ink .icon-badge {
  background: rgba(193, 116, 58, 0.18);
  color: #f0c79f;
}

.section--ink .card h3,
.section--ink .card h4,
.section--ink .card p {
  color: var(--ink);
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: var(--ochre-soft);
  color: var(--ochre-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill--ink {
  background: var(--ink);
  color: var(--sand);
}

/* Étapes / process */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding-left: 4.1rem;
}

.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ochre);
  border: 1px solid var(--line);
  background: #fff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}

.section--ink .steps li::before {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
  color: #e6b98b;
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: inherit;
}

.steps p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section--ink .steps p {
  color: rgba(247, 243, 236, 0.7);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.97rem;
}

.checklist li svg {
  flex: 0 0 auto;
  margin-top: 4px;
}

/* Villes desservies */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags li {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate);
}

.section--ink .tags li {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-dark);
  color: rgba(247, 243, 236, 0.85);
}

/* Encadré / callout */
.callout {
  border-left: 3px solid var(--ochre);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0.7rem;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.25rem 1.3rem;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ochre);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .faq-body {
  padding-bottom: 1.2rem;
  color: var(--slate);
  font-size: 0.96rem;
}

.faq .faq-body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. Formulaires
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field .req {
  color: var(--ochre-dark);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ochre);
  box-shadow: 0 0 0 3px rgba(193, 116, 58, 0.16);
}

.field .hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.field input[type="file"] {
  padding: 0.55rem;
  font-size: 0.92rem;
}

.field input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1rem;
  margin-right: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sand-2);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.field input[type="file"]::file-selector-button:hover {
  background: var(--sand-3);
  border-color: var(--ochre);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 1.1rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--ochre);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  background: #e8f4ee;
  border: 1px solid #bfdccd;
  color: #1f5d46;
}

.form-status--error {
  background: #fbeae5;
  border: 1px solid #eccdc3;
  color: #8f3722;
}

.form-status ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.btn[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   12. Blog
   -------------------------------------------------------------------------- */
.article-header {
  padding: clamp(2.2rem, 1.4rem + 3vw, 3.6rem) 0 0;
}

.breadcrumbs {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--sand-3);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.article-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2.2rem;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.prose {
  font-size: 1.02rem;
  color: #2b3b43;
}

.prose h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
}

.prose h3 {
  margin-top: 1.8rem;
  font-size: 1.24rem;
}

.prose h2 + p,
.prose h3 + p {
  margin-top: 0.2rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose img {
  border-radius: var(--radius);
  margin: 2rem 0;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.prose figure {
  margin: 2rem 0;
}

.prose figcaption {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: center;
}

.prose blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.3rem;
  border-left: 3px solid var(--ochre);
  font-family: var(--font-display);
  font-size: 1.16rem;
  color: var(--ink);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.94rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.prose th,
.prose td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.prose th {
  background: var(--sand-2);
  font-weight: 700;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.toc {
  background: var(--sand-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2.2rem;
}

.toc p {
  margin: 0 0 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.94rem;
}

.toc li {
  margin-bottom: 0.3rem;
}

/* --------------------------------------------------------------------------
   13. Appel à l'action final
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  color: var(--sand);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 1.6rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(247, 243, 236, 0.78);
  margin: 0;
}

/* Variante empilée : pour les bandes placées dans un conteneur étroit
   (articles et index du blog), où la grille à deux colonnes écrase
   le texte et les boutons. */
.cta-band--stack {
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.cta-band--stack h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
}

.cta-band--stack .btn-row .btn + .btn {
  margin-left: 0.35rem;
}

/* --------------------------------------------------------------------------
   14. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 243, 236, 0.72);
  padding: clamp(3rem, 2rem + 3vw, 4.4rem) 0 2rem;
  font-size: 0.92rem;
}

.site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
}

.site-footer a {
  color: rgba(247, 243, 236, 0.72);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
}

.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

/* --------------------------------------------------------------------------
   15. Bandeau cookies (RGPD)
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 14px;
  transform: translateY(120%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem 1.8rem;
  align-items: center;
}

.cookie-inner h2 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-actions .btn {
  padding: 0.7rem 1.15rem;
  font-size: 0.9rem;
}

.cookie-prefs {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: none;
}

.cookie-prefs.is-open {
  display: block;
  grid-column: 1 / -1;
}

.cookie-cat {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.cookie-cat:last-of-type {
  border-bottom: 0;
}

.cookie-cat input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--ochre);
}

.cookie-cat strong {
  display: block;
  font-size: 0.93rem;
}

.cookie-cat span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.cookie-reopen {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   16. Utilitaires & animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.6rem; }
.mt-4 { margin-top: 2.4rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.6rem; }
.hidden { display: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-cta .btn {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .cta-band {
    grid-template-columns: 1fr;
  }
  .cookie-inner {
    grid-template-columns: 1fr;
  }
  .grid-3.keep-2,
  .grid-4.keep-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .trust-row {
    gap: 1.2rem 1.6rem;
  }
  .trust-row div strong {
    font-size: 1.45rem;
  }
  .grid-3.keep-2,
  .grid-4.keep-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cookie-actions .btn {
    flex: 1 1 auto;
  }
  .prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

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

@media print {
  .site-header,
  .cookie-banner,
  .site-footer,
  .cta-band {
    display: none;
  }
}
