/* DESIGN-01 / PRESENTATION-FORM-02
   Mise en page du formulaire + habillage officiel brochure pour #presentation-detaillee.
   Les couleurs ci-dessous reprennent exactement le bloc `.s1-request` publié sur nunyapermis.com
   (brochure.css). Aucune autre section du site n'est ciblée. */

/* Formulaire détaillé : bandeau officiel (dégradé forêt) + panneau crème. */
.s1 #presentation-detaillee.s1-request {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #102f30, #123f3a 70%, #174d42);
  color: #f7fbf8;
  scroll-margin-top: 95px;
}

.s1 #presentation-detaillee.s1-request .s1-kicker {
  color: #f1bf00;
}

.s1 #presentation-detaillee.s1-request h1,
.s1 #presentation-detaillee.s1-request h2 {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.s1 #presentation-detaillee.s1-request .s1-cta-lead {
  color: #e1ebe6;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.55;
}

.s1 #presentation-detaillee .s1-request-panel {
  padding: 0;
  min-width: 0;
  border-radius: 24px;
  background: transparent;
  color: #172b28;
  box-shadow: none;
}

.s1 #presentation-detaillee .s1-request-panel .s1-form {
  padding: clamp(22px, 3vw, 36px);
  border-radius: 24px;
  background: #fbf8f1;
  box-shadow: 0 24px 46px -24px rgba(0, 0, 0, 0.45);
}

.s1 #presentation-detaillee .s1-request-panel h3 {
  color: #133d33;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.18;
}

.s1 #presentation-detaillee .s1-request-panel .s1-muted,
.s1 #presentation-detaillee .s1-request-panel .d01-hint,
.s1 #presentation-detaillee .s1-request-panel .d01-stepof {
  color: #263a35;
}

.d01-request-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.d01-request-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.d01-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.d01-form {
  gap: 16px;
}

.d01-stepof {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.d01-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.d01-legend {
  display: block;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
}

.s1-form .d01-legend {
  display: block;
}

.s1-form .d01-legend span {
  display: inline;
  font-weight: 500;
}

.d01-hint {
  font-size: 13px;
}

.d01-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}

.d01-choices--3 {
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
}

.d01-choices--list {
  grid-template-columns: minmax(0, 1fr);
}

.d01-choice {
  min-height: 44px;
  align-items: center;
}

.d01-choice input {
  margin: 0;
}

/* Zone de texte : mêmes jetons que .s1-field input (aucune valeur nouvelle). */
.s1-field .d01-textarea {
  border: 1.5px solid var(--np-stone-400);
  background: var(--np-white);
  color: var(--np-night);
  border-radius: 14px;
}

.s1-field .d01-textarea[aria-invalid='true'] {
  border: 2px solid var(--np-danger-text);
}

.d01-textarea {
  width: 100%;
  min-height: 96px;
  box-sizing: border-box;
  padding: 12px 16px;
  font: inherit;
  resize: vertical;
}

.d01-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.s1-form.d01-form .d01-actions .s1-btn {
  width: auto;
  flex: 1 1 0;
}

.s1-form.d01-form .d01-actions .s1-btn {
  white-space: nowrap;
}

/* Dernière étape : envoi en premier, pleine largeur ; Retour dessous. */
.d01-actions--final {
  flex-direction: column-reverse;
}

.s1-form.d01-form .d01-actions--final .s1-btn {
  flex: none;
  width: 100%;
}

@media (min-width: 1024px) {
  .d01-actions--final {
    flex-direction: row;
  }

  .s1-form.d01-form .d01-actions--final .s1-btn {
    flex: 1 1 0;
    width: auto;
  }

  .s1-form.d01-form .d01-actions--final .s1-btn--primary {
    flex: 2 1 0;
  }
}

.d01-actions > span:empty {
  display: none;
}

.d01-recap {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.d01-recap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
}

.d01-recap-row dt {
  font-size: 14px;
  font-weight: 700;
}

.d01-recap-row dd {
  margin: 0;
  grid-column: 1;
  font-size: 14px;
}

.d01-recap-row .s1-btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

@media (min-width: 560px) {
  .d01-choices--list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .d01-request-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  }
}

@media (min-width: 1024px) {
  .d01-stepper {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Programme : quatre piliers à la place de « Une méthode en trois temps ». */
.d01-pillars {
  grid-template-columns: minmax(0, 1fr);
}

.d01-pillar-chips {
  align-self: end;
  padding-top: 4px;
}

.pg .d01-pillars-link {
  margin: 32px 0 0;
}

@media (min-width: 640px) {
  .pg .d01-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .pg .d01-pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Page Fonctionnalités */
.d01-features h1 {
  margin: 0;
}

.d01-f-lead {
  max-width: 62ch;
  margin: 12px 0 0;
}

.d01-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 20px;
}

.d01-mgmt {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.d01-mgmt-card h3 {
  font-size: 18px;
}

.d01-mgmt-status {
  display: flex;
  align-self: end;
}

@media (min-width: 900px) {
  .pg .d01-mgmt {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.d01-mods-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.d01-toc {
  display: none;
}

.d01-toc ol,
.d01-toc-mobile ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.d01-toc a,
.d01-toc-mobile ol a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.d01-toc-mobile ol {
  padding-bottom: 12px;
}

.d01-mods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.d01-mod {
  scroll-margin-top: 96px;
}

.d01-mod > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
}

.d01-mod > summary::-webkit-details-marker {
  display: none;
}

.d01-mod-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.d01-mod-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.d01-mod-value {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.d01-mod-chips {
  padding-top: 6px;
}

.d01-mod-chev {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.d01-mod[open] .d01-mod-chev svg,
.d01-toc-mobile details[open] .d01-mod-chev svg {
  transform: rotate(180deg);
}

.d01-caps {
  margin: 0;
  padding: 0 0 20px 38px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.d01-caps li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.45;
}

.d01-caps li .s1-chip {
  justify-self: start;
}

@media (max-width: 639px) {
  .d01-mod > summary {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px 0;
  }

  .d01-mod > summary > .pg-method-icon {
    display: none;
  }

  .d01-caps {
    padding: 0 0 16px;
  }

  .d01-caps li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (min-width: 1100px) {
  .d01-mods-grid {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 40px;
  }

  .d01-toc {
    display: block;
    position: sticky;
    top: 96px;
  }

  .d01-toc-mobile {
    display: none;
  }
}

.d01-fcta-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* PRESENTATION-UX-08 — Canal préféré: selectable icon cards (values unchanged). */
.d01-channels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.d01-channel {
  position: relative;
  display: block;
  min-height: 0;
  margin: 0;
  cursor: pointer;
}

.d01-channel input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.d01-channel-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 8px;
  border-radius: 14px;
  border: 1.5px solid var(--np-stone-400, #c9c2b4);
  background: var(--np-white, #fff);
  color: var(--np-night, #172b28);
  text-align: center;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.d01-channel-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 71, 58, 0.08);
  color: #10473a;
}

.d01-channel-ico--wa {
  background: rgba(37, 211, 102, 0.12);
}

.d01-channel-ico svg {
  display: block;
}

.d01-channel-label {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}

.d01-channel:hover .d01-channel-face {
  border-color: rgba(16, 71, 58, 0.45);
  box-shadow: 0 8px 18px -14px rgba(16, 71, 58, 0.55);
}

.d01-channel:has(input:checked) .d01-channel-face,
.d01-channel input:checked + .d01-channel-face {
  border-color: #10473a;
  background: rgba(16, 71, 58, 0.08);
  box-shadow: 0 0 0 1px rgba(241, 191, 0, 0.55), 0 10px 20px -16px rgba(16, 71, 58, 0.65);
}

.d01-channel:has(input:focus-visible) .d01-channel-face,
.d01-channel input:focus-visible + .d01-channel-face {
  outline: 3px solid #f1bf00;
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .d01-channels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .d01-channel-face {
    min-height: 80px;
    padding: 10px 4px;
    gap: 6px;
  }

  .d01-channel-label {
    font-size: 12px;
  }

  .d01-channel-ico {
    width: 32px;
    height: 32px;
  }

  .d01-channel-ico svg {
    width: 20px;
    height: 20px;
  }
}

/* CONTACT-CLEANUP-10 — compact direct links under preferred-channel radios */
.d01-direct {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 71, 58, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.d01-direct-prompt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--np-stone-700, #5a6b64);
}

.d01-direct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.d01-direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(16, 71, 58, 0.22);
  background: #fff;
  color: var(--np-night, #14201c) !important;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none !important;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.d01-direct-btn:hover {
  border-color: rgba(16, 71, 58, 0.45);
  background: rgba(16, 71, 58, 0.04);
}

.d01-direct-btn:focus-visible {
  outline: 3px solid var(--np-focus, #f1bf00);
  outline-offset: 2px;
}

.d01-direct-btn .d01-channel-ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.d01-direct-btn .d01-channel-ico svg {
  width: 14px;
  height: 14px;
}

.d01-direct-label {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .d01-direct-actions {
    width: 100%;
  }

  .d01-direct-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
