/* ==========================================================================
   Proweltek — feuille de style principale
   ========================================================================== */

:root {
  --color-primary: #0b2a4a;
  --color-primary-dark: #071b30;
  --color-primary-light: #133b66;
  --color-accent: #ff7a1a;
  --color-accent-dark: #e0620a;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fa;
  --color-text: #1c2b39;
  --color-text-muted: #5b6b7a;
  --color-border: #e1e7ec;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 42, 74, 0.08);
  --container-width: 1180px;
  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: .8em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-cta {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 122, 26, .35);
}
.btn-cta:hover { background: var(--color-accent-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-light:hover { background: #fff; color: var(--color-primary); }

.btn-block { display: block; width: 100%; text-align: center; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  white-space: nowrap;
}
.logo span { color: var(--color-accent); }
.logo:hover { color: var(--color-primary); }

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 600;
  color: var(--color-primary);
  font-size: .95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  transition: transform .2s ease, opacity .2s 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); }

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open { max-height: 420px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 20px;
  }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 70px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-accent);
}
.hero-stats div span { color: rgba(255,255,255,.75); font-size: .9rem; }

.hero-visual {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 30px;
}
.hero-visual ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hero-visual li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
}
.hero-visual .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-accent); flex-shrink: 0;
}

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ---- Page header (pages internes) ---- */
.page-header {
  background: var(--color-primary);
  color: #fff;
  padding: 54px 0;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: .3em; }
.page-header p { color: rgba(255,255,255,.8); max-width: 60ch; margin: 0 auto; }
.breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,.85); }

/* ---- Sections ---- */
section { padding: 70px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* ---- Grids / cards ---- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(11,42,74,.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-primary);
  color: #fff;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  border: 1px solid var(--color-border);
}
.cat-card h3 { color: #fff; margin: 0; }
.cat-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(11,42,74,.35), rgba(7,27,48,.9));
}
.cat-card span { position: relative; z-index: 1; }
.cat-card h3 { position: relative; z-index: 1; }

/* ---- Bandeau confiance ---- */
.trust-bar {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}
.trust-bar .grid { text-align: center; }
.trust-bar strong { display: block; font-family: var(--font-heading); color: var(--color-primary); }
.trust-bar span { font-size: .85rem; color: var(--color-text-muted); }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 60ch; margin: 0 auto 26px; }
.cta-band .hero-actions { justify-content: center; }

/* ---- Forms ---- */
.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 20px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-primary);
}
.field .required { color: var(--color-accent); }
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: .75em .9em;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--color-text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }
.field-checkbox input { margin-top: 4px; }
.field-checkbox label { font-weight: 400; color: var(--color-text-muted); font-size: .88rem; }

.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-feedback {
  margin-top: 14px;
  font-weight: 600;
  font-size: .92rem;
}
.form-feedback[data-state="success"] { color: #1c7a3d; }
.form-feedback[data-state="error"] { color: #c0392b; }

/* ---- Newsletter (footer) ---- */
.newsletter-field { display: flex; gap: 8px; }
.newsletter-field input {
  flex: 1;
  padding: .65em .9em;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.newsletter-field input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-field button {
  padding: .65em 1.1em;
  border-radius: 8px;
  border: none;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.newsletter-field button:hover { background: var(--color-accent-dark); }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-col p { color: rgba(255,255,255,.65); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.75); }
.footer-col a:hover { color: var(--color-accent); }
.logo-footer { color: #fff; margin-bottom: 14px; display: inline-block; }
address { font-style: normal; color: rgba(255,255,255,.65); margin-bottom: 10px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
  font-size: .85rem;
}
.legal-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }

/* ---- Simple content page (legal pages) ---- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose ul { color: var(--color-text-muted); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
