/* ═══════════════════════════════════════════════════
   ABCOM Formation Plugin — Styles Frontend
   ═══════════════════════════════════════════════════ */

:root {
  --abcom-green:       #1D6B47;
  --abcom-green-dark:  #145034;
  --abcom-green-light: #e8f5ee;
  --abcom-blue:        #1A3A5C;
  --abcom-amber:       #f0a500;
  --abcom-red:         #dc3545;
  --abcom-text:        #333333;
  --abcom-muted:       #666666;
  --abcom-border:      #e0e0e0;
  --abcom-bg:          #f8f9fa;
  --abcom-radius:      10px;
  --abcom-shadow:      0 4px 20px rgba(0,0,0,0.08);
}

/* ─── LANDING ──────────────────────────────────────── */
.abcom-landing { font-family: 'Arial', sans-serif; color: var(--abcom-text); }

/* Hero */
.abcom-hero {
  background: linear-gradient(135deg, #0f3d25 0%, #1D6B47 50%, #2a8a5c 100%);
  color: #fff;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.abcom-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.abcom-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.abcom-hero-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff;
}
.abcom-hero-accent { color: #7ddba3; }
.abcom-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 28px;
  font-style: italic;
}
.abcom-hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.abcom-hero-meta span {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
}
.abcom-btn-hero {
  display: inline-block;
  background: #fff;
  color: var(--abcom-green);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.abcom-btn-hero:hover { background: var(--abcom-amber); color: #fff; transform: translateY(-2px); }

/* Partners */
.abcom-partners { background: var(--abcom-blue); padding: 20px 40px; text-align: center; }
.abcom-partners-label { color: rgba(255,255,255,0.6); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 12px; }
.abcom-partners-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.abcom-partner-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* Stats */
.abcom-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--abcom-green);
}
.abcom-stat-item { padding: 28px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.abcom-stat-item:last-child { border-right: none; }
.abcom-stat-number { font-size: 42px; font-weight: 700; color: #fff; line-height: 1; }
.abcom-stat-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 6px; }

/* Sections */
.abcom-section { padding: 64px 40px; }
.abcom-section-alt { background: var(--abcom-bg); }
.abcom-section-inner { max-width: 1100px; margin: 0 auto; }
.abcom-section-inner.abcom-center { text-align: center; }
.abcom-section-inner:not(.abcom-center) { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.abcom-section-title { font-size: 28px; font-weight: 700; color: var(--abcom-blue); margin: 0 0 16px; }
.abcom-section-intro { font-size: 16px; color: var(--abcom-muted); max-width: 700px; margin: 0 auto 36px; line-height: 1.7; }
.abcom-section-text p { color: var(--abcom-muted); line-height: 1.8; margin: 0 0 14px; }

/* Highlight box */
.abcom-highlight-box {
  background: var(--abcom-green-light);
  border-left: 4px solid var(--abcom-green);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--abcom-green-dark);
  line-height: 1.6;
}

/* Cert box */
.abcom-cert-box {
  background: var(--abcom-blue);
  color: #fff;
  border-radius: var(--abcom-radius);
  padding: 32px;
  text-align: center;
}
.abcom-cert-icon { font-size: 48px; margin-bottom: 16px; }
.abcom-cert-box h3 { font-size: 20px; margin: 0 0 12px; }
.abcom-cert-box p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; margin: 0 0 20px; }
.abcom-iso-badges { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.abcom-iso-badges span {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
}

/* Cible grid */
.abcom-cible-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.abcom-cible-item {
  background: #fff;
  border: 1px solid var(--abcom-border);
  border-radius: var(--abcom-radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  font-size: 14px;
  color: var(--abcom-text);
  line-height: 1.5;
}
.abcom-cible-icon { font-size: 24px; flex-shrink: 0; }

/* Modules */
.abcom-modules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
.abcom-module-card {
  background: #fff;
  border: 1px solid var(--abcom-border);
  border-radius: var(--abcom-radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.abcom-module-card:hover { border-color: var(--abcom-green); box-shadow: var(--abcom-shadow); }
.abcom-module-num {
  width: 40px;
  height: 40px;
  background: var(--abcom-green);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.abcom-module-body h4 { font-size: 14px; font-weight: 700; color: var(--abcom-blue); margin: 0 0 6px; }
.abcom-module-body p  { font-size: 13px; color: var(--abcom-muted); margin: 0; line-height: 1.5; }

/* Conditions */
.abcom-conditions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.abcom-condition-item {
  background: #fff;
  border: 1px solid var(--abcom-border);
  border-radius: var(--abcom-radius);
  padding: 24px;
  text-align: center;
}
.abcom-cond-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.abcom-condition-item strong { display: block; font-size: 16px; color: var(--abcom-blue); margin-bottom: 8px; }
.abcom-condition-item p { font-size: 14px; color: var(--abcom-muted); margin: 0; line-height: 1.5; }

/* Urgence */
.abcom-urgence-section { background: #fff3cd; padding: 24px 40px; }
.abcom-urgence-box {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.abcom-urgence-icon { font-size: 36px; }
.abcom-urgence-text { flex: 1; }
.abcom-urgence-text strong { color: var(--abcom-blue); font-size: 18px; display: block; margin-bottom: 4px; }
.abcom-urgence-text p { color: var(--abcom-muted); margin: 0; font-size: 14px; }
.abcom-btn-urgence {
  background: var(--abcom-red);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

/* Progress bar */
.abcom-progress-wrap { max-width: 600px; margin: 0 auto 32px; }
.abcom-progress-info { display: flex; justify-content: space-between; font-size: 13px; color: var(--abcom-muted); margin-bottom: 8px; }
.abcom-progress-bar { background: #e0e0e0; border-radius: 10px; height: 10px; overflow: hidden; }
.abcom-progress-fill { height: 100%; border-radius: 10px; transition: width 0.6s ease; }

/* Contact */
.abcom-contact-section { background: var(--abcom-blue); }
.abcom-contact-section .abcom-section-title { color: #fff; }
.abcom-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.abcom-contact-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--abcom-radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.6;
}
.abcom-contact-item span { font-size: 28px; flex-shrink: 0; }
.abcom-contact-item strong { display: block; color: #fff; margin-bottom: 4px; }
.abcom-contact-item a { color: #7ddba3; text-decoration: none; }

/* ─── FORMULAIRE ──────────────────────────────────── */
.abcom-form-section { background: var(--abcom-bg); }
.abcom-form-wrap { max-width: 760px; margin: 0 auto; }

.abcom-form {
  background: #fff;
  border: 1px solid var(--abcom-border);
  border-radius: 14px;
  padding: 36px;
  box-shadow: var(--abcom-shadow);
}

.abcom-form-row { margin-bottom: 18px; }
.abcom-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.abcom-field { display: flex; flex-direction: column; }
.abcom-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--abcom-blue);
  margin-bottom: 6px;
}
.req { color: var(--abcom-red); }

.abcom-field input,
.abcom-field select,
.abcom-field textarea {
  border: 1.5px solid var(--abcom-border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--abcom-text);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.abcom-field input:focus,
.abcom-field select:focus,
.abcom-field textarea:focus {
  border-color: var(--abcom-green);
  box-shadow: 0 0 0 3px rgba(29,107,71,0.1);
}
.abcom-field textarea { resize: vertical; min-height: 90px; }

/* Checkbox */
.abcom-checkbox-field {}
.abcom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--abcom-muted);
  line-height: 1.5;
}
.abcom-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--abcom-green);
}

/* Submit */
.abcom-btn-submit {
  width: 100%;
  background: var(--abcom-green);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.3px;
  font-family: inherit;
}
.abcom-btn-submit:hover:not(:disabled) {
  background: var(--abcom-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29,107,71,0.3);
}
.abcom-btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.abcom-form-note { font-size: 12px; color: var(--abcom-muted); text-align: center; margin: 12px 0 0; line-height: 1.5; }

/* Notices */
.abcom-notice {
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}
.abcom-notice-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.abcom-notice-error   { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.abcom-notice-warning { background: #fff3cd; border: 1px solid #ffeeba; color: #856404; }

/* Compteur standalone */
.abcom-compteur { max-width: 400px; margin: 0 auto; text-align: center; }
.abcom-compteur-label { font-size: 14px; font-weight: 600; color: var(--abcom-blue); margin-bottom: 8px; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .abcom-hero { padding: 50px 20px; }
  .abcom-stats { grid-template-columns: repeat(2, 1fr); }
  .abcom-stat-item:nth-child(2) { border-right: none; }
  .abcom-section { padding: 48px 20px; }
  .abcom-section-inner:not(.abcom-center) { grid-template-columns: 1fr; gap: 32px; }
  .abcom-cible-grid { grid-template-columns: 1fr 1fr; }
  .abcom-modules-grid { grid-template-columns: 1fr; }
  .abcom-conditions-grid { grid-template-columns: 1fr; }
  .abcom-contact-grid { grid-template-columns: 1fr; }
  .abcom-form { padding: 24px 20px; }
  .abcom-form-2col { grid-template-columns: 1fr; }
  .abcom-urgence-box { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .abcom-cible-grid { grid-template-columns: 1fr; }
  .abcom-stat-number { font-size: 32px; }
  .abcom-hero-meta { flex-direction: column; align-items: center; }
}
