/* Contact — « Conversation » sur la photo du phare floutée (le reste est dans /assets/eckes.css) */

/* ---------- Menu en verre sombre sur cette page ---------- */
.page-contact .nav, .page-contact .nav.is-solid { background: rgba(20,32,63,.5); color: #fff; border-color: rgba(255,255,255,.14); box-shadow: none; }
.page-contact .nav.is-solid .btn-nav { background: #fff; color: var(--ink); }

/* ---------- Fond : photo floutée et assombrie ---------- */
.contact-hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: #fff; background: #0e1630; isolation: isolate; clip-path: inset(0); }
/* Fond fixé à la taille de l'écran : il ne grossit plus quand la discussion s'allonge.
   Le clip-path du héros l'empêche de déborder sur le pied de page. */
.contact-fond { position: fixed; inset: 0; z-index: -1; }
.contact-fond img { width: 100%; height: 100%; object-fit: cover; filter: blur(6px); transform: scale(1.08); animation: fond-arrive 1.4s cubic-bezier(.2,.75,.2,1) both; }
.contact-fond::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,22,48,.88) 0%, rgba(14,22,48,.62) 45%, rgba(14,22,48,.45) 100%); }
@keyframes fond-arrive { from { opacity: 0; transform: scale(1.14); } }

.contact-grille { max-width: 1320px; margin: 0 auto; min-height: inherit; padding: calc(120px + env(safe-area-inset-top)) var(--gutter) 60px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }

/* ---------- Gauche ---------- */
.contact-intro .eyebrow { color: rgba(255,255,255,.65); }
.bonjour { margin-top: 10px; font-size: clamp(3.6rem, 9vw, 7.2rem); font-weight: 500; letter-spacing: -.055em; line-height: .9; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.bonjour span { color: var(--gold); }
.contact-intro .lead { margin-top: 22px; max-width: 400px; line-height: 1.6; opacity: .78; }
.etapes { display: flex; gap: 6px; margin-top: 32px; }
.etapes i { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); transition: background .4s; }
.etapes i.on { background: var(--gold); }

/* ---------- Droite : discussion ---------- */
.contact-droite { width: 100%; max-width: 600px; justify-self: end; }
.fil { display: flex; flex-direction: column; gap: 12px; }
.fil[hidden] { display: none; }
.qui { font-size: .75rem; opacity: .55; margin: 6px 0 -6px 6px; }
.bulle { max-width: 82%; padding: 15px 20px; border-radius: 22px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; animation: bulle-arrive .45s cubic-bezier(.2,.75,.2,1) both; }
.bulle.eux { align-self: flex-start; border-bottom-left-radius: 6px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bulle.moi { align-self: flex-end; border-bottom-right-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; transition: transform .2s; }
.bulle.moi:hover { transform: translateX(-3px); }
.bulle.moi::after { content: '  ✎'; opacity: 0; font-size: .85em; transition: opacity .2s; }
.bulle.moi:hover::after, .bulle.moi:focus-visible::after { opacity: .45; }
.bulle.ecrit { display: inline-flex; gap: 5px; padding: 18px 20px; }
.bulle.ecrit i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.7); animation: point 1s infinite; }
.bulle.ecrit i:nth-child(2) { animation-delay: .15s; } .bulle.ecrit i:nth-child(3) { animation-delay: .3s; }
@keyframes bulle-arrive { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes point { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.saisie { margin-top: 18px; }
.saisie[hidden] { display: none; }
.options { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 12px; }
.options[hidden] { display: none; }
.options.fin { margin-top: 6px; }
.opt { padding: .6em 1.1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: .9rem; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s; animation: bulle-arrive .45s cubic-bezier(.2,.75,.2,1) both; }
.opt:hover { background: rgba(255,255,255,.18); }
.opt[aria-pressed="true"] { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.barre[hidden] { display: none; }
.barre { display: flex; align-items: flex-end; gap: 8px; padding: 7px 7px 7px 20px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.barre input, .barre textarea { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 1rem; padding: 10px 0; resize: none; line-height: 1.5; max-height: 180px; }
.barre input::placeholder, .barre textarea::placeholder { color: #a3a6b0; }
.barre textarea[hidden], .barre input[hidden] { display: none; }
.barre:focus-within { box-shadow: 0 20px 40px rgba(0,0,0,.25), 0 0 0 3px rgba(232,178,106,.55); }
.envoyer { flex: none; padding: .75em 1.2em; }
.envoyer:disabled { opacity: .45; cursor: default; transform: none; }
.aide { min-height: 1.3em; margin-top: 8px; padding-left: 20px; font-size: .82rem; color: rgba(255,255,255,.65); }
.aide.erreur { color: #ffb4a8; }

/* ---------- Formulaire classique (sans JavaScript, ou après une erreur) ---------- */
.formulaire { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: 24px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.formulaire, .formulaire[hidden] { display: none; }   /* jamais affiché : il sert seulement à transmettre les réponses */
.champ { display: grid; gap: 7px; }
.champ label { font-size: .85rem; font-weight: 500; }
.champ input, .champ textarea { width: 100%; padding: 13px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1rem; }
.champ textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.champ input:focus, .champ textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(232,178,106,.55); }
.champ.erreur input, .champ.erreur textarea { border-color: #ff8f80; box-shadow: 0 0 0 2px rgba(255,143,128,.5); }
.champ small { color: #ffb4a8; font-size: .82rem; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.envoi { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.rgpd { font-size: .8rem; opacity: .7; max-width: 280px; line-height: 1.5; }
.rgpd a { color: inherit; }
.alerte { padding: 13px 16px; border-radius: 14px; background: rgba(255,143,128,.18); border: 1px solid rgba(255,143,128,.4); font-size: .92rem; }

.infos { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; font-size: .82rem; }
.infos li { padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.infos a { color: #fff; }

@media (max-width: 900px) {
  .contact-grille { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 30px; padding-top: calc(100px + env(safe-area-inset-top)); }
  .bonjour { font-size: clamp(3.2rem, 17vw, 4.4rem); }
  .contact-intro .lead { font-size: .98rem; margin-top: 16px; }
  .etapes { margin-top: 22px; }
  .contact-droite { justify-self: stretch; max-width: none; }
  .contact-fond img { filter: blur(10px); }
  .contact-fond::after { background: linear-gradient(180deg, rgba(14,22,48,.7), rgba(14,22,48,.88)); }
  .bulle { max-width: 90%; }
  .envoi .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bulle.ecrit i { animation: none; } }
