/* ==========================================================================
   Demande de rendez-vous (page-rendez-vous.php, page-demande-envoyee.php, adl_rdv_form_html()) — feuille partielle servie par
   functions.php après atd.css. DA « Grande Rue » : lait, lin, bleu canard, laiton, filets fins, angles à 2 px.
   Classes adl-rdv__* ; le bloc du formulaire (.adl-rdv__form) fonctionne aussi hors de la page /rendez-vous/ (page « Réserver »).
   Aucune couleur sur une règle générique de titres. Ni dégradé ni ombre portée.
   ========================================================================== */

/* ---------- Trois étapes ---------- */

body.atd .adl-rdv__bande{padding-top:clamp(28px,4vw,44px);padding-bottom:clamp(28px,4vw,44px)}
body.atd .adl-rdv__etapes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2.4vw,28px);margin:0;padding:0;list-style:none;counter-reset:etape}
body.atd .adl-rdv__etapes li{position:relative;display:grid;gap:4px;padding:2px 0 0 52px;counter-increment:etape;font-size:15.5px;line-height:1.5;color:var(--gris,#66706C)}
body.atd .adl-rdv__etapes li::before{content:counter(etape);position:absolute;left:0;top:0;display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--laiton,#B39256);border-radius:2px;font:400 20px/1 var(--titre,'Gilda Display',Georgia,serif);color:var(--canard,#0E5A7E)}
body.atd .adl-rdv__etapes b{font:400 19px/1.25 var(--titre,'Gilda Display',Georgia,serif);color:var(--encre,#1F2625)}

/* ---------- Grille : formulaire à gauche, encadrés à droite ; une colonne sous 960 px ---------- */

body.atd .adl-rdv__grille{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
body.atd .adl-rdv__principal{min-width:0}
body.atd .adl-rdv__cote{display:grid;gap:16px;min-width:0}
@media (min-width:960px){
  body.atd .adl-rdv__grille{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:clamp(24px,3vw,44px)}
  body.atd .adl-rdv__cote{position:sticky;top:calc(var(--tete,78px) + 16px)}
}
body.atd .adl-rdv__titre{margin:0 0 18px;font:400 clamp(24px,3vw,30px)/1.2 var(--titre,'Gilda Display',Georgia,serif)}
body.atd .adl-rdv__carte-titre{margin:0 0 10px;font:400 21px/1.25 var(--titre,'Gilda Display',Georgia,serif)}
body.atd .adl-rdv__horaires,body.atd .adl-rdv__metro{margin:0 0 8px;font-weight:600}
body.atd .adl-rdv__note{margin:0;font-size:14.5px;line-height:1.55;color:var(--gris,#66706C)}
body.atd .adl-rdv__liens{display:flex;flex-wrap:wrap;gap:6px 18px;margin:12px 0 0}
body.atd .adl-rdv__liens--suite{margin-top:22px}
body.atd .adl-rdv__rgpd{margin:18px 0 0;font-size:13.5px;line-height:1.55;color:var(--gris,#66706C)}
body.atd .adl-rdv__rgpd a{color:var(--canard,#0E5A7E);text-decoration:underline;text-decoration-color:var(--laiton,#B39256);text-underline-offset:3px}
body.atd .adl-rdv__panne{margin:0;padding:16px 18px;border-left:4px solid var(--laiton,#B39256);background:var(--lin,#F1EBE1)}

/* ---------- Formulaire ---------- */

body.atd .adl-rdv__form{padding:clamp(18px,3vw,32px);border:1px solid var(--trait,#DFD7CA);border-top:3px solid var(--laiton,#B39256);border-radius:var(--r,2px);background:#fff}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__champ{margin:0 0 16px}
body.atd .adl-rdv__form .wpcf7 label{display:block;font:600 15px/1.4 var(--corps,Urbanist,system-ui,sans-serif);color:var(--encre,#1F2625)}
body.atd .adl-rdv__form .wpcf7 .wpcf7-form-control-wrap{display:block;margin-top:6px}
body.atd .adl-rdv__form .wpcf7 input[type="text"],
body.atd .adl-rdv__form .wpcf7 input[type="tel"],
body.atd .adl-rdv__form .wpcf7 input[type="email"],
body.atd .adl-rdv__form .wpcf7 select,
body.atd .adl-rdv__form .wpcf7 textarea{display:block;width:100%;max-width:100%;min-height:48px;padding:11px 14px;border:1px solid var(--trait,#DFD7CA);border-radius:var(--r,2px);background:#fff;color:var(--encre,#1F2625);font:400 16px/1.4 var(--corps,Urbanist,system-ui,sans-serif)}
body.atd .adl-rdv__form .wpcf7 textarea{min-height:120px}
body.atd .adl-rdv__form .wpcf7 input:focus,
body.atd .adl-rdv__form .wpcf7 select:focus,
body.atd .adl-rdv__form .wpcf7 textarea:focus{border-color:var(--canard,#0E5A7E);outline:2px solid var(--canard,#0E5A7E);outline-offset:1px}
body.atd .adl-rdv__facultatif{font-weight:400;color:var(--gris,#66706C)}
body.atd .adl-rdv__form .wpcf7-not-valid-tip{display:block;margin-top:5px;font-size:14px;font-weight:500;color:#8E2B2B}

/* formule et durée côte à côte, nom et téléphone aussi, dès 600 px */
body.atd .adl-rdv__form .wpcf7 .adl-rdv__duo{display:grid;grid-template-columns:minmax(0,1fr);gap:0 16px}
@media (min-width:600px){
  body.atd .adl-rdv__form .wpcf7 .adl-rdv__duo{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* prix et conditions de la prestation choisie (rempli par rdv.js) */
body.atd .adl-rdv__form .wpcf7 .adl-rdv__recap{margin:0 0 18px;padding:12px 16px;border-left:4px solid var(--canard,#0E5A7E);border-radius:var(--r,2px);background:var(--lin,#F1EBE1);font-size:15px;line-height:1.55;color:var(--gris,#66706C)}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__recap strong{font:400 21px/1.3 var(--titre,'Gilda Display',Georgia,serif);color:var(--canard,#0E5A7E)}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__recap[hidden]{display:none}

/* jours et moments : un cadre, des cases */
body.atd .adl-rdv__form .wpcf7 .adl-rdv__groupe{min-width:0;margin:0 0 22px;padding:14px 16px 0;border:1px solid var(--trait,#DFD7CA);border-radius:var(--r,2px)}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__groupe legend{max-width:100%;padding:0 6px;font:400 18px/1.4 var(--titre,'Gilda Display',Georgia,serif);color:var(--encre,#1F2625)}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__aide{margin:0 0 14px;font-size:14.5px;line-height:1.5;color:var(--gris,#66706C)}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__choix{margin:0 0 16px}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__choix-titre{margin:0 0 8px;font-size:14px;font-weight:600;line-height:1.4}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__cases{margin:0}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__cases .wpcf7-form-control-wrap{margin-top:0}
body.atd .adl-rdv__form .wpcf7 .wpcf7-checkbox{display:flex;flex-wrap:wrap;gap:8px}
body.atd .adl-rdv__form .wpcf7 .wpcf7-checkbox .wpcf7-list-item{display:block;margin:0}
body.atd .adl-rdv__form .wpcf7 .wpcf7-checkbox .wpcf7-list-item label{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:8px 14px 8px 12px;border:1px solid var(--trait,#DFD7CA);border-radius:var(--r,2px);background:#fff;font-weight:500;cursor:pointer;transition:border-color .2s ease,background-color .2s ease}
body.atd .adl-rdv__form .wpcf7 .wpcf7-checkbox .wpcf7-list-item label:hover{border-color:var(--canard,#0E5A7E)}
body.atd .adl-rdv__form .wpcf7 .wpcf7-checkbox .wpcf7-list-item label:focus-within{border-color:var(--canard,#0E5A7E);outline:2px solid var(--canard,#0E5A7E);outline-offset:1px}
body.atd .adl-rdv__form .wpcf7 .wpcf7-checkbox .wpcf7-list-item label:has(input:checked){border-color:var(--canard,#0E5A7E);background:var(--lin,#F1EBE1)}
body.atd .adl-rdv__form .wpcf7 .wpcf7-checkbox input[type="checkbox"]{flex:0 0 auto;width:18px;height:18px;margin:0 8px 0 0;accent-color:var(--canard,#0E5A7E)}
body.atd .adl-rdv__form .wpcf7 .wpcf7-checkbox input[type="checkbox"]:focus{outline:0}

/* champ piège : hors de l'écran, hors du parcours au clavier (tabindex -1) */
body.atd .adl-rdv__form .wpcf7 .adl-rdv__miel{position:absolute;left:-9999px;top:auto;width:1px;height:1px;margin:0;overflow:hidden}

/* case d'accord et bouton */
body.atd .adl-rdv__form .wpcf7 .adl-rdv__accord{margin:4px 0 18px;font-size:14.5px;line-height:1.55}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__accord .wpcf7-form-control-wrap{display:inline}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__accord label{display:block;font-weight:400;cursor:pointer}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__accord input{width:18px;height:18px;margin:0 8px 0 0;vertical-align:-3px;accent-color:var(--canard,#0E5A7E)}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__accord a{color:var(--canard,#0E5A7E);font-weight:600;text-decoration:underline;text-decoration-color:var(--laiton,#B39256);text-underline-offset:3px}
body.atd .adl-rdv__form .wpcf7 .adl-rdv__envoi{margin:0}
body.atd .adl-rdv__form .wpcf7 input[type="submit"]{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:13px 28px;border:1px solid var(--canard,#0E5A7E);border-radius:var(--r,2px);background:var(--canard,#0E5A7E);color:#fff;font:600 16px/1.2 var(--corps,Urbanist,system-ui,sans-serif);cursor:pointer;transition:background-color .2s ease,transform .2s ease}
body.atd .adl-rdv__form .wpcf7 input[type="submit"]:hover{background:var(--canard-d,#0A4561);border-color:var(--canard-d,#0A4561);color:#fff;transform:translateY(-1px)}
body.atd .adl-rdv__form .wpcf7 input[type="submit"]:focus-visible{outline:2px solid var(--canard,#0E5A7E);outline-offset:2px}

/* réponse de Contact Form 7 : rien à l'écran tant qu'elle est vide */
body.atd .adl-rdv__form .wpcf7 form .wpcf7-response-output{margin:18px 0 0;padding:12px 16px;border:1px solid var(--trait,#DFD7CA);border-left:4px solid var(--canard,#0E5A7E);border-radius:var(--r,2px);background:var(--lin,#F1EBE1);font-size:15px}
body.atd .adl-rdv__form .wpcf7 form.init .wpcf7-response-output{display:none}
body.atd .adl-rdv__form .wpcf7 form.invalid .wpcf7-response-output,
body.atd .adl-rdv__form .wpcf7 form.failed .wpcf7-response-output,
body.atd .adl-rdv__form .wpcf7 form.spam .wpcf7-response-output{border-left-color:#8E2B2B}

/* ---------- Page de confirmation ---------- */

body.atd .adl-rdv--envoyee .adl-rdv__suite{margin:0}
body.atd .adl-rdv--envoyee .adl-rdv__outils .atd-card__title{margin:0 0 6px}

@media (max-width:860px){
  body.atd .adl-rdv__etapes{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:599px){
  body.atd .adl-rdv__form{padding:16px}
  body.atd .adl-rdv__form .wpcf7 .adl-rdv__groupe{padding:12px 12px 0}
  body.atd .adl-rdv__form .wpcf7 .adl-rdv__envoi input[type="submit"]{width:100%}
  body.atd .adl-rdv__form .wpcf7 .adl-rdv__envoi .wpcf7-spinner{display:block;margin:10px auto 0}
}
@media (prefers-reduced-motion:reduce){
  body.atd .adl-rdv__form .wpcf7 input[type="submit"],body.atd .adl-rdv__form .wpcf7 .wpcf7-checkbox .wpcf7-list-item label{transition:none}
}
