/* Contact (Victor, 07/11) : extrêmement minimaliste. */
@font-face { font-family: "Danav Sans"; src: url(/polices/danav-sans-light.woff2) format("woff2"), url(/polices/danav-sans-light.otf) format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Danav Deco"; src: url(/polices/danav-deco-outline.woff2) format("woff2"), url(/polices/danav-deco-outline.otf) format("opentype"); font-display: swap; }

/* CONTACT : 10 % de sa taille d'avant (clamp(52px, 15vw, 230px)). */
.contact-titre { position: relative; margin: 56px 0 64px; text-align: center; font: 400 clamp(16px, 1.5vw, 23px)/1 "Danav Deco", Geist, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
/* Le logo du renard au-dessus du mot (Victor, 08/11 : en petit, centré sur CONTACT). Tailles en em : il suit le titre.
   Le dessin fait 1,55 em de large (le SVG garde 3 % de marge de chaque côté, d'où 1,645 em), environ un tiers du mot.
   Décalé de -0,015 em : l'encre du mot est un peu à gauche du centre de sa boîte (l'espacement après le T) ; mesuré à 1100, 1440 et 1800 px. */
.contact-logo { display: block; width: 1.645em; height: auto; margin: 0 auto .12em; translate: -.015em 0; }

.contact { display: flex; flex-direction: column; gap: 28px; max-width: 480px; margin: 0 auto 120px; }
.contact-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-champ { margin: 0; }
.contact input, .contact textarea {
  display: block; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--trait); border-radius: 0;
  background: none; color: var(--encre); font: 400 15px/1.5 Geist, system-ui, sans-serif;
  transition: border-color .3s ease-out;
}
.contact textarea { resize: none; }
/* Le nom du champ, en Danav Sans Light (Victor, 07/11) : capitales seulement dans cette police. */
.contact input::placeholder, .contact textarea::placeholder { color: #a9a59c; opacity: 1; font: 300 13px/1.5 "Danav Sans", Geist, sans-serif; text-transform: uppercase; letter-spacing: .16em; }
.contact input:focus, .contact textarea:focus { outline: none; border-bottom-color: var(--encre); }
.contact-erreur, .contact-envoye { margin: 0 auto; max-width: 480px; font-size: 14px; }
.contact-erreur { color: #d9573f; }
.contact-envoye { margin-bottom: 40px; text-align: center; color: var(--doux); }
.contact-envoyer {
  align-self: flex-start; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; cursor: pointer;
  /* Comme le nom des champs : Danav Sans Light, capitales (Victor, 08/11 ; Geist jusque-là). */
  color: var(--encre); font: 300 13px/1 "Danav Sans", Geist, sans-serif; text-transform: uppercase; letter-spacing: .16em; transition: opacity .2s ease-out;
}
@media (hover: hover) { .contact-envoyer:hover { opacity: .55; } }
.contact-envoyer:active { opacity: .35; }
.contact-envoyer:focus-visible { outline: 2px solid var(--encre); outline-offset: 4px; }
@media (max-width: 520px) { .contact-ligne { grid-template-columns: 1fr; } }

/* La course du renard (js/contact-renard.js) : un canevas posé sur le mot, de la gauche du C à la droite du T. */
.contact-course { position: absolute; pointer-events: none; }

/* Couleurs inversées, comme l'accueil (Victor, 14/11) : fond #111, texte #eee. Les gris gardent leur ton chaud.
   Le logo du site, le renard et sa course (une toile) sont dessinés en noir : passés en blanc par filter. */
html:has(.page-contact), .page-contact {
  color-scheme: dark;
  --fond: #111; --encre: #eee; --doux: #9a978f; --trait: #3a3833; --champ: #111;
}
.page-contact .tete .logo img, .page-contact .contact-logo, .page-contact .contact-course { filter: invert(1); }
.page-contact .contact input::placeholder, .page-contact .contact textarea::placeholder { color: #6f6c65; }
.page-contact .contact input:-webkit-autofill, .page-contact .contact textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--encre); -webkit-box-shadow: 0 0 0 1000px var(--fond) inset; caret-color: var(--encre);
}
