/* ==========================================================================
   E-NETT — version moderne : page Contact (pages/contact.html)
   Formulaire identique au classique (mêmes champs, mêmes id, script partagé contact.js) ; à droite, le téléphone
   dans un panneau marine, puis les coordonnées. Le trait vert : il se dessine sous le motif choisi, s’allonge sous
   le numéro au survol et coche la demande envoyée. Sans animations, tout est affiché dans son état final.
   ========================================================================== */

.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact__head { margin-bottom: clamp(26px, 3vw, 40px); }
@media (max-width: 899px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }

/* Motif choisi : le trait vert se dessine sous la carte, et passe d’une carte à l’autre */
.contact-motifs .choice__box { position: relative; }
.contact-motifs .choice__box::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 4px;
  background: var(--vert); transform: scaleX(0); transform-origin: left center; transition: transform .6s var(--ease-out);
}
.contact-motifs .choice__input:checked + .choice__box::after { transform: scaleX(1); }

/* Être rappelé : le créneau se range à côté du téléphone (société, commune et message sont masqués par contact.js) */
.contact-form:has(input[name="type"][value="rappel"]:checked) .contact-slot { grid-column: auto; }
.contact-form .form__send .muted { max-width: 34ch; }
@media (max-width: 599px) { .contact-form .form__send .btn { flex: 1 1 100%; justify-content: center; } }

/* Demande envoyée : le trait coche */
.contact-done__check { width: 44px; height: 44px; margin: -4px 0 10px -4px; }
.contact-done__check path { fill: none; stroke: var(--vert); stroke-width: 4; stroke-linecap: square; }
html.motion .contact-done:not([hidden]) .contact-done__check path { stroke-dasharray: 1; animation: contact-coche .8s var(--ease-out) .15s both; }
@keyframes contact-coche { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.contact-done__k { color: var(--muted); }

/* Téléphone : panneau marine, numéro en grand, trait qui s’allonge au survol */
.contact__aside { display: grid; gap: clamp(28px, 3vw, 40px); }
.contact__aside > .link-arrow { justify-self: start; }
.contact-tel {
  --fg: var(--craie); --bg: var(--marine); --muted: rgba(243, 244, 241, .74); --line: rgba(243, 244, 241, .22); --line-soft: rgba(243, 244, 241, .1); --focus: var(--craie);
  padding: clamp(24px, 3vw, 40px); background: var(--marine); color: var(--fg);
}
.contact-tel__title { font-size: var(--t-h3); line-height: 1.15; font-weight: 700; font-stretch: 108%; letter-spacing: -.015em; }
.contact-tel__num {
  display: inline-block; margin-top: clamp(14px, 1.6vw, 22px); text-decoration: none; white-space: nowrap;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.625rem); line-height: 1.1; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.contact-tel__num::after { content: ""; display: block; width: 40px; height: 4px; margin-top: 12px; background: var(--vert); transition: width .7s var(--ease-out); }
.contact-tel__num:hover::after, .contact-tel__num:focus-visible::after { width: 100%; }
.contact-tel__hours { margin-top: 18px; }
.contact-tel__note { margin-top: 8px; max-width: 40ch; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Coordonnées : liste à filets (.facts--rows), valeur et précision */
.contact-lines dd { overflow-wrap: anywhere; }
.contact-lines__sub { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.contact-lines address { font-style: normal; }
