/* ==========================================================
   CSS Personnalisé pour Latelier64 - Version Moderne
   Base: Bootstrap 5.3.3
   ========================================================== */

/* 1. Reset & Variables */
:root {
  --primary-color: #2563EB; /* Bleu moderne vif */
  --primary-hover: #1D4ED8;
  --text-dark: #1F2937;    /* Presque noir pour le texte */
  --text-muted: #6B7280;  /* Gris pour le texte secondaire */
  --bg-light: #F8FAFC;    /* Fond de page très clair */
  --bg-white: #ffffff;
  --border-color: #E5E7EB;
  
  /* Police */
  --font-main: 'Inter', sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6; /* Plus d'espace entre les lignes pour la lisibilité */
  -webkit-font-smoothing: antialiased;
}

/* 2. Typographie Global */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.025em; /* Un peu plus serré pour un look moderne */
  color: var(--text-dark);
}

p {
  color: var(--text-muted);
}

.lead {
  color: var(--text-dark);
  font-weight: 500;
}

/* 3. Navbar Modernisée */
.navbar {
  background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent */
  backdrop-filter: blur(8px); /* Effet de flou derrière la barre */
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.brand-logo {
  font-size: 1.75rem !important;
  font-weight: 800;
  color: var(--text-dark) !important;
  display: flex;
  align-items: center;
}

.brand-64 {
  color: var(--primary-color);
  font-style: italic;
  margin-right: 10px;
}

.brand-slogan {
  display: none; /* Cache le slogan trop long dans le logo pour le style */
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 15px !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* 4. Section Hero (Point focal) */
.hero {
  background-color: var(--bg-white); /* Fond blanc pur pour le contraste */
  padding: 160px 0 100px; /* Plus d'espace en haut pour la navbar fixe */
  border-bottom: 1px solid var(--border-color);
}

.hero h1 {
  font-size: 3.5rem; /* Très grand titre */
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 40px;
}

/* Style spécifique pour ton bouton CTA */
.btn-diagnostic {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 700;
  padding: 15px 35px;
  border-radius: 50px; /* Bouton très arrondi */
  font-size: 1.1rem;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-diagnostic:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px); /* Petit saut au survol */
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-diagnostic .badge-gratuit {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 5px;
  font-weight: 600;
}

/* 5. Section Services (Cartes) */
#services {
  background-color: var(--bg-light);
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 60px;
}

/* Style moderne des cartes */
#services .card {
  border: 1px solid #E5E7EB;
  border-radius: 20px; /* Angles très doux */
  background: var(--bg-white);
  padding: 30px;
  transition: all 0.3s ease;
  height: 100%;
}

#services .card:hover {
  transform: translateY(-5px); /* Flottaison au survol */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05); /* Ombre douce */
}

/* Ajout d'une icône factice (CSS pure) avant le titre H5 pour le style */
#services .card h5 {
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

#services .card h5::before {
  content: '✓'; /* Icône simple */
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 900;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

/* Lien "+ de détails" */
.card .details-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.card .details-link:hover {
  text-decoration: underline;
}

/* 6. Section Communes */
.communes-section {
  padding: 80px 0;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.btn-outline-secondary {
  border-radius: 50px;
  padding: 8px 18px;
  border-color: #D1D5DB;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

/* 7. Footer */
footer {
  background-color: #111827; /* Noir corbeau */
  color: #9CA3AF;
  padding: 50px 0;
  font-size: 0.9rem;
}

/* ==========================================================
   Responsive (Adaptation Mobiles)
   ========================================================== */
@media (max-width: 991px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero h2 { font-size: 1.2rem; }
}

/* --- Bloc Contact Rapide --- */
.contact-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.phone-link {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.phone-link:hover {
    color: var(--primary-color);
}

.sms-link {
    color: #059669; /* Un beau vert SMS */
    font-weight: 700;
    text-decoration: underline;
}

.card-footer-msg {
    background: #F1F5F9;
    border-top: 1px solid #E5E7EB;
    color: #64748B;
}

.border-end-md {
    border-right: 1px solid #E5E7EB;
}

/* Ajustement pour mobile */
@media (max-width: 767px) {
    .border-end-md {
        border-right: none;
    }
    .phone-link {
        font-size: 1.5rem;
    }
}