/* ═══════════════════════════════════════════════════════
   ESIC Online — contact-legal.css
═══════════════════════════════════════════════════════ */

/* ─── CONTACT HERO ─────────────────────────────────── */
.esic-contact-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1A2C75 60%, #1A2C75 100%);
  padding: 4rem 0 3rem;
  color: #fff;
}
.esic-contact-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.875rem;
}
.esic-contact-hero__desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  line-height: 1.65;
}

/* ─── CONTACT LAYOUT ───────────────────────────────── */
.esic-contact { background: #F8FAFC; padding-bottom: 5rem; }

.esic-contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 3rem 0 4rem;
}

.esic-contact-form-wrap {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.esic-contact-form-wrap__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #F1F5F9;
}

/* ─── FORM ─────────────────────────────────────────── */
.esic-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.esic-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}

.esic-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.esic-form__field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.esic-form__field label span {
  color: #ef4444;
  font-weight: 700;
}

.esic-form__field input,
.esic-form__field select,
.esic-form__field textarea {
  width: 100%;
  padding: 0.7rem 0.875rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: #0F172A;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 0.5rem;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  outline: none;
}

.esic-form__field input:focus,
.esic-form__field select:focus,
.esic-form__field textarea:focus {
  border-color: #1A2C75;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 44, 117, 0.12);
}

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

.esic-form__field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2rem;
}

.esic-form__consent {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
}

.esic-form__consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.55;
  cursor: pointer;
}

.esic-form__consent input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #1A2C75;
}

.esic-form__consent a { color: #1A2C75; text-decoration: underline; }

.esic-form__submit {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.esic-form__note {
  font-size: 0.78rem;
  color: #94A3B8;
  margin: 0;
  text-align: center;
}

/* ─── FORM STATES ──────────────────────────────────── */
.esic-form-error {
  background: #FEF2F2;
  border-left: 4px solid #ef4444;
  color: #991B1B;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.esic-form-success {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #ECFDF5, #F0FDFA);
  border: 1px solid #A7F3D0;
  border-radius: 0.875rem;
}
.esic-form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.esic-form-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #064E3B;
  margin-bottom: 0.625rem;
}
.esic-form-success p {
  color: #065F46;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

/* ─── ASIDE ────────────────────────────────────────── */
.esic-contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 90px;
}

.esic-contact-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 0.875rem;
  padding: 1.5rem;
}
.esic-contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.875rem;
}
.esic-contact-card p {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.esic-contact-card p:last-child { margin-bottom: 0; }
.esic-contact-card a { color: #1A2C75; text-decoration: none; font-weight: 600; }
.esic-contact-card a:hover { text-decoration: underline; }
.esic-contact-card__phone {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A !important;
}

.esic-contact-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #334155;
}
.esic-contact-card__list li::first-letter { font-weight: 700; color: #10B981; }

.esic-contact-card--info {
  background: linear-gradient(135deg, #F8FAFC, #F1F5F9);
  border-color: #E2E8F0;
}
.esic-contact-card--qualiopi {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border-color: #5BD3A8;
}
.esic-contact-card--qualiopi h3 { color: #78350F; }
.esic-contact-card--qualiopi p  { color: #92400E; }

/* ─── LEGAL PAGES ──────────────────────────────────── */
.esic-page__content {
  font-size: 0.93rem;
  line-height: 1.85;
  color: #334155;
}
.esic-page__content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0F172A;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #F1F5F9;
}
.esic-page__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0F172A;
  margin: 1.75rem 0 0.625rem;
}
.esic-page__content p { margin-bottom: 1.1rem; }
.esic-page__content ul, .esic-page__content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}
.esic-page__content li { margin-bottom: 0.5rem; }
.esic-page__content a {
  color: #1A2C75;
  text-decoration: underline;
}
.esic-page__content strong { color: #0F172A; font-weight: 600; }
.esic-page__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.88rem;
}
.esic-page__content th,
.esic-page__content td {
  padding: 0.625rem 0.875rem;
  border: 1px solid #E2E8F0;
  text-align: left;
}
.esic-page__content th {
  background: #F8FAFC;
  font-weight: 700;
}

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1023px) {
  .esic-contact-layout { grid-template-columns: 1fr; }
  .esic-contact-aside  { position: static; order: 2; }
}
@media (max-width: 639px) {
  .esic-contact-form-wrap { padding: 1.5rem; }
  .esic-form__row { grid-template-columns: 1fr; }
}
/* ── Partenaire : radios type partenariat ───────────────────── */
.esic-partners-form__radios {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.esic-partners-radio {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.25rem;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.esic-partners-radio:has(input:checked) {
  border-color: #1A2C75;
  background: #F0F4FF;
}
.esic-partners-radio input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #1A2C75;
  width: 18px;
  height: 18px;
}
.esic-partners-radio span {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.esic-partners-radio strong {
  font-size: .95rem;
  color: #0F172A;
}
.esic-partners-radio small {
  font-size: .8rem;
  color: #64748B;
}

/* ── Hint texte sous la légende ────────────────────────────── */
.esic-partners-form__hint {
  font-size: .85rem;
  color: #64748B;
  margin: -.25rem 0 .75rem;
}
