/* Variables & Palette Officielle LesPagesBleues.ca */
:root {
  --pb-blue-dark: #003366;
  --pb-blue: #0055A5;
  --pb-blue-light: #0284c7;
  --pb-blue-soft: #e0f2fe;
  --pb-blue-bg: #f0f7ff;
  
  --pb-gold: #F59E0B;
  --pb-gold-hover: #D97706;
  --pb-gold-light: #FEF3C7;

  --pb-text-dark: #0f172a;
  --pb-text-muted: #475569;
  --pb-border: #e2e8f0;
  --pb-bg-gray: #f8fafc;
  --pb-white: #ffffff;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 51, 102, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 51, 102, 0.12);
}

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

body {
  font-family: var(--font-sans);
  color: var(--pb-text-dark);
  background-color: var(--pb-bg-gray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header de Navigation */
.site-header {
  background: var(--pb-white);
  border-bottom: 1px solid var(--pb-border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s;
}

.brand-logo:hover {
  opacity: 0.9;
}

.logo-dark {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Boutons Stylisés */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--pb-gold);
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background-color: var(--pb-gold-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--pb-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--pb-blue);
  border: 1.5px solid var(--pb-blue);
}

.btn-outline:hover {
  background-color: var(--pb-blue-soft);
}

.btn-large {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Bannière Hero */
.hero-section {
  background: linear-gradient(135deg, #003366 0%, #0055A5 65%, #0284c7 100%);
  color: var(--pb-white);
  padding: 4.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.domain-name-highlight {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: var(--pb-gold-light);
  border-bottom: 3px solid var(--pb-gold);
  padding: 0.1rem 0.6rem;
  border-radius: 4px;
  word-break: break-all;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Zone Publicitaire AdServer */
.ad-section {
  padding: 2.5rem 1.5rem 1.5rem;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.ad-card-wrapper {
  background: var(--pb-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--pb-border);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  overflow: hidden;
}

.ad-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.ad-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pb-text-muted);
  letter-spacing: 0.05em;
}

.ad-sponsor-link {
  font-size: 0.8rem;
  color: var(--pb-blue-light);
  text-decoration: none;
}

.ad-sponsor-link:hover {
  text-decoration: underline;
}

.ad-container-slot {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  border: 1px dashed var(--pb-border);
}

.parking-placement {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vitrine Partenaires Répertoire */
.directory-section {
  padding: 3rem 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--pb-blue-dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--pb-text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--pb-blue-light);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pb-blue-dark);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--pb-text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-link-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pb-blue);
  margin-top: auto;
}

/* Section Appel à l'action Hébergement */
.cta-banner-section {
  padding: 1.5rem 1.5rem 3.5rem;
}

.cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--pb-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}

.cta-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-desc {
  font-size: 0.98rem;
  color: #94a3b8;
  max-width: 600px;
}

/* Modale */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--pb-white);
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--pb-text-muted);
  cursor: pointer;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pb-blue-dark);
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--pb-text-muted);
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pb-text-dark);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--pb-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--pb-text-dark);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--pb-blue);
  box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.15);
}

.form-feedback {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-feedback.success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Footer Standardisé */
.site-footer {
  background-color: #0b192c;
  color: #cbd5e1;
  padding: 3.5rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 380px;
}

.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--pb-gold);
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.signature a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.signature a:hover {
  color: var(--pb-gold);
  text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .header-actions .btn-outline {
    display: none;
  }
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
