/* Générateur de contrat de prestation de services (content/pages-source/generateur-contrat-prestation-services.html,
   produit par docs/seo/brouillons/lot6/generateur.py). S'appuie sur referencer.css (boutons, cartes, champs) et
   n'ajoute que le formulaire en blocs numérotés, les cases de services, le panneau de téléchargement et l'aperçu
   du contrat (sur fond clair, comme une page imprimée). Logique : public/v2/contrat.js. */

.dtd-ctr { --ctr-vert: #2bcaa5; --ctr-texte: #ccc; --ctr-doux: #8a8a8a; --ctr-filet: rgba(255, 255, 255, .12); }
/* Mise en page d'outil, pas d'article : pleine largeur comme /louez-vos-bureaux (aligné sur le logo),
   le formulaire à gauche et une colonne de repères collante à droite à partir de 1 200 px. */

/* Accroche. La ligne verte de referencer.css passe ici derrière la carte du formulaire (floutée),
   pas à travers le titre et l'accroche : sans cartes dans l'accroche, elle gênait la lecture. */
.dtd-ctr-hero { padding-bottom: 0; background: none; }
.dtd-ctr-hero + .dtd-ctr-section { background: url(/wf/media/d6afb3775da22190.avif) no-repeat 50% 0 / 100% auto; }
@media screen and (max-width: 767px) {
  .dtd-ctr-hero + .dtd-ctr-section { background-size: 200% auto; background-position: 0 0; }
}
.dtd-ctr-ariane { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 24px; font-size: .8125rem; color: var(--ctr-doux); }
.dtd-ctr-ariane a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ctr-texte); text-decoration: none; }
.dtd-ctr-ariane a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dtd-ctr-ariane [aria-current] { color: #fff; }
.dtd-ctr .dtd-ref-lead { max-width: 46rem; }
.dtd-ctr-atouts { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
@media screen and (min-width: 992px) {
  .dtd-ctr-atouts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 72rem; margin-top: 36px; }
}
.dtd-ctr-atouts li { position: relative; padding-left: 24px; color: var(--ctr-texte); font-size: 1rem; font-weight: 300; line-height: 1.55; }
.dtd-ctr-atouts li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px;
  background: var(--ctr-vert); border-radius: 3px 0 3px 0; box-shadow: 0 0 14px rgba(124, 236, 210, .5);
}
.dtd-ctr-atouts a, .dtd-ctr-consent a, .dtd-ctr-avocat a, .dtd-ctr-faq a { color: var(--ctr-vert); text-underline-offset: 3px; }
.dtd-ctr-atouts a:hover, .dtd-ctr-consent a:hover, .dtd-ctr-avocat a:hover, .dtd-ctr-faq a:hover { color: #fff; }

.dtd-ctr-section { padding-top: clamp(3rem, 2rem + 4vw, 6rem); }

/* Formulaire et colonne de repères */
.dtd-ctr-aside { display: none; }
.dtd-ctr-bloc { scroll-margin-top: 112px; }
@media screen and (min-width: 1200px) {
  .dtd-ctr-outil { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; column-gap: 2.5rem; align-items: start; }
  .dtd-ctr-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 112px; }
}
@media screen and (min-width: 1680px) {
  .dtd-ctr-outil { grid-template-columns: minmax(0, 1fr) 24rem; column-gap: 3.5rem; }
}
.dtd-ctr-plan, .dtd-ctr-suite { padding: 24px; border: 1px solid #2e2e2e; border-radius: 12px 0 12px 0; background: #0d0d0d; }
.dtd-ctr-suite { background: #1b1b1b; }
.dtd-ctr-aside-titre {
  margin: 0 0 12px; color: var(--ctr-vert); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.dtd-ctr-plan ol, .dtd-ctr-suite ol { margin: 0; padding: 0; list-style: none; }
.dtd-ctr-plan a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; color: var(--ctr-texte);
  font-size: .9375rem; text-decoration: none; transition: color .2s;
}
.dtd-ctr-plan a .dtd-ctr-num { width: 26px; height: 26px; border-color: #3a3a3a; color: var(--ctr-doux); transition: border-color .2s, color .2s, background-color .2s; }
.dtd-ctr-plan a:hover { color: #fff; }
.dtd-ctr-plan a:hover .dtd-ctr-num { border-color: var(--ctr-vert); color: var(--ctr-vert); }
.dtd-ctr-plan a[aria-current] { color: #fff; }
.dtd-ctr-plan a[aria-current] .dtd-ctr-num { border-color: var(--ctr-vert); background: var(--ctr-vert); color: #0d0d0d; }
.dtd-ctr-plan a:focus-visible { outline: 2px solid var(--ctr-vert); outline-offset: 2px; }
.dtd-ctr-suite ol { counter-reset: ctr-suite; display: grid; gap: 10px; }
.dtd-ctr-suite li {
  counter-increment: ctr-suite; position: relative; padding-left: 28px; color: var(--ctr-texte); font-size: .9375rem; font-weight: 300; line-height: 1.5;
}
.dtd-ctr-suite li::before {
  content: counter(ctr-suite); position: absolute; left: 0; top: 0; color: var(--ctr-vert); font-weight: 500; font-variant-numeric: tabular-nums;
}
.dtd-ctr-aside-texte { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--ctr-filet); color: var(--ctr-texte); font-size: .9375rem; }
.dtd-ctr-aside-texte a { color: #fff; font-weight: 500; text-decoration: none; white-space: nowrap; }
.dtd-ctr-aside-texte a:hover { color: var(--ctr-vert); }

/* Formulaire en blocs numérotés */
.dtd-ctr-oblig { margin: 0 0 8px; color: var(--ctr-doux); font-size: .875rem; line-height: 1.5; }
.dtd-ctr-bloc { margin: 0; padding: 28px 0 0; border: 0; border-top: 1px solid var(--ctr-filet); min-width: 0; }
.dtd-ctr-bloc + .dtd-ctr-bloc { margin-top: 28px; }
.dtd-ctr-legende {
  display: flex; align-items: center; gap: 12px; float: left; width: 100%; margin: 0 0 6px; padding: 0;
  color: #fff; font-family: "Parkinsans Variablefont Wght", Parkinsans, sans-serif; font-size: 1.125rem; font-weight: 400;
}
.dtd-ctr-legende + * { clear: both; }
.dtd-ctr-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: 1px solid var(--ctr-vert); border-radius: 8px 0 8px 0; color: var(--ctr-vert);
  font: 500 .8125rem/1 "Noto Sans", sans-serif; font-variant-numeric: tabular-nums;
}
.dtd-ctr-intro { margin: 0 0 16px; color: var(--ctr-texte); font-size: .9375rem; font-weight: 300; line-height: 1.55; }
.dtd-ctr .dtd-ref-saisie { min-height: 44px; }
.dtd-ctr .dtd-ref-saisie:invalid:not(:placeholder-shown):not(:focus) { border-color: #ff8a80; }
.dtd-ctr input[type="date"].dtd-ref-saisie { color-scheme: dark; }
.dtd-ctr-aide { margin: 2px 0 0; color: var(--ctr-doux); font-size: .8125rem; line-height: 1.45; }
.dtd-ctr-aide output { color: #fff; font-variant-numeric: tabular-nums; }
.dtd-ctr-etiquette { font-size: .8125rem; color: var(--ctr-texte); }
.dtd-ctr-calcul {
  margin: 0; min-height: 44px; display: flex; align-items: center; padding: 8px 12px; box-sizing: border-box;
  border: 1px dashed rgba(255, 255, 255, .18); border-radius: 8px 0 8px 0; color: #fff; font-size: .9375rem; font-variant-numeric: tabular-nums;
}
.dtd-ctr .dtd-ref-champ[hidden] { display: none; }

/* Cases de services */
.dtd-ctr-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 4px; }
.dtd-ctr-case {
  display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 8px 12px; box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px 0 8px 0; background: rgba(0, 0, 0, .3);
  color: var(--ctr-texte); font-size: .9375rem; font-weight: 400; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.dtd-ctr-case:hover { border-color: rgba(43, 202, 165, .6); color: #fff; }
.dtd-ctr-case input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ctr-vert); cursor: pointer; }
.dtd-ctr-case:has(input:checked) { border-color: var(--ctr-vert); background: rgba(43, 202, 165, .1); color: #fff; }
.dtd-ctr-case:has(input:focus-visible) { outline: 2px solid var(--ctr-vert); outline-offset: 3px; }
.dtd-ctr-case-libre { padding-right: 4px; }
.dtd-ctr-case-libre > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dtd-ctr-retirer {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -4px 0;
  padding: 0; border: 0; border-radius: 6px 0 6px 0; background: none; color: var(--ctr-doux); cursor: pointer; transition: color .2s, background-color .2s;
}
.dtd-ctr-retirer:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.dtd-ctr-retirer:focus-visible { outline: 2px solid var(--ctr-vert); outline-offset: 1px; color: #fff; }

/* Ajout d'un service libre */
.dtd-ctr-ajout { margin-top: 16px; }
.dtd-ctr-ajout-ligne { display: flex; gap: 8px; margin-top: 6px; }
.dtd-ctr-ajout-ligne .dtd-ref-saisie { flex: 1; min-width: 0; }
.dtd-ctr .dtd-ctr-ajouter { flex: none; min-height: 44px; margin-top: 0; padding-left: 20px; padding-right: 20px; cursor: pointer; }

/* Envoi */
.dtd-ctr-envoi { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ctr-filet); }
.dtd-ctr .dtd-ctr-envoi button[type="submit"] { margin-top: 0; }
.dtd-ctr-consent {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 10px 0; min-height: 44px; box-sizing: border-box;
  color: var(--ctr-texte); font-size: .9375rem; font-weight: 300; line-height: 1.5; cursor: pointer;
}
.dtd-ctr-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ctr-vert); cursor: pointer; }
.dtd-ctr-consent input:focus-visible { outline: 2px solid var(--ctr-vert); outline-offset: 3px; }
.dtd-ctr-consent-note { margin: 14px 0 0; color: var(--ctr-doux); font-size: .8125rem; line-height: 1.55; }
.dtd-ctr-consent-note a { color: var(--ctr-vert); text-underline-offset: 3px; }
.dtd-ctr-consent-note a:hover { color: #fff; }

/* Panneau de téléchargement */
.dtd-ctr-resultat { margin-top: 24px; padding: 24px; border: 1px solid var(--ctr-vert); border-radius: 16px 0 16px 0; background: rgba(43, 202, 165, .06); scroll-margin-top: 100px; }
.dtd-ctr-resultat:focus { outline: none; }
.dtd-ctr-resultat:focus-visible { outline: 2px solid var(--ctr-vert); outline-offset: 4px; }
.dtd-ctr-resultat .dtd-ref-texte { margin-top: 8px; }
.dtd-ctr-resultat .dtd-ref-actions { margin-top: 20px; }
.dtd-ctr-modifier { padding: 0; border: 0; background: none; font: inherit; font-size: .9375rem; cursor: pointer; }

/* Aperçu du contrat : une page claire, lisible, qui défile dans son cadre */
.dtd-ctr-apercu { margin-top: 24px; border-top: 1px solid var(--ctr-filet); }
.dtd-ctr-apercu summary, .dtd-ctr-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 12px 0;
  color: #fff; font-size: 1rem; cursor: pointer; list-style: none;
}
.dtd-ctr-apercu summary::-webkit-details-marker, .dtd-ctr-faq summary::-webkit-details-marker { display: none; }
.dtd-ctr-apercu summary::after, .dtd-ctr-faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 1.5px solid var(--ctr-vert); border-bottom: 1.5px solid var(--ctr-vert);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.dtd-ctr-apercu[open] summary::after, .dtd-ctr-faq[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.dtd-ctr-apercu summary:focus-visible, .dtd-ctr-faq summary:focus-visible { outline: 2px solid var(--ctr-vert); outline-offset: 3px; }
.dtd-ctr-doc {
  max-height: 70vh; overflow: auto; margin: 4px 0 0; padding: clamp(20px, 4vw, 48px); background: #fff; color: #111;
  border-radius: 8px 0 8px 0; font: 400 .9375rem/1.55 Calibri, Arial, sans-serif; overscroll-behavior: contain;
}
.dtd-ctr-doc:focus { outline: none; }
.dtd-ctr-doc:focus-visible { outline: 2px solid var(--ctr-vert); outline-offset: 3px; }
.dtd-ctr-doc h1 { margin: 0 0 20px; color: #111; font: 700 1.25rem/1.3 Calibri, Arial, sans-serif; text-align: center; text-transform: uppercase; }
.dtd-ctr-doc h2 { margin: 24px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #111; color: #111; font: 700 1rem/1.3 Calibri, Arial, sans-serif; text-transform: uppercase; }
.dtd-ctr-doc h3 { margin: 16px 0 4px; color: #111; font: 700 .9375rem/1.3 Calibri, Arial, sans-serif; }
.dtd-ctr-doc p { margin: 0 0 8px; color: #111; }
.dtd-ctr-doc .trou { padding: 0 2px; color: #111; }
.dtd-ctr-doc td { color: #111; font-size: .9375rem; }

/* Diffusion, questions, encadré */
.dtd-ctr-diffusion .dtd-ref-titre-section { margin-bottom: 20px; }
.dtd-ctr-diffusion .dtd-ref-texte { max-width: 46rem; }
.dtd-ctr-faqs { margin-top: 32px; border-bottom: 1px solid var(--ctr-filet); }
@media screen and (min-width: 992px) {
  .dtd-ctr-diffusion { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 56px; align-items: start; }
  .dtd-ctr-diffusion .dtd-ref-titre-section { margin-bottom: 0; }
  .dtd-ctr-faq-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: start; }
  .dtd-ctr-faq-tete { position: sticky; top: 112px; }
  .dtd-ctr-faq-grille .dtd-ctr-faqs { margin-top: 0; }
}
.dtd-ctr-faq { border-top: 1px solid var(--ctr-filet); }
.dtd-ctr-faq summary { padding: 16px 0; font-size: 1.0625rem; }
.dtd-ctr-faq .dtd-ref-texte { padding: 0 0 20px; max-width: 46rem; }
.dtd-ctr-avocat {
  margin-top: 32px; padding: 18px 20px; border-left: 2px solid var(--ctr-vert); background: rgba(255, 255, 255, .03);
  border-radius: 0 8px 0 0; max-width: 46rem;
}
.dtd-ctr-avocat strong { color: #fff; font-weight: 500; }

/* Téléphone : champs à 16 px (pas de zoom iOS), une colonne, cibles pleine largeur */
@media screen and (max-width: 767px) {
  .dtd-ctr .dtd-ref-saisie, .dtd-ctr-case { font-size: 1rem; }
  .dtd-ctr-cases { grid-template-columns: 1fr; }
  .dtd-ctr-resultat { padding: 20px 16px; }
  .dtd-ctr-modifier { width: 100%; justify-content: center; }
  .dtd-ctr-doc { max-height: 60vh; padding: 20px 16px; font-size: 1rem; }
  .dtd-ctr-ajout-ligne { flex-direction: column; }
  .dtd-ctr .dtd-ctr-ajouter { width: 100%; justify-content: center; }
}

/* Ouvert en overlay depuis un article : seul le générateur reste */
.dtd-ctr-en-overlay .navbar, .dtd-ctr-en-overlay .w-nav-overlay, .dtd-ctr-en-overlay footer.footer, .dtd-ctr-en-overlay .dtd-ctr-ariane,
.dtd-ctr-en-overlay #ctr-faq-titre, .dtd-ctr-en-overlay .dtd-ctr-faqs, .dtd-ctr-en-overlay d2d-chat { display: none !important; }
.dtd-ctr-en-overlay .dtd-ctr-avocat { margin-top: 0; }
.dtd-ctr-en-overlay .dtd-ctr-aside { display: none; }
.dtd-ctr-en-overlay .dtd-ctr-outil, .dtd-ctr-en-overlay .dtd-ctr-faq-grille { display: block; }
.dtd-ctr-en-overlay .dtd-ctr-atouts { grid-template-columns: 1fr; gap: 10px; }
.dtd-ctr-en-overlay .dtd-ctr-hero { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.dtd-ctr-en-overlay body { padding-top: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  .dtd-ctr-case, .dtd-ctr-retirer, .dtd-ctr-apercu summary::after, .dtd-ctr-faq summary::after,
  .dtd-ctr-plan a, .dtd-ctr-plan a .dtd-ctr-num { transition: none; }
}
