/* contact-encre.css : page « Nous contacter », version « Le trait d'encre » (19/10/2026).
   Chargée après style.css (en-tête, pied, polices de « Notre histoire ») et ed-custom.css (boutique).
   Autonome : la charte (refonte/charte) n'est pas en ligne ; ses valeurs sont reprises ici. Préfixe te-.
   html.te-anime cache ce que la plume va écrire à l'arrivée, html.te-plume ce qu'elle écrira au
   défilement (posés dans le <head>, jamais avec « réduire les animations »). Mode d'emploi : NOTES.md. */
:root {
  --te-olive-900: #14170f;
  --te-olive-850: #1c2015;
  --te-creme: #f4f2ea;
  --te-orange: #f1531a;                 /* l'accent : la goutte, le bouton, le focus */
  --te-orange-clair: #ffb08f;           /* l'encre fraîche sous le texte tapé */
  --te-rouge: #f28b98;                  /* erreurs sur fond olive : 7,8:1 (charte, rouge clair) */
  --te-trait: rgb(244 242 234 / .46);   /* l'encre sèche des lignes */
  --te-doux: rgb(244 242 234 / .8);     /* 11,6:1 */
  --te-pale: rgb(244 242 234 / .66);    /* 7,4:1 */
  --te-gouttiere: clamp(16px, 4vw, 64px);
  --te-entete: 84px;                    /* en-tête de style.css : 14 px + logo de 56 px + 14 px */
  --te-serif: "Forum", Georgia, serif;
  --te-texte: "Questrial", "Helvetica Neue", Arial, sans-serif;
  --te-titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --te-courbe: cubic-bezier(.2, .85, .2, 1);
}
@media (orientation: landscape) and (max-height: 560px) { :root { --te-entete: 50px; } }

.te-hors-ecran, .te-envoye__titre.te-compose .te-envoye__lu {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.te-insecable { white-space: nowrap; }
/* l'en-tête est fixe : un défilement vers un bloc (« Nous contacter » du pied, réponse, erreur) s'arrête dessous */
html { scroll-padding-top: calc(var(--te-entete) + 20px); }
#contenu:focus, .te-carte:focus, .te-alerte:focus, .te-envoye__titre:focus { outline: none; }

/* ---------- En-tête (repris de refonte/contact) ----------
   Méga-menu de la boutique : fermé, il n'était qu'à opacity:0 et ses quelque 40 liens restaient sur le
   chemin du clavier. Fermé, il est aussi caché au clavier et aux lecteurs d'écran (à reporter dans
   ed-custom.css). Le fond de l'en-tête apparaît dès que le contenu passe dessous ; posé sur un
   pseudo-élément, pour que le menu plein écran du téléphone garde l'écran pour cadre. */
.edx-mega { visibility: hidden; transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s; }
.edx-mega.open { visibility: visible; transition-delay: 0s; }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgb(20 23 15 / .86); border-bottom: 1px solid rgb(244 242 234 / .1);
  -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15);
  opacity: 0; transition: opacity .4s var(--te-courbe);
}
.nav.te-fond::before { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .nav__progress span { animation: te-lecture linear both; animation-timeline: scroll(root); }
  @keyframes te-lecture { to { transform: scaleX(1); } }
}
/* bouton « retour en haut » (retour-haut.js) : effacé pendant la saisie, il couvrait le bout des champs */
body:has(.te-form :focus) .retour-haut { opacity: 0; visibility: hidden; }

/* ---------- Commun ---------- */
.te-conteneur { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--te-gouttiere); }
.te-surtitre {
  display: flex; align-items: center; gap: 12px; margin: 0 0 clamp(8px, 1.6vh, 16px);
  font: 400 13px/1.4 var(--te-texte); letter-spacing: .22em; text-transform: uppercase; color: var(--te-pale);
}
.te-surtitre::before { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; }
.te-ecrit { display: block; height: auto; overflow: visible; }
.te-ecrit text { font-family: var(--te-serif); fill: currentColor; }
.te-ecrit .te-point { fill: var(--te-orange); }
.te-lien { color: inherit; text-decoration: underline 1px; text-underline-offset: 3px; text-decoration-color: rgb(244 242 234 / .45); }
.te-page a:focus-visible, .te-page button:focus-visible { outline: 2px solid var(--te-orange); outline-offset: 4px; }
.te-page ::selection { background: rgb(241 83 26 / .35); color: var(--te-creme); }

/* la lueur de la plume, et l'encre fraîche du trait qui voyage (toile) : du décor */
.te-lueur {
  position: absolute; left: 0; top: 0; z-index: 4; width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgb(255 246 226 / .5), rgb(255 236 204 / .15) 48%, rgb(255 236 204 / 0));
}
.te-lueur i {
  position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: #fffbf2; box-shadow: 0 0 8px 2px rgb(255 242 218 / .75);
}
.te-lueur--petite { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.te-lueur--petite i { width: 4px; height: 4px; margin: -2px 0 0 -2px; }

/* ---------- ① L'arrivée ---------- */
.te-scene {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  padding: calc(var(--te-entete) + 8px) 0 clamp(44px, 8vh, 88px);
  background: radial-gradient(70% 55% at 16% 10%, rgb(104 103 54 / .17), rgb(104 103 54 / 0) 70%), var(--te-olive-900);
}
.te-repere { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.te-encre { position: absolute; left: 0; top: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.te-scene__grille { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "carte" "chapeau"; }
.te-tete { grid-area: tete; min-width: 0; }
.te-titre { margin: 0; font-weight: 400; color: var(--te-creme); }
.te-ecrit--titre { width: min(100%, 820px); }
.te-chapeau {
  grid-area: chapeau; margin: 40px 0 0; max-width: 40ch;
  font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: var(--te-doux); text-wrap: pretty;
}
.te-carte { grid-area: carte; position: relative; margin-top: 18px; }
@media (min-width: 861px) {
  .te-scene { padding-top: calc(var(--te-entete) + clamp(24px, 5vh, 56px)); }
  .te-scene__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 330px); grid-template-areas: "tete chapeau" "carte carte"; column-gap: clamp(32px, 4vw, 72px); align-items: end; }
  .te-chapeau { margin: 0; padding-bottom: 10px; }
  .te-carte { margin-top: clamp(28px, 5.4vh, 60px); }
}

/* ---------- Le formulaire : des lignes d'encre ---------- */
.te-form { display: grid; gap: 12px; }
.te-rangee { display: grid; gap: inherit; align-items: end; }
.te-rangee:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
@media (max-width: 359px) { .te-rangee:first-child { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 640px) {
  .te-form { gap: clamp(16px, 3.3vh, 32px); }
  .te-rangee, .te-rangee:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4.6vw, 64px); align-items: start; }
}
.te-champ { position: relative; display: grid; gap: 2px; min-width: 0; }
@media (min-width: 640px) { .te-champ { gap: 4px; } }
.te-etiquette { font: 400 15px/1.4 var(--te-texte); color: var(--te-doux); transition: color .25s; }
.te-note { margin-left: .5em; font-size: 13px; color: var(--te-pale); }
.te-champ:focus-within .te-etiquette { color: var(--te-creme); }
.te-zone { position: relative; }
.te-saisie {
  display: block; width: 100%; min-height: 42px; margin: 0; padding: 7px 0 8px;
  border: 0; border-radius: 0; background: transparent; color: var(--te-creme);
  font: 400 16px/1.5 var(--te-texte); caret-color: var(--te-orange); box-shadow: none; appearance: none; -webkit-appearance: none;
}
@media (min-width: 640px) { .te-saisie { min-height: 44px; padding: 8px 0 9px; } }
/* la boutique (ed-custom.css) pose un liseré vert !important sur tout champ actif, et un fond rose aux
   champs remplis par le navigateur : ici, le focus est la ligne orange, le fond reste celui de la page */
.te-saisie.te-saisie:is(:focus, :focus-visible) { outline: none !important; box-shadow: none !important; border-color: transparent !important; }
.te-saisie.te-saisie:-webkit-autofill, .te-saisie.te-saisie:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--te-creme); caret-color: var(--te-orange);
  -webkit-box-shadow: 0 0 0 1000px var(--te-olive-900) inset !important; box-shadow: 0 0 0 1000px var(--te-olive-900) inset !important;
  transition: background-color 600000s;
}
/* l'encre d'un champ, de bas en haut : la ligne sèche (tracée à l'arrivée), l'encre sous le texte tapé,
   la ligne orange du focus, l'encre fraîche qui suit le curseur et la pointe de la plume */
.te-ligne, .te-trace, .te-allume, .te-frais, .te-pointe, .te-souligne { position: absolute; left: 0; pointer-events: none; }
.te-ligne { right: 0; bottom: 0; height: 1px; background: var(--te-trait); transform-origin: 0 50%; transition: background-color .3s; }
.te-trace { width: 100%; bottom: 0; height: 1.5px; background: rgb(244 242 234 / .9); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--te-courbe); }
.te-allume {
  right: 0; bottom: -.5px; height: 2px; background: var(--te-orange); box-shadow: 0 0 10px rgb(241 83 26 / .5);
  transform: scaleX(0); transform-origin: 0 50%; opacity: 0;
  transition: transform .5s var(--te-courbe), opacity .3s ease;
}
.te-zone:focus-within .te-allume { transform: scaleX(1); opacity: 1; }
.te-frais {
  bottom: -1px; width: 72px; height: 3px; margin-left: -72px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(255 176 143 / 0), rgb(255 214 196 / .95)); opacity: 0; transition: opacity .7s ease;
}
.te-pointe {
  bottom: -3.5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: #fff6ef; box-shadow: 0 0 10px 4px rgb(255 150 110 / .65); opacity: 0; transition: opacity .7s ease;
}
.te-mouille .te-frais, .te-mouille .te-pointe { opacity: 1; transition-duration: .08s; }
/* l'encre souligne le champ fautif : un trait ondulé, tracé à la plume */
.te-souligne { left: -2px; width: calc(100% + 4px); bottom: -9px; height: 9px; overflow: visible; }
.te-souligne path { fill: none; stroke: var(--te-rouge); stroke-width: 1.6px; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--te-courbe); }
[data-te-faute] .te-souligne path { stroke-dashoffset: 0; }
[data-te-faute] .te-ligne { background: var(--te-rouge); }

/* le message : un cadre tracé à la plume (SVG) ; sans script, une simple bordure */
.te-boite { position: relative; border: 1px solid var(--te-trait); border-radius: 10px; }
.te-boite.te-cadre-svg { border-color: transparent; }
.te-saisie--message { min-height: 84px; padding: 10px 14px; line-height: 1.6; resize: vertical; }
@media (min-width: 640px) { .te-saisie--message { min-height: clamp(92px, 15vh, 132px); padding: 12px 16px; } }
.te-cadre { position: absolute; left: -1px; top: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; pointer-events: none; }
.te-cadre path { fill: none; }
.te-cadre__sec { stroke: var(--te-trait); stroke-width: 1px; transition: stroke .3s; }
.te-cadre__allume {
  stroke: var(--te-orange); stroke-width: 2px; filter: drop-shadow(0 0 4px rgb(241 83 26 / .45));
  stroke-dasharray: var(--te-long, 4000) var(--te-long, 4000); stroke-dashoffset: var(--te-long, 4000); opacity: 0;
  transition: stroke-dashoffset .8s var(--te-courbe), opacity .3s ease;
}
.te-boite:focus-within .te-cadre__allume { stroke-dashoffset: 0; opacity: 1; }
[data-te-faute] .te-cadre__sec { stroke: var(--te-rouge); }
.te-boite .te-souligne { bottom: -12px; }
.te-boite .te-frais { bottom: auto; top: 0; }
.te-boite .te-pointe { bottom: auto; top: -2.5px; }
.te-boite.te-hors .te-frais, .te-boite.te-hors .te-pointe { opacity: 0; }
/* sans script, le cadre est une bordure : elle prend l'orange du focus */
.te-boite:not(.te-cadre-svg):focus-within { border-color: var(--te-orange); box-shadow: 0 0 0 1px var(--te-orange); }
.te-miroir {
  position: absolute; left: 0; top: 0; max-height: 0; overflow: hidden; visibility: hidden; pointer-events: none;
  white-space: pre-wrap; overflow-wrap: break-word; word-wrap: break-word;
}
.te-aide { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--te-pale); }
.te-erreur { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--te-rouge); }
.te-champ--message .te-erreur { margin-top: 14px; }
.te-piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.te-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 10px; }
@media (min-width: 640px) { .te-pied { margin-top: 2px; } }
/* la goutte d'encre orange devenue bouton : texte olive 900 sur #f1531a, 5,5:1 */
.te-envoyer {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin: 0; padding: 0 40px;
  border: 0; border-radius: 999px; background: var(--te-orange); color: var(--te-olive-900);
  font: 400 15px/1.2 var(--te-texte); letter-spacing: .08em; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--te-courbe), box-shadow .25s;
}
@media (min-width: 640px) { .te-envoyer { min-height: 52px; } }
.te-envoyer:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgb(241 83 26 / .85); }
.te-envoyer:active { transform: scale(.98); box-shadow: none; }
.te-page .te-envoyer:focus-visible { outline-color: var(--te-creme); }
.te-envoyer[aria-busy="true"] { overflow: hidden; pointer-events: none; cursor: progress; }
.te-envoyer[aria-busy="true"]::before {
  content: ""; position: absolute; left: 0; bottom: 9px; width: 40%; height: 2px; background: currentColor; opacity: .85;
  animation: te-charge 1.1s ease-in-out infinite;
}
@keyframes te-charge { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.te-mention { flex: 1 1 260px; margin: 0; max-width: 48ch; font-size: 13px; line-height: 1.5; color: var(--te-pale); }
.te-alerte { margin-top: 4px; }
.te-alerte__texte { margin: 0; max-width: 62ch; font-size: 15px; line-height: 1.55; color: var(--te-rouge); }
.te-alerte__texte a { color: inherit; text-decoration: underline 1px; text-underline-offset: 3px; }

/* les lettres d'un texte écrit à la plume (HTML) : chacune paraît à son tour, d'abord mouillée */
.te-ecrire .te-c { animation: te-c .3s ease-out both; }
@keyframes te-c { from { opacity: 0; color: #fff; text-shadow: 0 0 8px rgb(255 240 220 / .8); } 60% { opacity: 1; } }

/* ---------- La réponse, écrite à la place du formulaire ---------- */
.te-vue.te-sort { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
.te-envoye { padding: clamp(4px, 2vh, 24px) 0 8px; }
.te-envoye__titre { margin: 0; color: var(--te-creme); font: 400 clamp(30px, 4.2vw, 54px)/1.15 var(--te-serif); }
.te-ecrit--envoye { max-width: 100%; font-size: clamp(30px, 4.2vw, 54px); }
.te-envoye__texte { margin: 20px 0 0; max-width: 46ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: var(--te-doux); }
.te-bouton-contour {
  display: inline-flex; align-items: center; min-height: 48px; margin: 28px 0 0; padding: 0 26px;
  border: 1px solid rgb(244 242 234 / .55); border-radius: 999px; background: transparent; color: var(--te-creme);
  font: 400 14px/1.2 var(--te-texte); letter-spacing: .06em; cursor: pointer; transition: border-color .25s, background-color .25s;
}
.te-bouton-contour:hover { border-color: var(--te-creme); background: rgb(244 242 234 / .06); }
.te-envoye .te-apparait { animation: te-apparait .6s var(--te-courbe) both; animation-delay: var(--te-retard, 0s); }
@keyframes te-apparait { from { opacity: 0; transform: translateY(10px); } }

/* ---------- ② Nos coordonnées ---------- */
.te-coord { position: relative; padding: clamp(56px, 10vh, 120px) 0 clamp(64px, 11vh, 128px); border-top: 1px solid rgb(244 242 234 / .08); }
.te-coord__titre { margin-bottom: clamp(30px, 5vh, 52px); }
.te-coord__adresse { font-style: normal; }
.te-liste { display: grid; gap: 34px; margin: 0; }
@media (min-width: 768px) { .te-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vh, 64px) clamp(40px, 6vw, 96px); } }
.te-info dd { margin: 0; }
.te-intertitre { margin: 0 0 14px; font: 700 12px/1.3 var(--te-titre); font-stretch: 105%; letter-spacing: .16em; text-transform: uppercase; color: var(--te-pale); }
.te-intertitre::before { content: ""; display: block; width: 22px; height: 1px; margin-bottom: 10px; background: currentColor; }
.te-numero, .te-adresse { display: inline-block; color: var(--te-creme); text-decoration: none; border-radius: 4px; }
.te-ecrit--numero { width: calc(5.58 * clamp(50px, 5vw, 70px)); max-width: 100%; }
.te-adresse { display: inline-grid; justify-items: start; gap: 12px; }
.te-ecrit--adresse { width: calc(7.04 * clamp(28px, 2.5vw, 38px)); max-width: 100%; }
.te-plan { font-size: 14px; color: var(--te-doux); text-decoration: underline 1px; text-underline-offset: 3px; text-decoration-color: rgb(244 242 234 / .45); }
.te-courriel { font-size: clamp(17px, 1.4vw, 20px); color: var(--te-creme); text-decoration: underline 1px; text-underline-offset: 5px; text-decoration-color: rgb(244 242 234 / .35); overflow-wrap: anywhere; }
.te-horaires { display: block; font-size: 16px; line-height: 1.6; color: var(--te-doux); }
.te-horaires:first-child { color: var(--te-creme); }
.te-coord .te-intertitre, .te-coord .te-plan, .te-coord .te-info--courriel dd, .te-coord .te-info--horaires dd { transition: opacity .6s ease, transform .6s var(--te-courbe); }

/* ---------- Avant le passage de la plume ---------- */
html.te-anime .te-scene .te-surtitre,
html.te-anime .te-chapeau,
html.te-anime .te-etiquette,
html.te-anime .te-aide,
html.te-anime .te-mention { opacity: 0; }
html.te-anime .te-ligne { transform: scaleX(0); }
html.te-anime .te-boite { border-color: transparent; }
html.te-anime .te-cadre__sec { stroke-dasharray: 0 100000; }
html.te-anime .te-boite .te-saisie--message { resize: none; }
html.te-anime .te-envoyer { -webkit-clip-path: circle(0px at 28px 50%); clip-path: circle(0px at 28px 50%); }
html.te-anime .te-envoyer > span { opacity: 0; }
html.te-anime .te-ecrit--titre:not(.te-fait) .te-l,
html.te-plume .te-coord:not(.te-fait) .te-l,
.te-ecrit--envoye.te-a-ecrire .te-l {
  fill: rgb(255 255 255 / 0); stroke: #fffdf6; stroke-linejoin: round; stroke-dasharray: 600 4000; stroke-dashoffset: 600;
}
html.te-plume .te-coord:not(.te-fait) .te-intertitre,
html.te-plume .te-coord:not(.te-fait) .te-plan,
html.te-plume .te-coord:not(.te-fait) .te-info--courriel dd,
html.te-plume .te-coord:not(.te-fait) .te-info--horaires dd { opacity: 0; transform: translateY(8px); }

/* ---------- Téléphone ---------- */
/* Sans JavaScript (ou si contact-encre.js n'a pas démarré au bout de 6 s), style.css aligne les liens du
   menu dans la barre fixe, qui grandissait par-dessus le titre : elle reprend alors sa place dans la page. */
@media (max-width: 860px) {
  html:not(.js-on) .nav { position: relative; flex-wrap: wrap; row-gap: 4px; }
  html:not(.js-on) .nav__logo { flex: none; }
  html:not(.js-on) .nav__recherche { display: none; }
  html:not(.js-on) .te-scene { padding-top: 20px; }
  .te-lueur { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
}
@media (max-width: 374px) { .te-surtitre { letter-spacing: .16em; } }

/* ---------- Moins d'animations : tout est déjà écrit, rien ne bouge ---------- */
@media (prefers-reduced-motion: reduce) {
  .te-frais, .te-pointe, .te-lueur { display: none; }
  .te-allume, .te-cadre__allume, .te-trace, .te-souligne path, .te-etiquette, .te-envoyer, .te-bouton-contour, .te-ligne, .nav::before { transition: none; }
  .te-ecrire .te-c, .te-envoye .te-apparait, .te-envoyer[aria-busy="true"]::before { animation: none; }
}

/* ---------- Impression : les coordonnées seules, tout écrit ---------- */
@media print {
  .nav, .lien-evitement, .te-encre, .te-lueur, .te-carte, .te-chapeau, .footer .cta, .footer nav, .footer__insta, .retour-haut { display: none !important; }
  .te-page, .te-scene, .te-coord, .footer { background: #fff !important; color: #000 !important; padding: 12px 0 !important; }
  .te-titre, .te-numero, .te-adresse, .te-courriel, .te-horaires, .te-surtitre, .te-intertitre, .te-plan, .te-info dd { color: #000 !important; opacity: 1 !important; transform: none !important; }
  .te-l { fill: #000 !important; stroke: none !important; }
}
