/* ============================================================
   OPTERIA — page « Contact » (06/10/2026, demande Axel) : même langage que /integration et /cerveau-ia
   (carte grise coupée en deux, peinture, fiche blanche, cases cochées), plus « Other ways to reach us » de gleap.ai/contact.
   Chargée seulement par contact.html, après da-cerveau.css. Le formulaire garde ses classes (.form-card, .field) :
   on ne change que son habillage, la validation et l'envoi restent dans script.js.
   ============================================================ */
.page-contact { --orange: #FB4D17; }

/* ---------- Premier écran : le texte à gauche, le formulaire posé sur la peinture à droite ---------- */
.ct-hero { padding: 56px 0 24px; background: var(--paper); }
.ct-hero__carte { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); border-radius: var(--r); background: var(--gris-carte); overflow: hidden; }
.ct-hero__txt { display: flex; flex-direction: column; justify-content: center; padding: 56px 48px; }
.ct-hero__txt .meta { margin: 0 0 16px; }
.ct-hero__txt .d { margin: 0; font-size: clamp(34px, 3.5vw, 46px); }
.ct-hero__sous { margin: 24px 0 0; font-size: 18px; line-height: 1.5; color: var(--muet); }
.ct-hero__lab { margin: 36px 0 14px; font-size: 12px; line-height: 24px; color: #84738f; }
.ct-suite { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ct-suite li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.4; color: var(--texte); }
.ct-suite .fs-coche { width: 20px; height: 20px; animation: none; }

.ct-hero__toile { position: relative; display: grid; place-items: center; padding: 48px 40px; isolation: isolate; overflow: hidden; }
.ct-hero__toile .cv-peinture { transform: scale(1.03); }

/* la fiche blanche : en-tête « Écrire à l'équipe », puis le formulaire */
.ct-fiche { width: 100%; max-width: 480px; padding: 20px 22px 22px; border-radius: 16px; background: #fff; color: var(--encre);
  box-shadow: none; }
html.js .ct-fiche.reveal { transform: translateY(18px) scale(.985); transition: opacity .9s ease .15s, transform 1.1s cubic-bezier(.22,1,.36,1) .15s; }
html.js .ct-fiche.reveal.is-in { transform: none; }
.ct-fiche__tete { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid #ececea; }
.ct-fiche__tete .cv-av { width: 34px; height: 34px; background: var(--orange); }
.ct-fiche__tete .cv-av svg { width: 21px; height: 21px; }
.ct-fiche__tete b { display: block; font-size: 15px; font-weight: 500; }
.ct-fiche__tete small { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: #6b6b70; }
.ct-fiche__tete small i { width: 7px; height: 7px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 3px rgba(58,166,85,.16); }

.ct-fiche .form-card { gap: 14px; padding: 0; border-radius: 0; background: none; }
.ct-fiche .form-row { gap: 12px; }
.ct-fiche .field { gap: 6px; }
.ct-fiche .field label { font-size: 13px; font-weight: 500; color: var(--encre); }
.ct-fiche .field input, .ct-fiche .field textarea { padding: 11px 13px; border: 1px solid transparent; border-radius: 10px; background: #f4f4f1; font-size: 15px; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.ct-fiche .field input::placeholder, .ct-fiche .field textarea::placeholder { color: #9a9a9e; }
.ct-fiche .field input:hover, .ct-fiche .field textarea:hover { background: #efefeb; }
.ct-fiche .field input:focus, .ct-fiche .field textarea:focus { border-color: #191919; background: #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.ct-fiche .field textarea { min-height: 120px; }
/* champ quitté vide ou mal rempli : liseré rouge discret (aucun effet sur l'envoi, géré par script.js) */
.ct-fiche .field input:user-invalid, .ct-fiche .field textarea:user-invalid { border-color: rgba(200,60,40,.55); background: #fdf5f3; }
.ct-fiche .form-card .btn.btn { width: 100%; margin-top: 4px; }
.ct-fiche .form-card .btn[disabled] { opacity: .35; }

/* ---------- Autres façons de nous joindre : quatre cartes grises, flèche qui avance au survol ---------- */
.ct-voies { padding: 72px 0 12px; }
.ct-voies .h { max-width: 980px; margin: 0; text-wrap: balance; }
.ct-voies__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 44px; }
.ct-voie { display: flex; align-items: center; gap: 18px; min-height: 120px; padding: 24px 24px 24px 22px; border-radius: 12px; background: var(--gris-carte); color: var(--texte); transition: background-color .25s ease; }
a.ct-voie:hover { background: #e6e6e0; }
.ct-voie__ico, .ct-voie__photo { flex: none; width: 44px; height: 44px; border-radius: 10px; }
.ct-voie__ico { display: grid; place-items: center; background: #dededa; color: #191919; }
.ct-voie__ico svg { width: 21px; height: 21px; }
.ct-voie__photo { border-radius: 50%; object-fit: cover; }
.ct-voie__txt { flex: 1; min-width: 0; }
.ct-voie__txt b { display: block; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.ct-voie__txt span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--muet); }
.ct-voie__fleche { flex: none; width: 20px; height: 20px; color: #191919; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
a.ct-voie:hover .ct-voie__fleche { transform: translateX(4px); }
a.ct-voie:hover .ct-voie__fleche--sort { transform: translate(3px, -3px); }

/* ---------- Les associés : trois cartes grises, la photo dans un cadre arrondi, le rôle, quand le contacter, ses liens ---------- */
.ct-assos { padding: 72px 0 12px; }
.ct-assos .meta { margin: 0 0 14px; }
.ct-assos .h { max-width: 980px; margin: 0; text-wrap: balance; }
.ct-assos__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 44px; }
.ct-asso { display: flex; flex-direction: column; gap: 20px; padding: 14px; border-radius: 24px; background: var(--gris-carte); }
.ct-asso__photo { position: relative; aspect-ratio: 5 / 4; border-radius: 16px; overflow: hidden; background: var(--gris-cadre); }
.ct-asso__photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) { .ct-asso:hover .ct-asso__photo img { transform: scale(1.04); } }
.ct-asso__corps { display: flex; flex-direction: column; flex: 1; padding: 0 8px 8px; }
.ct-asso__nom { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.ct-asso__role { margin: 4px 0 0; font-size: 14px; color: var(--orange); }
.ct-asso__txt { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--muet); }
.ct-asso__pour { display: flex; gap: 10px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.08); font-size: 15px; line-height: 1.45; color: var(--texte); }
.ct-asso__pour i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: #191919; color: #fff; font-size: 12px; font-style: normal; }
.ct-asso__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; }
.ct-asso__actions .btn.btn { height: auto; min-height: 40px; padding: 10px 18px; font-size: 14.5px; white-space: normal; text-align: center; flex: 1 1 auto; justify-content: center; }
.ct-asso__in { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14.5px; transition: background-color .2s ease; }
.ct-asso__in img { width: 18px; height: 18px; }
.ct-asso__in:hover { background: #f6f6f3; }
.ct-assos__pied { margin: 28px 0 0; font-size: 15px; color: var(--muet); }
.ct-assos__pied a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(0,0,0,.25); text-underline-offset: 3px; }

/* ---------- Questions ---------- */
.page-contact .cv-faq { padding-top: 72px; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .ct-fiche.reveal { transform: none; transition: none; }
  .ct-voie, .ct-voie__fleche, .ct-fiche .field input, .ct-fiche .field textarea, .ct-asso__photo img { transition: none; }
  .ct-asso:hover .ct-asso__photo img { transform: none; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .ct-hero__txt { padding: 44px 32px; }
  .ct-hero__toile { padding: 40px 28px; }
}
@media (max-width: 960px) {
  .ct-hero__carte { grid-template-columns: minmax(0, 1fr); }
  .ct-hero__toile { padding: 40px 32px 44px; }
  .ct-voies, .ct-assos { padding: 56px 0 8px; }
  .ct-assos__grille { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ct-asso { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
  .ct-asso__photo { aspect-ratio: auto; min-height: 250px; }
  .ct-asso__actions .btn.btn { flex: 0 1 auto; }
  .ct-asso__corps { padding: 8px 8px 8px 0; }
  .page-contact .cv-faq { padding-top: 56px; }
}

/* ---------- Téléphone (390 px) ---------- */
@media (max-width: 720px) {
  .ct-hero { padding: 24px 0 8px; }
  .ct-hero__carte { margin: 0 calc(var(--gutter) * -1 + 8px); border-radius: 18px; }
  .ct-hero__txt { padding: 32px 22px 30px; }
  .ct-hero__txt .d { font-size: 34px; }
  .ct-hero__sous { margin-top: 18px; font-size: 17px; }
  .ct-hero__lab { margin-top: 26px; }
  .ct-suite li { font-size: 15.5px; align-items: flex-start; }
  .ct-suite .fs-coche { margin-top: 1px; }
  .ct-hero__toile { padding: 28px 12px; }
  .ct-fiche { padding: 18px 16px 18px; }
  .ct-fiche .form-row { grid-template-columns: minmax(0, 1fr); }
  .ct-voies__grille { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 32px; }
  .ct-voie { align-items: flex-start; gap: 14px; min-height: 0; padding: 18px 16px; }
  .ct-voie__ico, .ct-voie__photo { width: 40px; height: 40px; }
  .ct-voie__fleche { margin-top: 10px; }
  .ct-voie__txt span { font-size: 14.5px; }
  .ct-assos__grille { margin-top: 32px; }
  .ct-asso { display: flex; gap: 0; padding: 0; border-radius: 20px; overflow: hidden; }
  .ct-asso__photo { aspect-ratio: auto; min-height: 0; height: 230px; border-radius: 0; }
  .ct-asso__corps { padding: 20px 18px 20px; }
  .ct-asso__nom { font-size: 21px; }
  .ct-asso__txt { font-size: 15.5px; }
  .ct-asso__actions .btn.btn { flex: 1 1 100%; justify-content: center; }
  .ct-assos__pied { font-size: 14.5px; }
}
