:root {
  --navy: #12324f;
  --navy-dark: #0b2138;
  --blue: #2f6690;
  --blue-light: #eef4f8;
  --gold: #c8973a;
  --text: #1f2933;
  --muted: #52606d;
  --border: #d8e1e8;
  --danger: #b3261e;
  --success: #1c6b3f;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fbfcfd;
  line-height: 1.6;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  text-decoration: none;
}
.logo img { border-radius: 6px; flex-shrink: 0; }
.logo span { color: var(--gold); font-weight: 400; margin-left: 4px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: #dce6ee; text-decoration: none; font-size: 14px; }
.main-nav a:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.btn-primary { background: var(--gold); color: #1f1300; }
.btn-primary:hover { background: #b6862f; }
.btn-secondary { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn-sm { padding: 8px 16px; font-size: 13px; color: #1f1300; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 64px 0 72px;
  text-align: center;
}
.hero h1 { font-size: 34px; margin: 0 0 16px; }
.hero p { font-size: 17px; color: #cddbe6; max-width: 640px; margin: 0 auto 28px; }
.hero .price-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 22px;
}

/* Sections */
section { padding: 56px 0; }
.section-title { text-align: center; font-size: 26px; margin-bottom: 8px; color: var(--navy); }
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 40px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.step-icon-wrap { position: relative; display: inline-block; margin-bottom: 14px; }
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 12px;
}
.step .num {
  position: absolute;
  top: -8px; right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
  border: 2px solid #fff;
}
.step h3 { font-size: 16px; margin: 0 0 6px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

.docs-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.doc-card {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.doc-card h4 { margin: 0 0 6px; color: var(--navy); }
.doc-card p { margin: 0; font-size: 13px; color: var(--muted); }

.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.pricing-card .amount { font-size: 42px; font-weight: 700; color: var(--navy); }
.pricing-card ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.pricing-card li { padding: 6px 0; font-size: 14px; }
.pricing-card li::before { content: "✓ "; color: var(--success); font-weight: 700; }

.guarantee-note {
  max-width: 640px;
  margin: 40px auto 0;
  background: #fff8e8;
  border: 1px solid #efd9a3;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: #5c4308;
}

/* Forms */
.form-page { max-width: 720px; margin: 0 auto; padding: 48px 20px; }
.form-page h1 { color: var(--navy); font-size: 26px; }
.form-intro { color: var(--muted); margin-bottom: 28px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 26px;
}
fieldset legend {
  font-weight: 700;
  color: var(--navy);
  padding: 0 0 10px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  margin-bottom: 14px;
}

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--text);
}
.form-row .help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-row .form-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
input[type=file] {
  width: 100%;
  padding: 10px 0;
  font-size: 13px;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,102,144,0.15);
}

.form-actions { margin-top: 24px; }
.form-actions .btn { width: 100%; }

/* Flash */
.flash {
  padding: 14px 18px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 14px;
}
.flash-success { background: #e7f5ec; color: var(--success); border: 1px solid #b9e0c6; }
.flash-error { background: #fbeae9; color: var(--danger); border: 1px solid #f0c1bd; }

/* Confirmation / status pages */
.status-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 20px;
  text-align: center;
}
.status-icon { font-size: 48px; margin-bottom: 16px; }
.status-page h1 { color: var(--navy); font-size: 26px; }
.status-page p { color: var(--muted); font-size: 15px; }
.status-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  text-align: left;
  font-size: 14px;
}
.status-card dt { color: var(--muted); font-size: 12px; margin-top: 10px; }
.status-card dd { margin: 2px 0 0; font-weight: 600; }

/* Legal pages */
.legal-page { max-width: 780px; margin: 0 auto; padding: 48px 20px 72px; }
.legal-page h1 { color: var(--navy); }
.legal-page h2 { font-size: 17px; color: var(--navy); margin-top: 30px; }
.legal-page p, .legal-page li { font-size: 14px; color: var(--text); }
.cookie-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.cookie-table th, .cookie-table td { text-align: left; padding: 8px 10px; border: 1px solid var(--border); vertical-align: top; }
.cookie-table th { background: var(--blue-light); color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.cookie-table code { background: var(--blue-light); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* Bandeau cookies */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--navy-dark);
  color: #dce6ee;
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.25);
}
.cookie-banner-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 13.5px; color: #dce6ee; flex: 1 1 380px; }
.cookie-banner a { color: var(--gold); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions button {
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-btn-accept { background: var(--gold); color: #1f1300; }
.cookie-btn-accept:hover { background: #b6862f; }
.cookie-btn-refuse { background: transparent; color: #dce6ee; border: 1px solid rgba(255,255,255,0.3) !important; }
.cookie-btn-refuse:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner-actions { justify-content: flex-end; }
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #b8c6d1;
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
}
.footer-inner strong { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #b8c6d1; text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* Marquee carousels (avis clients / marques) */
.marquee { overflow: hidden; padding: 26px 0 54px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee-scroll 42s linear infinite; }
.marquee-track-brands { animation-duration: 28s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.review-card { flex: 0 0 320px; background: var(--blue-light); border-radius: var(--radius); padding: 22px; }
.review-card .stars { display: flex; gap: 2px; color: var(--gold); margin-bottom: 10px; }
.review-card p { font-style: italic; color: var(--text); font-size: 14px; margin: 0; }
.review-author { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--navy); }

.brand-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 30px;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  white-space: nowrap;
  min-height: 56px;
}
.brand-badge img { max-height: 26px; max-width: 130px; width: auto; object-fit: contain; }

/* Équipe */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.team-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; }
.team-photo-placeholder { display: flex; align-items: center; justify-content: center; background: var(--blue-light); color: var(--blue); }
.team-card h3 { margin: 0 0 4px; font-size: 17px; color: var(--navy); }
.team-role { color: var(--gold); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.team-cv { font-size: 13px; color: var(--muted); margin: 0; }

/* Produits */
.product-card { flex: 0 0 240px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: block; }
.product-card .product-image { width: 100%; height: 150px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.product-card .product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card .product-body { padding: 14px 16px; }
.product-card h4 { margin: 0 0 6px; font-size: 14px; color: var(--navy); }
.product-card .product-price { font-weight: 700; color: var(--gold); }
.product-card .product-link { font-size: 12px; color: var(--blue); margin-top: 6px; }

.process-illustration { max-width: 900px; margin: 0 auto; }
.process-illustration svg { width: 100%; height: auto; display: block; }

@media (max-width: 760px) {
  .process-illustration { display: none; }
  .steps, .docs-list, .form-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
