/* Archi-Tek site v3 — section « Questions » + panneau de l'assistant (T9.D4, 25/09/2026).
   Jetons de la feuille du site seulement ; le site est sombre. */

/* ---------- La FAQ ---------- */
.questions .faq { display: grid; border-top: 1px solid var(--line); max-width: 980px; }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font: 600 clamp(19px, 1.7vw, 24px)/1.25 var(--f-sans); letter-spacing: -.01em; color: var(--paper);
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%; font: 400 18px/1 var(--f-mono); color: var(--cyan-bright);
  transition: transform .25s var(--ease);
}
.questions details[open] summary::after { transform: rotate(45deg); }
.questions summary:hover { color: var(--white); }
.questions details p { margin: 0 0 24px; max-width: 44em; color: var(--mute); font-size: 17px; line-height: 1.6; }
.questions details a { color: var(--cyan-bright); text-underline-offset: 3px; }
.questions .ask { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(36px, 6vh, 64px); }
.questions .ask-t { margin: 0; width: 100%; font: 600 clamp(22px, 2vw, 30px)/1.2 var(--f-sans); letter-spacing: -.01em; }
.questions .btn { border: 0; }

/* ---------- Le panneau ---------- */
.aq-voile { position: fixed; inset: 0; z-index: 60; background: rgba(17, 17, 17, .6); opacity: 0; transition: opacity .25s var(--ease); }
.aq {
  position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
  display: grid; grid-template-rows: auto 1fr auto; background: var(--ink-2); color: var(--paper);
  border-left: 1px solid var(--line); box-shadow: -24px 0 60px rgba(0, 0, 0, .45);
  transform: translateX(100%); transition: transform .3s var(--ease);
  padding-top: env(safe-area-inset-top);
}
.aq-ouvert .aq-voile { opacity: 1; }
.aq-ouvert .aq { transform: none; }
.aq[hidden], .aq-voile[hidden] { display: none; }
@media (max-width: 820px) {
  .aq { top: auto; left: 0; width: 100vw; height: min(88svh, 720px); border-left: 0; border-top: 1px solid var(--line); border-radius: 12px 12px 0 0; transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) { .aq, .aq-voile { transition: none; } }
html[data-motion="reduced"] .aq, html[data-motion="reduced"] .aq-voile { transition: none; }

.aq-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.aq-tete h2 { margin: 0; font: 600 18px/1.2 var(--f-sans); }
.aq-tete .kicker { display: block; margin-bottom: 6px; }
.aq-fermer {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: none;
  color: var(--paper); font: 400 20px/1 var(--f-sans); cursor: pointer;
}
.aq-fermer:hover { border-color: var(--paper); }

.aq-fil { overflow-y: auto; overscroll-behavior: contain; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.aq-msg { max-width: 92%; padding: 12px 14px; border-radius: 8px; font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.aq-msg.v { align-self: flex-end; background: var(--ink-3); border: 1px solid var(--line); }
.aq-msg.a { align-self: flex-start; background: rgba(17, 17, 17, .55); border: 1px solid var(--line); border-left: 3px solid var(--cyan); }
.aq-msg.a a { color: var(--cyan-bright); text-underline-offset: 3px; }
.aq-msg.info { align-self: stretch; max-width: none; background: none; border: 1px dashed var(--line-2); color: var(--mute); font-size: 15px; }
.aq-msg.erreur { align-self: stretch; max-width: none; background: none; border: 1px solid #E5484D; color: var(--paper); font-size: 15px; }
.aq-ecrire { display: inline-flex; margin-top: 10px; color: var(--cyan-bright); font: 600 15px/1 var(--f-sans); text-decoration: none; }
.aq-ecrire:hover { text-decoration: underline; text-underline-offset: 3px; }
.aq-attente { align-self: flex-start; display: inline-flex; gap: 6px; padding: 14px; }
.aq-attente i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: aq-point 1.1s infinite ease-in-out; }
.aq-attente i:nth-child(2) { animation-delay: .15s; }
.aq-attente i:nth-child(3) { animation-delay: .3s; }
@keyframes aq-point { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .aq-attente i { animation: none; opacity: .7; } }

.aq-saisie { border-top: 1px solid var(--line); padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.aq-saisie textarea {
  width: 100%; min-height: 76px; max-height: 180px; resize: vertical; padding: 12px 14px; border-radius: 6px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--line-2); font: 400 16px/1.5 var(--f-sans);
}
.aq-saisie textarea::placeholder { color: var(--mute); }
.aq-saisie textarea:focus { outline: none; border-color: var(--cyan); }
.aq-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aq-compte { font: 400 12px/1 var(--f-mono); color: var(--mute); }
.aq-compte.trop { color: #FF8A8E; }
.aq-saisie .btn { border: 0; min-height: 44px; }
.aq-saisie .btn[disabled] { opacity: .5; cursor: default; }
.aq-note { margin: 0; font: 400 12px/1.45 var(--f-mono); color: var(--mute); letter-spacing: .01em; }
.aq-nouvelle { background: none; border: 0; padding: 0; color: var(--mute); font: 400 12px/1 var(--f-mono); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.aq-nouvelle:hover { color: var(--paper); }
html.aq-bloque { overflow: hidden; }

/* the France map stays fixed behind the page : the answers and the note get the same veil as the offer's cards */
.questions .faq { background: rgba(17, 17, 17, .92); border-radius: 6px; padding: 0 clamp(16px, 2.4vw, 32px); border-top: 0; }
.questions .ask .btn-note { background: rgba(17, 17, 17, .8); padding: 6px 10px; border-radius: 3px; }
.questions .ask { background: rgba(17, 17, 17, .92); border-radius: 6px; padding: clamp(20px, 2.6vw, 32px); margin-top: clamp(16px, 2vw, 24px); max-width: 980px; }
.questions .ask .btn-note { background: none; padding: 0; }
/* one card : the answers, then the question — no strip of map between them */
.questions .faq { border-radius: 6px 6px 0 0; padding-bottom: 8px; }
.questions .faq details:last-child { border-bottom: 0; }
.questions .ask { margin-top: 0; border-radius: 0 0 6px 6px; border-top: 1px solid var(--line); padding: clamp(24px, 3vw, 40px) clamp(16px, 2.4vw, 32px); }

/* ---------- Le formulaire de contact (T9.D4, 25/09) ---------- */
.contact .ct-carte { background: rgba(17, 17, 17, .92); border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 3vw, 40px); max-width: 980px; display: grid; gap: 24px; }
.ct-form { display: grid; gap: 18px; }
.ct-ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 700px) { .ct-ligne { grid-template-columns: 1fr; } }
.ct-champ { display: grid; gap: 8px; }
.ct-champ span { font: 400 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.ct-champ input, .ct-champ textarea {
  width: 100%; padding: 12px 14px; border-radius: 6px; background: var(--ink); color: var(--paper);
  border: 1px solid var(--line-2); font: 400 17px/1.5 var(--f-sans);
}
.ct-champ textarea { resize: vertical; min-height: 150px; }
.ct-champ input:focus, .ct-champ textarea:focus { outline: none; border-color: var(--cyan); }
.ct-champ input[aria-invalid="true"], .ct-champ textarea[aria-invalid="true"] { border-color: #FF8A8E; }
/* the honeypot : out of sight and out of the tab order ; a human never fills it */
.ct-leurre { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ct-actions .btn { border: 0; }
.ct-actions .btn[disabled] { opacity: .5; cursor: default; }
.ct-compte { font: 400 12px/1 var(--f-mono); color: var(--mute); }
.ct-note { margin: 0; font: 400 13px/1.45 var(--f-mono); color: var(--mute); }
.ct-etat { margin: 0; font-size: 16px; }
.ct-etat.ok { color: var(--cyan-bright); }
.ct-etat.ko { color: #FF8A8E; }
.ct-fil { display: grid; gap: 12px; }
.ct-fil p.ct-fil-t { margin: 0; font: 600 20px/1.3 var(--f-sans); }
.ct-fil .aq-msg { max-width: none; }
.ct-envoye { display: grid; gap: 10px; }
.ct-envoye h3 { margin: 0; font: 600 clamp(22px, 2vw, 30px)/1.2 var(--f-sans); }
.ct-envoye p { margin: 0; color: var(--mute); }
/* `hidden` must win over the grid of these blocks (the thread before it loads, the identity when the e-mail's link is used) */
.ct-fil[hidden], .ct-ligne[hidden], .ct-form [hidden] { display: none; }
