/* =============================================================
   CommandeCI — Design System Principal
   Style : Minimaliste premium / Sobre & international
   Palette : Charcoal noir (#1C1917) + Or chaud (#A16207)
   Typographie : Bodoni Moda (titres) + Jost (corps)
   ============================================================= */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600;700&display=swap');

/* ─── Tokens de design ─────────────────────────────────────── */
:root {
  /* Couleurs */
  --c-primary:      #1C1917;
  --c-primary-90:   rgba(28, 25, 23, 0.9);
  --c-secondary:    #44403C;
  --c-accent:       #A16207;
  --c-accent-light: #D97706;
  --c-accent-pale:  #FEF3C7;
  --c-bg:           #FAFAF9;
  --c-bg-2:         #F5F5F4;
  --c-bg-3:         #EEEDE9;
  --c-text:         #0C0A09;
  --c-text-2:       #44403C;
  --c-muted:        #78716C;
  --c-border:       #D6D3D1;
  --c-border-2:     #E7E5E4;
  --c-white:        #FFFFFF;
  --c-success:      #059669;
  --c-error:        #DC2626;
  --c-warning:      #D97706;

  /* Typographie */
  --font-heading: 'Bodoni Moda', Georgia, serif;
  --font-body:    'Jost', system-ui, -apple-system, sans-serif;

  /* Espacement (système 8pt) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* Rayons */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Ombres */
  --shadow-sm:  0 1px 3px rgba(28,25,23,.08), 0 1px 2px rgba(28,25,23,.05);
  --shadow-md:  0 4px 16px rgba(28,25,23,.10), 0 2px 6px rgba(28,25,23,.06);
  --shadow-lg:  0 12px 40px rgba(28,25,23,.12), 0 4px 12px rgba(28,25,23,.08);
  --shadow-xl:  0 24px 60px rgba(28,25,23,.16);

  /* Transitions */
  --t-fast:   150ms cubic-bezier(.4,0,.2,1);
  --t-base:   250ms cubic-bezier(.4,0,.2,1);
  --t-slow:   400ms cubic-bezier(.4,0,.2,1);

  /* Layout */
  --max-w:    1280px;
  --gutter:   24px;
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ─── Typographie ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }

p { line-height: 1.75; color: var(--c-text-2); }

.text-accent   { color: var(--c-accent); }
.text-muted    { color: var(--c-muted); font-size: .9rem; }
.text-center   { text-align: center; }
.text-sm       { font-size: .875rem; }
.text-lg       { font-size: 1.125rem; }
.font-light    { font-weight: 300; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* Ligne décorative dorée sous un titre */
.title-underline {
  position: relative;
  display: inline-block;
}
.title-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
}
.title-underline--center::after { left: 50%; transform: translateX(-50%); }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--s-20);
}
.section--sm { padding-block: var(--s-12); }
.section--lg { padding-block: calc(var(--s-20) * 1.5); }

.section__header {
  margin-bottom: var(--s-12);
}
.section__header--center { text-align: center; }
.section__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-3);
}
.section__subtitle {
  max-width: 560px;
  margin-top: var(--s-3);
  color: var(--c-muted);
}
.section__header--center .section__subtitle { margin-inline: auto; }

/* Grid utilitaires */
.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ─── Boutons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  text-align: center;
  border: 2px solid transparent;
}
.btn:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}
.btn--primary:hover {
  background: var(--c-secondary);
  border-color: var(--c-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--c-accent);
  color: var(--c-white);
  border-color: var(--c-accent);
}
.btn--accent:hover {
  background: var(--c-accent-light);
  border-color: var(--c-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(161,98,7,.30);
}

.btn--outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text-2);
  border-color: var(--c-border);
}
.btn--ghost:hover {
  background: var(--c-bg-2);
  border-color: var(--c-secondary);
}

.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn .spinner { display: none; }
.btn.loading .spinner { display: block; }
.btn.loading .btn-text { opacity: .6; }

/* ─── Navigation ────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,249,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border-2);
  transition: box-shadow var(--t-base);
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--s-6);
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: none;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.navbar__logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.navbar__link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-text-2);
  text-decoration: none;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.navbar__link:hover { color: var(--c-primary); }
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.navbar__mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-2);
  cursor: pointer;
}
.navbar__mobile-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: all var(--t-base);
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--c-primary);
  color: var(--c-white);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(161,98,7,.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 80% at 10% 70%, rgba(161,98,7,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-block: var(--s-24);
  max-width: 680px;
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-accent-light);
  margin-bottom: var(--s-6);
  padding: var(--s-2) var(--s-4);
  background: rgba(161,98,7,.15);
  border: 1px solid rgba(161,98,7,.3);
  border-radius: var(--r-full);
}
.hero__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent-light);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.hero h1 {
  color: var(--c-white);
  margin-bottom: var(--s-6);
}
.hero h1 em {
  font-style: italic;
  color: var(--c-accent-light);
}
.hero__sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: var(--s-10);
  max-width: 520px;
}
.hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-12);
}
.hero__stats {
  display: flex;
  gap: var(--s-8);
  flex-wrap: wrap;
  padding-top: var(--s-8);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--c-white);
  line-height: 1;
}
.hero__stat-label {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}
.hero__scroll {
  position: absolute;
  bottom: var(--s-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}
.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── Comment ça marche ─────────────────────────────────────── */
.steps {
  background: var(--c-bg-2);
}
.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}
.steps__grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-border), transparent);
  z-index: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s-8) var(--s-6);
  position: relative;
  z-index: 1;
}
.step__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: var(--s-5);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base);
}
.step:hover .step__number {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}
.step__icon {
  font-size: 1.2rem;
  color: var(--c-muted);
  margin-bottom: var(--s-2);
}
.step h4 {
  margin-bottom: var(--s-2);
  font-size: 1rem;
}
.step p {
  font-size: .875rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ─── Catégories ────────────────────────────────────────────── */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s-4);
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s-6) var(--s-4);
  background: var(--c-white);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.category-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--c-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
  transition: background var(--t-base);
}
.category-card:hover .category-card__icon {
  background: var(--c-accent-pale);
}
.category-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--c-secondary);
  transition: stroke var(--t-base);
}
.category-card:hover .category-card__icon svg {
  stroke: var(--c-accent);
}
.category-card__name {
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-text);
}

/* ─── Formulaire rapide (Home) ──────────────────────────────── */
.quick-form {
  background: var(--c-primary);
  color: var(--c-white);
}
.quick-form__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: start;
}
.quick-form__text h2 { color: var(--c-white); margin-bottom: var(--s-4); }
.quick-form__text p  { color: rgba(255,255,255,.65); }

.quick-form__card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s-10);
  box-shadow: var(--shadow-xl);
}

/* ─── Formulaire (éléments partagés) ───────────────────────── */
.form-group {
  margin-bottom: var(--s-5);
}
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: var(--s-2);
}
.form-label .required {
  color: var(--c-error);
  margin-left: 2px;
}
.form-control {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-white);
  color: var(--c-text);
  font-size: .95rem;
  font-family: var(--font-body);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
}
.form-control::placeholder { color: var(--c-muted); }
.form-control:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(161,98,7,.12);
}
.form-control:disabled {
  background: var(--c-bg-2);
  opacity: .6;
  cursor: not-allowed;
}
.form-control.is-error  { border-color: var(--c-error); }
.form-control.is-valid  { border-color: var(--c-success); }

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-hint  { font-size: .8rem; color: var(--c-muted); margin-top: 5px; }
.form-error { font-size: .8rem; color: var(--c-error); margin-top: 5px; display: none; }
.form-error.visible { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-8) var(--s-6);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base);
  background: var(--c-bg);
  position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--c-accent);
  background: var(--c-accent-pale);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-zone__icon { margin: 0 auto var(--s-3); color: var(--c-muted); }
.upload-zone__text { font-size: .875rem; color: var(--c-muted); }
.upload-zone__text strong { color: var(--c-accent); }

/* ─── Arguments de confiance ────────────────────────────────── */
.trust {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border-2);
  border-bottom: 1px solid var(--c-border-2);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-8);
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}
.trust-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--c-accent-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-item__icon svg { width: 20px; height: 20px; stroke: var(--c-accent); }
.trust-item__title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 3px;
}
.trust-item__desc { font-size: .84rem; color: var(--c-muted); line-height: 1.5; }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq__list { max-width: 780px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--c-border-2);
}
.faq-item:first-child { border-top: 1px solid var(--c-border-2); }
.faq-item__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: var(--s-6) 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text);
  background: none;
  border: none;
  cursor: pointer;
  gap: var(--s-4);
  transition: color var(--t-fast);
}
.faq-item__btn:hover { color: var(--c-accent); }
.faq-item__btn[aria-expanded="true"] { color: var(--c-accent); }
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform var(--t-base);
}
.faq-item__btn[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-item__body {
  display: none;
  padding-bottom: var(--s-6);
}
.faq-item__body.open { display: block; }
.faq-item__body p { color: var(--c-muted); font-size: .95rem; line-height: 1.75; }

/* ─── Bannière CTA finale ───────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary) 0%, #2D2926 100%);
  color: var(--c-white);
  text-align: center;
}
.cta-banner h2 { color: var(--c-white); margin-bottom: var(--s-4); }
.cta-banner p  { color: rgba(255,255,255,.65); max-width: 500px; margin-inline: auto; margin-bottom: var(--s-8); }

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--c-primary);
  color: rgba(255,255,255,.6);
  padding-block: var(--s-16) var(--s-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-10);
  margin-bottom: var(--s-10);
}
.footer__brand h3 {
  font-family: var(--font-heading);
  color: var(--c-white);
  font-size: 1.3rem;
  margin-bottom: var(--s-3);
}
.footer__brand p {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-bottom: var(--s-5);
}
.footer__col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--s-4);
}
.footer__links { display: flex; flex-direction: column; gap: var(--s-2); }
.footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer__links a:hover { color: var(--c-white); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8rem;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.footer__social {
  display: flex;
  gap: var(--s-3);
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: all var(--t-fast);
}
.footer__social a:hover {
  background: rgba(255,255,255,.1);
  color: var(--c-white);
}
.footer__social svg { width: 16px; height: 16px; stroke: currentColor; }

/* ─── Badge statuts ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-nouvelle     { background: #EFF6FF; color: #1D4ED8; }
.badge-etude        { background: #FEF3C7; color: #92400E; }
.badge-devis        { background: #F0FDF4; color: #15803D; }
.badge-accepte      { background: #DCFCE7; color: #15803D; }
.badge-paiement     { background: #D1FAE5; color: #065F46; }
.badge-preparation  { background: #FEF9C3; color: #713F12; }
.badge-expediee     { background: #DBEAFE; color: #1E40AF; }
.badge-livree       { background: #D1FAE5; color: #065F46; }
.badge-annulee      { background: #FEE2E2; color: #991B1B; }

/* ─── Toast notifications ───────────────────────────────────── */
.toast-container {
  position: fixed;
  top: var(--s-6);
  right: var(--s-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 380px;
  width: 100%;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--c-white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--c-accent);
  animation: slideIn var(--t-base) ease-out;
}
.toast--success { border-left-color: var(--c-success); }
.toast--error   { border-left-color: var(--c-error); }
.toast__icon svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast__title   { font-size: .9rem; font-weight: 600; color: var(--c-text); }
.toast__msg     { font-size: .83rem; color: var(--c-muted); margin-top: 2px; }
.toast__close   { margin-left: auto; color: var(--c-muted); cursor: pointer; flex-shrink: 0; }
.toast__close:hover { color: var(--c-text); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ─── Spinner ───────────────────────────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Utilitaires ───────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.mt-2  { margin-top: var(--s-2); }
.mt-4  { margin-top: var(--s-4); }
.mt-6  { margin-top: var(--s-6); }
.mt-8  { margin-top: var(--s-8); }
.mb-4  { margin-bottom: var(--s-4); }
.mb-6  { margin-bottom: var(--s-6); }
.d-flex  { display: flex; }
.gap-4   { gap: var(--s-4); }
.items-center { align-items: center; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .quick-form__inner { grid-template-columns: 1fr; gap: var(--s-10); }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .navbar__nav { display: none; }
  .navbar__mobile-btn { display: flex; }
  .navbar__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    padding: var(--s-6) var(--s-6);
    gap: var(--s-4);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .hero { min-height: auto; }
  .hero__content { padding-block: var(--s-16); }
  .hero__stats { gap: var(--s-6); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .steps__grid { grid-template-columns: 1fr 1fr; }
  .steps__grid::before { display: none; }
  .categories__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .trust__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .form-row { grid-template-columns: 1fr; }
  .form-row--3 { grid-template-columns: 1fr; }
  .toast-container { top: auto; bottom: var(--s-6); right: var(--s-4); left: var(--s-4); max-width: none; }
}

@media (max-width: 480px) {
  .steps__grid { grid-template-columns: 1fr; }
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .quick-form__card { padding: var(--s-6); }
  h1 { font-size: 2rem; }
}

/* ─── Animations au scroll ──────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--t-slow), transform var(--t-slow);
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
