/* Badr BTP - Standalone HTML styles */
:root {
  --primary: #1B4F98;
  --primary-hover: #163f7a;
  --orange: #F97A1F;
  --green: #30A661;
  --green-hover: #278a50;
  --zinc-400: #a1a1aa;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-900: #18181b;
  --border: rgba(0, 0, 0, 0.1);
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(to bottom, #f5f7fb, #fff);
  color: var(--zinc-900);
  -webkit-font-smoothing: antialiased;
}

.page-wrap {
  min-height: 100vh;
}

.container {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--zinc-900);
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--zinc-600);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zinc-700);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-phone {
  display: none;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-phone:hover {
  background: #f4f4f5;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-lg {
  padding: 0.75rem 1.25rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1rem;
  font-weight: 600;
  color: var(--zinc-900);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
  background: #f4f4f5;
}

.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--green);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-success:hover {
  background: var(--green-hover);
}

.btn-block {
  width: 100%;
}

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

/* Sections */
.section {
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--zinc-900);
  margin: 0;
}

.section-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.eyebrow-orange { color: var(--orange); }
.eyebrow-green { color: var(--green); }

.section-desc {
  color: var(--zinc-600);
  margin: 1rem 0 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--zinc-600); }
.mt-1 { margin-top: 0.25rem; }

/* Hero */
.hero-section .container { padding-top: 0; }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-content {
  max-width: 42rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--orange);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--zinc-900);
  margin: 1.25rem 0 0;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
}

.hero-desc {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--zinc-600);
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

.hero-tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--zinc-600);
}

.tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: #fff;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
}

.stat-blue .stat-value { color: var(--primary); }
.stat-orange .stat-value { color: var(--orange); }
.stat-green .stat-value { color: var(--green); }

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--zinc-600);
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-content .section-title {
  margin-top: 0.5rem;
}

.about-text {
  margin-top: 1.25rem;
  color: var(--zinc-600);
  line-height: 1.75;
}

.about-text p {
  margin: 0 0 1rem;
}

.about-text p:last-child { margin-bottom: 0; }

.siret-box {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.875rem;
  color: var(--zinc-700);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.features-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--zinc-900);
}

.feature-desc {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--zinc-600);
}

/* Services */
.section-head .section-title { margin-top: 0.5rem; }
.section-head .section-desc { margin-top: 1rem; }

.services-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(27, 79, 152, 0.1);
  color: var(--primary);
}

.service-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.service-title {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--zinc-900);
}

.service-desc {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--zinc-600);
}

.service-card .service-link {
  display: block;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.service-card:hover .service-link { color: var(--primary-hover); }

.services-cta {
  margin-top: 2.5rem;
}

.services-cta .text-muted { margin: 0; }
.services-cta .btn-lg { margin-top: 1rem; }

/* Contact */
.contact-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info-card,
.form-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.contact-info-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--zinc-900);
  margin: 0;
}

.contact-info-desc {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--zinc-600);
}

.contact-details {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.contact-item {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--zinc-900);
  text-decoration: none;
}

.contact-item:hover {
  background: #f4f4f5;
}

.contact-item.plain {
  font-weight: 400;
  cursor: default;
}

.contact-item.plain:hover { background: #fff; }

/* Form */
.devis-form {
  display: grid;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zinc-900);
}

.form-group .required { color: #dc2626; }

.form-group input,
.form-group textarea {
  margin-top: 0.25rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1rem;
  color: var(--zinc-900);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(27, 79, 152, 0.1);
}

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

.form-disclaimer {
  font-size: 0.875rem;
  color: var(--zinc-600);
  margin: 0;
}

.form-message {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  display: none;
}

.form-message.visible { display: block; }
.form-message.success { border: 1px solid #a7f3d0; background: #ecfdf5; color: #065f46; }
.form-message.error { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; }

button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 0;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--zinc-900);
}

.footer-sub {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--zinc-600);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--zinc-600);
}

.dot { color: var(--zinc-400); }

/* Show nav on larger screens */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .btn-phone { display: inline-flex; }
}
