/* ==========================================================
   BTP MODERN CSS - Custom Framework
   ========================================================== */

/* 1. CSS Variables & Reset */
:root {
  --root-slate: #0f172a; /* Deepest blue/slate */
  --slate-dark: #1e293b; /* Primary dark */
  --slate-mid: #334155; /* Secondary text */
  --slate-light: #94a3b8; /* Muted text */
  --bg-color: #f8fafc; /* Main application background */
  --bg-color-alt: #f1f5f9; /* Alternate background for sections */
  --white: #ffffff; /* Card backgrounds, text on dark */
  
  --btp-orange: #ea580c; /* Main accent / Buttons */
  --btp-orange-hover: #c2410c; /* Hover state for accent */
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.2s ease-in-out;
}

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

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

/* 2. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--root-slate);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--btp-orange);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--btp-orange-hover);
}

/* 3. Layout & Structure */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

.bg-alt {
  background-color: var(--bg-color-alt);
}

/* 4. Navbar */
.navbar {
  background-color: var(--root-slate);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--white);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.navbar-brand span {
  color: var(--btp-orange);
}

.navbar-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--btp-orange);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* 5. Hero Section */
.hero {
  position: relative;
  background-image: url('../../images/1.jpg'); /* Default background */
  background-size: cover;
  background-position: center;
  padding: 8rem 0;
  text-align: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 41, 59, 0.85); /* Slate Dark overlay */
}

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

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #e2e8f0;
}

.hero-small {
  padding: 5rem 0;
}
.hero-small h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* 6. Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--btp-orange);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-color: var(--btp-orange-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 7. Cards & Grids (Services, Tarifs) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--btp-orange);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.pricing-price {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--root-slate);
  margin-bottom: 1rem;
}
.pricing-price span {
  font-size: 1rem;
  color: var(--slate-light);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

/* 8. Image Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* 9. Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-info {
  background-color: var(--root-slate);
  color: var(--white);
  padding: 3rem;
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: 2rem;
}

.contact-info p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.contact-info a {
  color: var(--btp-orange);
}

.contact-form {
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--slate-dark);
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  transition: var(--transition);
  background: var(--bg-color);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--btp-orange);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
  background: var(--white);
}

/* Checkbox and Radio styling */
.checkbox-group, .radio-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.checkbox-group label, .radio-group label {
  margin-bottom: 0;
  font-weight: 400;
}

/* 10. Footer */
.footer {
  background-color: var(--root-slate);
  color: var(--slate-light);
  padding: 2rem 0;
  text-align: center;
  border-top: 4px solid var(--btp-orange);
}

.footer p {
  margin-bottom: 0;
  font-size: 0.9rem;
}
.footer a {
  color: var(--white);
}

/* 11. Media Queries (Mobile Responsiveness) */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.5rem; }
  .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar-nav {
    display: none; /* In a real app we'd toggle this with JS, for simplicity we'll just stack or show toggles. But let's show it stacked */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--root-slate);
    padding: 1rem;
    text-align: center;
  }
  .navbar-nav.show {
    display: flex;
  }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 5rem 0; }
}
