/* ============================================
   Permanence Juridique Genève — Main Styles
   ============================================ */

/* CSS Variables */
:root {
  --color-primary: #1a365d;
  --color-primary-dark: #0f2440;
  --color-accent: #d4a843;
  --color-accent-hover: #b8922e;
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-text-light: #4b5563;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-success: #059669;
  --color-error: #dc2626;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);

  --container-max: 1200px;
  --container-padding: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo span {
  color: var(--color-accent);
}

.header-contact {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.header-phone {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.header-phone a {
  color: inherit;
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: 0.3s;
}

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.main-nav.active {
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.main-nav a {
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
}

.lang-switch {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.lang-switch a {
  color: var(--color-muted);
}

.lang-switch a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-surface);
}

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

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  position: relative;
  background-image: url('../images/accueil.jpg');
  background-size: cover;
  background-position: center 30%;
  color: var(--color-surface);
  padding: 4rem 0;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 36, 64, 0.82) 0%, rgba(26, 54, 93, 0.72) 100%);
  z-index: 1;
}

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

.hero h1 {
  color: var(--color-surface);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Sections */
.section {
  padding: 3rem 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-muted);
}

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

.domain-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.domain-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.domain-card a {
  color: var(--color-text);
  display: block;
}

.domain-card a:hover {
  color: var(--color-primary);
}

.domain-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.domain-name {
  font-weight: 600;
  font-size: 0.95rem;
}

/* About section */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-border);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  display: block;
}

/* Contact section */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.contact-detail .icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-hours {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.map-embed {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-embed iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--color-text-light);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.form-hint {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.captcha-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--color-bg);
  margin-bottom: 1rem;
}

.form-message {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  display: none;
}

.form-message.success {
  display: block;
  background: #d1fae5;
  color: var(--color-success);
  border: 1px solid #a7f3d0;
}

.form-message.error {
  display: block;
  background: #fee2e2;
  color: var(--color-error);
  border: 1px solid #fecaca;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  background: var(--color-surface);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-accent);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 1.25rem 1rem;
  margin: 0;
  color: var(--color-text-light);
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: var(--color-surface);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--color-surface);
  opacity: 0.8;
}

.site-footer a:hover {
  opacity: 1;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--color-surface);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-col p,
.footer-col li {
  opacity: 0.8;
  margin-bottom: 0.4rem;
}

.footer-col ul {
  list-style: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  opacity: 0.6;
  font-size: 0.8rem;
}

/* Landing page specifics */
.landing-hero {
  background: var(--color-surface);
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

.landing-hero h1 {
  margin-bottom: 0.75rem;
  text-align: center;
}

.landing-hero .price-tag {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-surface);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.problem-section,
.solution-section {
  max-width: 800px;
  margin: 0 auto;
}

.problem-section h2,
.solution-section h2 {
  margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--color-muted);
}

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

/* Responsive */
@media (min-width: 640px) {
  .domains-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block !important;
    position: static;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 1.5rem;
  }

  .header-contact {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr 2fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 5rem 0;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}
