/* ============================================================
   DIGIBLOCK — style.css
   Agence développement web & SEO
   ============================================================ */

/* === Variables ============================================= */
:root {
  --bg:             #0A0A0A;
  --bg-card:        #141414;
  --bg-card-hover:  #1C1C1C;
  --bg-dark:        #0D0D13;
  --border:         #222222;
  --border-hover:   #333333;
  --text:           #F0F0F0;
  --text-muted:     #888888;
  --text-subtle:    #444444;
  --accent:         #4F63F5;
  --accent-hover:   #3D50E8;
  --accent-glow:    rgba(79, 99, 245, 0.18);
  --radius:         12px;
  --radius-sm:      8px;
  --transition:     0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* === Container ============================================= */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Buttons =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(79, 99, 245, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-sm  { padding: 9px 18px;  font-size: 13px; }
.btn-lg  { padding: 15px 30px; font-size: 15px; }
.btn-full{ width: 100%; padding: 14px 20px; font-size: 15px; }

/* === Header / Nav ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.88);
  border-color: var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links li a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links li a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Sections ============================================== */
.section { padding: 104px 0; }

.section--dark {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--contact {
  background: linear-gradient(160deg, var(--bg) 0%, #0D0D1C 100%);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* === Hero ================================================== */
.hero {
  position: relative;
  padding: 168px 0 108px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(79, 99, 245, 0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79, 99, 245, 0.08);
  border: 1px solid rgba(79, 99, 245, 0.22);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.07;
  margin-bottom: 24px;
}
.hero-title .accent { color: var(--accent); }

.hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 68px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.stat-label { font-size: 13px; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* === Cards ================================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

/* === Services ============================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.service-card--featured {
  border-color: rgba(79, 99, 245, 0.4);
  background: linear-gradient(145deg, rgba(79, 99, 245, 0.07) 0%, var(--bg-card) 60%);
}
.service-card--featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 48px rgba(79, 99, 245, 0.15);
}

.service-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--accent);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
}

.service-icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.service-list {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 1px;
}

/* === Expertise ============================================= */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}

.expertise-content .section-title,
.expertise-content .section-desc {
  text-align: left;
}
.expertise-content .section-title { margin-bottom: 16px; }
.expertise-content .section-desc  { margin-bottom: 40px; }

.expertise-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.point-icon {
  color: var(--accent);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}
.point h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.point p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.expertise-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: #0F0F17;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.stat-card--accent {
  background: rgba(79, 99, 245, 0.06);
  border-color: rgba(79, 99, 245, 0.28);
}

.big-number {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1;
  color: var(--text);
}
.stat-card--accent .big-number { color: var(--accent); }
.big-label { font-size: 14px; color: var(--text-muted); }

/* === Process =============================================== */
.process-grid {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.process-step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.process-step:hover {
  border-color: rgba(79, 99, 245, 0.3);
  transform: translateY(-2px);
}

.step-number {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 16px;
}
.process-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.process-arrow {
  color: var(--text-subtle);
  font-size: 20px;
  flex-shrink: 0;
  align-self: center;
}

/* === Contact =============================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 88px;
  align-items: start;
}

.contact-content .section-title,
.contact-content .section-desc { text-align: left; }

.contact-info { margin-top: 36px; }
.contact-email {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  transition: opacity var(--transition);
}
.contact-email:hover { opacity: 0.75; }
.contact-note { font-size: 13px; color: var(--text-subtle); }

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #0C0C0C;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-subtle); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 99, 245, 0.12);
}

.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group select option { background: #141414; }

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}
.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* === Scroll animations ===================================== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Trust strip =========================================== */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
  background: #0D0D0D;
}

.trust-headline {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 36px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.trust-icon svg { width: 100%; height: 100%; }

.trust-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.1px;
}
.trust-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.form-security-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-subtle);
  justify-content: center;
  margin-top: -4px;
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* === Footer ================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.75;
  max-width: 240px;
}

.footer-links h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links li a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-subtle);
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-subtle); transition: color var(--transition); }
.footer-legal a:hover { color: var(--text-muted); }

/* === Responsive ============================================ */
@media (max-width: 1024px) {
  .expertise-grid { grid-template-columns: 1fr; gap: 56px; }
  .expertise-stats { flex-direction: row; }
  .stat-card { flex: 1; }
  .stat-card:hover { transform: translateY(-2px); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Mobile nav */
  .nav-links {
    display: none;
    position: fixed;
    inset: 70px 0 0 0;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li a:not(.btn) { font-size: 18px; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { padding: 120px 0 72px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 40px; height: 1px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Expertise */
  .expertise-stats { flex-direction: column; }

  /* Process */
  .process-grid { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); align-self: center; margin-top: 0; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-lg { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 24px; }
  .expertise-stats { flex-direction: column; }
  .stat-card:hover { transform: none; }
}
