/* ================================================================
   DIMPROTECH.BE — Stylesheet
   Theme : Dark "Bleu corporate"
   ================================================================ */

/* ----- 1. Fonts (self-hostée, voir assets/fonts/README.txt) ----- */
/* Décommentez après avoir déposé les .woff2 dans assets/fonts/
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
}
*/

/* ----- 2. CSS Variables ----- */
:root {
  --bg: #0A0E1A;
  --bg-card: #141925;
  --bg-elevated: #1A2030;
  --bg-overlay: rgba(20, 25, 37, 0.85);
  --border: #232A3D;
  --border-strong: #2E374D;

  --text: #EAEEF5;
  --text-muted: #9BA4B5;
  --text-dim: #6B7387;

  --accent: #3B82F6;
  --accent-hover: #60A5FA;
  --accent-muted: #1E3A8A;
  --accent-glow: rgba(59, 130, 246, 0.15);

  --success: #22C55E;
  --danger: #EF4444;
  --warning: #F59E0B;

  --container: 1200px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 8px 24px rgba(59, 130, 246, 0.25);

  --header-h: 72px;
  --transition: 200ms ease;
}

/* ----- 3. Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: white; }

/* ----- 4. Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ----- 5. Typography ----- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { color: var(--text-muted); }

.text-accent { color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  background: var(--accent-glow);
  border-radius: 999px;
  border: 1px solid var(--accent-muted);
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 { margin-bottom: 1rem; }
.section-lead { font-size: 1.1rem; }

/* ----- 6. Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn .icon { width: 16px; height: 16px; }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

.btn--primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ----- 7. Header ----- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: background var(--transition);
}
.header.is-scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: var(--shadow);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text);
  flex-shrink: 0;
}
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-muted));
  color: white;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-accent);
}
.logo__text { font-size: 0.95rem; letter-spacing: 0.15em; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--text); background: var(--bg-card); }
.nav__cta { margin-left: 0.5rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform 300ms ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 0.85rem 1rem; font-size: 1rem; }
  .nav__cta { margin: 0.5rem 0 0; }
}

/* ----- 8. Sections (espacement vertical) ----- */
section {
  padding: 4rem 0;
}
@media (min-width: 768px) {
  section { padding: 6rem 0; }
}
section + section { border-top: 1px solid var(--border); }

/* ----- 9. HERO ----- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  border-top: none;
}
@media (min-width: 768px) {
  .hero { padding: calc(var(--header-h) + 5rem) 0 6rem; }
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(96, 165, 250, 0.1), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  padding: 0.5rem 1rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-muted);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero__title {
  max-width: 900px;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero__subtitle {
  max-width: 650px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat__value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat__label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ----- 10. AUDIENCE (à qui s'adressent nos services) ----- */
.audience__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .audience__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.audience-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--transition), border-color var(--transition);
}
.audience-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.audience-card--highlight {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border-color: var(--accent-muted);
  box-shadow: 0 0 0 1px var(--accent-muted), var(--shadow-lg);
}
.audience-card__badge {
  position: absolute;
  top: -12px; right: 1.5rem;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.audience-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: var(--radius);
  border: 1px solid var(--accent-muted);
}
.audience-card__icon svg { width: 28px; height: 28px; }
.audience-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}
.audience-card__features li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.audience-card__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.audience-card .btn { align-self: flex-start; margin-top: auto; }

/* ----- 11. SERVICES (cartes 3 colonnes) ----- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-muted);
  background: var(--bg-elevated);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: var(--radius-sm);
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 { color: var(--text); }
.service-card p { font-size: 0.95rem; }
.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.service-card ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ----- 12. EXPERTISE ----- */
.expertise__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .expertise__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .expertise__grid { grid-template-columns: repeat(3, 1fr); }
}

.expertise-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition);
}
.expertise-item:hover { border-color: var(--accent-muted); }
.expertise-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--bg-elevated);
  color: var(--accent);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  margin-bottom: 0.25rem;
}
.expertise-item__icon svg { width: 22px; height: 22px; }
.expertise-item p { font-size: 0.95rem; }

/* ----- 13. VALEURS ----- */
.valeurs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .valeurs__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .valeurs__grid { grid-template-columns: repeat(5, 1fr); }
}

.valeur {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.valeur:hover { border-color: var(--accent-muted); transform: translateY(-3px); }
.valeur__num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.valeur h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.valeur p { font-size: 0.9rem; }

/* ----- 14. ZONES ----- */
.zones__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.zones__list li {
  padding: 0.55rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: default;
}
.zones__list li:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* ----- 15. CONTACT ----- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.contact-item:not(.contact-item--static):hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.contact-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}
.contact-item strong {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .contact__form { padding: 2.5rem; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.form-group label span {
  color: var(--accent);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}
.form-group--checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--accent);
}
.form-group--checkbox label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-group--checkbox label a { color: var(--accent); text-decoration: underline; }

.form-feedback {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: none;
}
.form-feedback.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}
.form-feedback.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

/* ----- 18. FOOTER ----- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  margin-top: 2rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 640px) {
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}

.footer__brand .logo { margin-bottom: 1rem; }
.footer__brand p { font-size: 0.9rem; max-width: 320px; margin-bottom: 1.25rem; }

.footer__social {
  display: flex;
  gap: 0.5rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.footer__social svg { width: 18px; height: 18px; }

.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col ul li, .footer__col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer__col ul a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}
.footer__bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
@media (min-width: 640px) {
  .footer__bottom .container { flex-direction: row; justify-content: space-between; }
}

/* ----- 19. Animations au scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ----- 21. Focus visibles (a11y) ----- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- 22. Print ----- */
@media print {
  .header, .footer, .contact__form, .menu-toggle { display: none; }
  body { background: white; color: black; }
  section { page-break-inside: avoid; }
}
