/* Compléments fonctionnels de la landing page.
   Les styles de base reproduisant la maquette restent intégrés à index.html
   afin de faciliter une première prévisualisation autonome. */

[hidden] {
  display: none !important;
}

.edf26 .btn {
  white-space: normal;
}

.edf26 .product-card[hidden] {
  display: none !important;
}

.edf26 .product-card {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.edf26 .product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(0, 34, 68, 0.1);
}

.edf26 .product-card.is-selected {
  transform: none;
}

.edf26 .ref {
  display: grid;
  gap: 2px;
}

.edf26 .ref span {
  display: block;
}

.edf26 .select-control,
.edf26 .qty button,
.edf26 .filter {
  touch-action: manipulation;
}

.edf26 .qty button:disabled {
  cursor: not-allowed;
  color: #8c979f;
  background: #f3f5f6;
}

.edf26 .advice.is-selected {
  border-style: solid;
  border-color: var(--navy);
  background: var(--blue-100);
}

.edf26 .summary-bar[hidden] {
  display: none;
}

.edf26 .selected-list__empty {
  color: rgba(255, 255, 255, 0.78);
}

.edf26 .form-step {
  animation: edf26-fade-in 180ms ease both;
}

.edf26 .project-fieldset {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.edf26 .project-fieldset legend {
  width: auto;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.edf26 .checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.edf26 .choice {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.edf26 .choice input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: var(--navy);
}

.edf26 .choice:has(input:checked) {
  border-color: var(--navy);
  background: var(--blue-100);
}

.edf26 .choice--advice {
  align-items: center;
}

.edf26 .choice--privacy {
  margin-top: 18px;
  color: var(--charcoal);
  font-weight: 400;
}

.edf26 .choice--privacy a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.edf26 .selection-recap {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 16px;
  border-left: 4px solid var(--blue-500);
  border-radius: 8px;
  background: var(--blue-050);
  color: var(--charcoal);
  font-size: 13px;
}

.edf26 .selection-recap strong {
  color: var(--navy);
}

.edf26 .selection-recap ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.edf26 .field-error {
  margin: 8px 0 0;
  color: var(--red-700);
  font-size: 12px;
  font-weight: 700;
}

.edf26 .field input.is-invalid,
.edf26 .field textarea.is-invalid,
.edf26 .choice.is-invalid,
.edf26 .project-fieldset.is-invalid .choice {
  border-color: var(--red-700);
}

.edf26 .field .invalid-feedback {
  display: block;
  margin: 0;
  color: var(--red-700);
  font-size: 12px;
}

.edf26 .form-alert {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.edf26 .form-alert--error {
  border: 1px solid #f2b8b5;
  background: var(--red-100);
  color: var(--red-700);
}

.edf26 .form-actions--step-two {
  align-items: stretch;
}

.edf26 .form-actions--step-two .btn {
  flex: 1 1 0;
}

.edf26 .form-success {
  padding: 36px 24px;
  border: 1px solid #b8dfca;
  border-radius: 10px;
  background: var(--green-100);
  text-align: center;
}

.edf26 .form-success__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.edf26 .form-success h3 {
  color: var(--green-700);
}

.edf26 .form-success p {
  max-width: 560px;
  margin: 0 auto;
}

.edf26 .honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.edf26 .is-submitting {
  cursor: wait;
  opacity: 0.72;
}

@keyframes edf26-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  .edf26 .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .edf26.has-selection {
    padding-bottom: 92px;
  }

  .edf26 .summary-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 72px;
    margin: 0;
    padding: 10px 10px 10px 14px;
    border-radius: 0;
  }

  .edf26 .summary-bar__info {
    gap: 8px;
  }

  .edf26 .summary-bar__divider,
  .edf26 .summary-bar__count:nth-of-type(2) {
    display: none;
  }

  .edf26 .summary-bar__count {
    display: grid;
    gap: 0;
    min-width: 42px;
    line-height: 1.1;
  }

  .edf26 .summary-bar__count strong {
    font-size: 20px;
  }

  .edf26 .summary-bar .btn {
    min-height: 52px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .edf26 .form-actions--step-two {
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edf26 *,
  .edf26 *::before,
  .edf26 *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
