/* ===== PUBLIC HEADER ===== */
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--spacing);
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #e8ecf7;        /* ← Bleu très clair */
  color: #2d3e8f;  
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 0.9rem;
}

.brand-link strong {
  font-size: 1.1rem;
}

.brand-link small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.public-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  margin-left: 40px;
}

.public-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.public-nav a:hover {
  color: var(--brand);
}

/* ===== HERO SECTION ===== */
.public-hero {
  padding: 80px var(--spacing);
  text-align: center;
  background: linear-gradient(135deg, #e8ecf7 0%, var(--surface) 100%);
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-cta {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== PUBLIC SECTION ===== */
.public-section {
  padding: 60px var(--spacing);
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-grid article {
  padding: 28px;
  background: var(--surface-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  transition: all 0.3s ease;
}

.feature-grid article:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.feature-grid strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-grid p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== SECURITY BAND ===== */
.security-band {
  background: var(--brand-light);
  padding: 60px var(--spacing);
  text-align: center;
}

.security-band > div {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.security-band h2 {
  margin: 0;
}

.security-band p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== PRICING GRID ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.pricing-card {
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pricing-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pricing-duration {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.pricing-amount small {
  display: inline;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  min-height: 50px;
}

.pricing-cta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.pricing-card .primary-button {
  width: 100%;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 40px var(--spacing);
  text-align: center;
  background: var(--surface-soft);
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== AUTH OVERLAY ===== */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: var(--spacing);
}

.auth-overlay.hidden {
  display: none;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.auth-card .close-button {
  position: absolute;
  top: 12px;
  right: 12px;
}

.auth-card > div:first-child {
  margin-bottom: 1.5rem;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.auth-card .primary-button {
  width: 100%;
}

.auth-tab {
  display: none;
}

.auth-tab.active {
  display: block;
}

.form-message {
  padding: 12px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.form-message.error {
  background: #fee2e2;
  color: #dc2626;
}

.form-message.success {
  background: #dcfce7;
  color: #16a34a;
}

.auth-switch {
  text-align: center;
  color: var(--text-secondary);
  margin: 0;
}

.auth-switch button {
  background: none;
  border: none;
  color: var(--brand);
  font-weight: 600;
  padding: 0;
  margin-left: 0.25rem;
  cursor: pointer;
  text-decoration: underline;
}

.auth-switch button:hover {
  color: var(--brand-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .public-header {
    flex-direction: column;
    gap: 20px;
  }

  .public-nav {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .auth-card {
    padding: 28px;
  }
}

/* Style pour les champs requis */
label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

label > input,
label > textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
}

label > input:focus,
label > textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 168, 143, 0.1);
}

/* Message d'erreur pour SIRET */
#register-siret:invalid {
  border-color: var(--danger);
}

/* ===== FORMULAIRE D'INSCRIPTION ===== */
#register-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row label {
  margin-bottom: 0;
}

.full-width {
  grid-column: 1 / -1;
}

.full-width label {
  margin-bottom: 0.5rem;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.support-container{

  margin-left: 32px;
}
