/* ============================================================
   entreprise.css — CSS page entreprise / devis B2B
   Design v2 compatible (DM Sans + Plus Jakarta Sans)
   Classes prefixees .ent- pour isolation
   ============================================================ */

html { scroll-behavior: smooth; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.ent-container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.ent-section { padding: 3.5rem 0; }
.ent-text-center { text-align: center; }

/* ─── HERO ────────────────────────────────────────────────────── */
.ent-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, hsl(249,100%,97%) 0%, hsl(220,60%,97%) 100%);
  padding: 3.5rem 0 3rem;
}
.ent-hero-blob {
  position: absolute; width: 20rem; height: 20rem; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.ent-hero-blob--1 { left: -8rem; top: -6rem; background: hsla(258,62%,30%,0.08); }
.ent-hero-blob--2 { right: -6rem; bottom: -4rem; background: hsla(160,84%,29%,0.06); }

.ent-hero .ent-container { position: relative; z-index: 1; }
.ent-hero h1 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; line-height: 1.15;
  color: hsl(222,47%,11%); letter-spacing: -0.03em;
}
.ent-hero h1 span { color: hsl(258,62%,30%); }
.ent-hero-sub {
  margin-top: 1rem;
  font-size: 1.0625rem; line-height: 1.7;
  color: hsl(220,9%,46%); max-width: 38rem;
}
.ent-hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.25rem;
}
.ent-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.875rem; border-radius: 9999px;
  border: 1px solid hsl(220,13%,91%);
  background: hsla(220,14%,96%,0.5);
  font-size: 0.8125rem; font-weight: 600; color: hsl(222,47%,11%);
}
.ent-badge .check { color: hsl(160,84%,29%); font-weight: 700; }

/* Hero CTA */
.ent-hero-ctas {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin-top: 1.75rem;
}
.ent-btn-hero {
  display: inline-flex; align-items: center;
  height: 3.25rem; padding: 0 2rem;
  border-radius: 0.5rem;
  background: hsl(160,84%,29%); color: hsl(0,0%,100%);
  font-size: 1.0625rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.ent-btn-hero:hover {
  background: hsl(160,74%,24%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.ent-hero-phone {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.9375rem; font-weight: 500;
  color: hsl(258,62%,30%);
  transition: opacity 0.15s;
}
.ent-hero-phone:hover { opacity: 0.8; }

/* ─── CARDS AVANTAGES ─────────────────────────────────────────── */
.ent-avantages { background: hsl(0,0%,100%); }
.ent-avantages h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700; color: hsl(222,47%,11%);
  text-align: center; margin-bottom: 2rem;
}
.ent-cards-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.ent-card {
  border: 1px solid hsl(220,13%,91%);
  border-radius: 0.75rem; padding: 1.5rem;
  background: hsl(0,0%,100%);
  transition: box-shadow 0.2s, transform 0.2s;
}
.ent-card:hover {
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.ent-card-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.625rem;
  background: hsla(258,62%,30%,0.08); color: hsl(258,62%,30%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.875rem;
}
.ent-card h3 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.0625rem; font-weight: 700;
  color: hsl(222,47%,11%); margin-bottom: 0.375rem;
}
.ent-card p {
  font-size: 0.9rem; line-height: 1.6;
  color: hsl(220,9%,46%);
}

@media (min-width: 640px) {
  .ent-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ent-cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* CTA after avantages */
.ent-avantages-cta {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; margin-top: 2.5rem;
}
.ent-micro-proof {
  font-size: 0.8125rem; color: hsl(220,9%,46%); font-weight: 500;
}
.ent-micro-proof .check { color: hsl(160,84%,29%); font-weight: 700; }

/* ─── FORMULAIRE ──────────────────────────────────────────────── */
.ent-form-section {
  background: hsl(249,100%,97%);
}
.ent-form-section h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700; color: hsl(222,47%,11%);
  text-align: center; margin-bottom: 0.5rem;
}
.ent-form-section .ent-form-sub {
  text-align: center; font-size: 0.9375rem;
  color: hsl(220,9%,46%); margin-bottom: 2rem;
}
.ent-form-wrap {
  max-width: 48rem; margin: 0 auto;
  background: hsl(0,0%,100%);
  border: 1px solid hsl(220,13%,91%);
  border-radius: 0.75rem; padding: 2rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04);
}

.ent-form-row {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .ent-form-row--2 { grid-template-columns: 1fr 1fr; }
}

.ent-label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: hsl(222,47%,11%); margin-bottom: 0.375rem;
}
.ent-label .req { color: hsl(0,60%,45%); margin-left: 2px; }

.ent-input,
.ent-textarea {
  display: block; width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid hsl(220,13%,91%);
  border-radius: 0.5rem;
  font-size: 0.9375rem; color: hsl(222,47%,11%);
  background: hsl(0,0%,100%);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ent-input:focus,
.ent-textarea:focus {
  outline: none;
  border-color: hsl(258,62%,30%);
  box-shadow: 0 0 0 3px hsla(258,62%,30%,0.1);
}
.ent-input.error,
.ent-textarea.error {
  border-color: hsl(0,60%,45%);
  box-shadow: 0 0 0 3px hsla(0,60%,45%,0.1);
}
.ent-textarea { min-height: 5rem; resize: vertical; }

/* Checkboxes grid (formations) */
.ent-checks-grid {
  display: grid; gap: 0.5rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 640px) {
  .ent-checks-grid { grid-template-columns: repeat(3, 1fr); }
}
.ent-check-label {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  border: 1px solid hsl(220,13%,91%);
  font-size: 0.875rem; font-weight: 500;
  color: hsl(222,47%,11%); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ent-check-label:hover { background: hsl(249,100%,97%); }
.ent-check-label input[type="checkbox"] {
  width: 1rem; height: 1rem; accent-color: hsl(258,62%,30%);
  cursor: pointer;
}
.ent-check-label.checked {
  background: hsla(258,62%,30%,0.06);
  border-color: hsl(258,62%,30%);
}

/* Radios (modalite) */
.ent-radios {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.ent-radio-label {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  border: 1px solid hsl(220,13%,91%);
  font-size: 0.875rem; font-weight: 500;
  color: hsl(222,47%,11%); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ent-radio-label:hover { background: hsl(249,100%,97%); }
.ent-radio-label input[type="radio"] {
  accent-color: hsl(258,62%,30%); cursor: pointer;
}
.ent-radio-label.checked {
  background: hsla(258,62%,30%,0.06);
  border-color: hsl(258,62%,30%);
}

/* Separator */
.ent-form-sep {
  border: none; border-top: 1px solid hsl(220,13%,91%);
  margin: 1.5rem 0;
}
.ent-form-opt-title {
  font-size: 0.8125rem; font-weight: 600;
  color: hsl(220,9%,46%); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 1rem;
}

/* Submit button */
.ent-btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; height: 3.25rem;
  margin-top: 1.5rem;
  border: none; border-radius: 0.5rem;
  background: hsl(160,84%,29%); color: hsl(0,0%,100%);
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ent-btn-submit:hover {
  background: hsl(160,74%,24%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ent-btn-submit:disabled {
  opacity: 0.6; cursor: not-allowed;
}
.ent-btn-submit .spinner {
  display: none; width: 1.25rem; height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: ent-spin 0.6s linear infinite;
}
.ent-btn-submit.loading .spinner { display: inline-block; }
.ent-btn-submit.loading .btn-text { display: none; }
@keyframes ent-spin { to { transform: rotate(360deg); } }

/* Error message */
.ent-field-error {
  font-size: 0.75rem; color: hsl(0,60%,45%);
  margin-top: 0.25rem; display: none;
}

/* Success / Error message */
.ent-msg {
  display: none; padding: 1rem 1.25rem;
  border-radius: 0.5rem; margin-top: 1.5rem;
  font-size: 0.9375rem; font-weight: 500; text-align: center;
}
.ent-msg--success {
  background: hsla(160,84%,29%,0.08);
  border: 1px solid hsla(160,84%,29%,0.3);
  color: hsl(160,74%,24%);
}
.ent-msg--error {
  background: hsla(0,60%,45%,0.08);
  border: 1px solid hsla(0,60%,45%,0.3);
  color: hsl(0,60%,45%);
}

/* ─── REASSURANCE ─────────────────────────────────────────────── */
.ent-reassurance {
  background: hsl(0,0%,100%);
  text-align: center;
}
.ent-reassurance p {
  font-size: 0.8125rem; font-weight: 600;
  color: hsl(220,9%,46%); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 1.25rem;
}
.ent-reassurance-logos {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 2rem;
}
.ent-reassurance-logos img {
  height: 2.5rem; object-fit: contain; width: auto;
  filter: grayscale(0.3); transition: filter 0.2s;
}
.ent-reassurance-logos img:hover { filter: grayscale(0); }

/* ─── CTA BOTTOM ──────────────────────────────────────────────── */
.ent-cta-bottom {
  background: hsl(249,100%,97%);
  text-align: center;
}
.ent-cta-bottom h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700; color: hsl(222,47%,11%);
  margin-bottom: 0.5rem;
}
.ent-cta-bottom p {
  font-size: 0.9375rem; color: hsl(220,9%,46%);
  margin-bottom: 1.5rem;
}
.ent-cta-links {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 1rem;
}
.ent-btn-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 0.5rem;
  background: hsl(258,62%,30%); color: hsl(0,0%,100%);
  font-size: 0.9375rem; font-weight: 600;
  transition: opacity 0.15s;
}
.ent-btn-phone:hover { opacity: 0.9; }
.ent-btn-email {
  font-size: 0.9375rem; font-weight: 500;
  color: hsl(258,62%,30%);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (min-width: 768px) {
  .ent-container { padding: 0 2rem; }
  .ent-section { padding: 4.5rem 0; }
  .ent-form-wrap { padding: 2.5rem 2rem; }
  .ent-hero { padding: 4.5rem 0 3.5rem; }
}
