/* ==========================================================================
   CONTACT et CONFIDENTIALITÉ
   ========================================================================== */

main { max-width: 1280px; margin: 0 auto; width: 100%; }

.contact-grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(28px, 5vw, 60px); align-items: start; }

/* ---------- Latte ---------- */
.latte { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; }
#latte-svg { width: min(200px, 50%); height: auto; color: var(--chocolat); }
#lait { transition: y .5s ease, height .5s ease; }
#vapeur path { opacity: 0; transition: opacity .4s; }
#vapeur.on path { opacity: .8; animation: vapeur 1.6s ease-in-out infinite alternate; }
#vapeur.on path:nth-child(2) { animation-delay: .4s; }
@keyframes vapeur { to { transform: translateY(-8px); } }
.latte-photo { display: none; position: relative; width: min(340px, 82%); aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--creme-fonce); }
.latte.photos .latte-photo { display: block; }
.latte.photos #latte-svg { display: none; }
.latte-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.vapeur-photo { position: absolute; left: 38%; top: 8%; width: 24%; height: 26%; stroke: var(--creme); z-index: 2; overflow: visible; }
.vapeur-photo path { opacity: 0; transition: opacity .4s; }
.vapeur-photo.on path { opacity: .85; animation: vapeur 1.6s ease-in-out infinite alternate; }
.vapeur-photo.on path:nth-child(2) { animation-delay: .4s; }
.latte-etat { font-family: var(--serif); font-style: italic; color: var(--bleu); font-size: 1.25rem; text-align: center; min-height: 1.4em; margin: 0; }

/* ---------- Façons de me joindre ---------- */
.voies { border-top: 1px solid color-mix(in srgb, var(--chocolat) 25%, transparent); }
.voie { display: grid; grid-template-columns: 118px 1fr auto; gap: 12px; align-items: center; padding: 16px 2px; border-bottom: 1px solid color-mix(in srgb, var(--chocolat) 25%, transparent); }
.voie small { font-size: .62rem; letter-spacing: .14em; opacity: .65; }
.voie .valeur { font-weight: 600; font-size: clamp(1rem, 1.7vw, 1.2rem); word-break: break-word; overflow-wrap: anywhere; margin: 0; }
.voie a.valeur { color: var(--bleu); }
.voie .bouton { padding: .6em 1em; }

/* ---------- Bloc CV ---------- */
.bloc-cv { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; background: var(--rose); border-radius: 14px; padding: 18px 20px; }
.bloc-cv h2 { font-size: 1.6rem; }
.bloc-cv p { margin: 4px 0 0; font-size: .9rem; }

/* ---------- Formulaire ---------- */
.form-titre { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; }
.form-titre em { display: block; font-size: 1.06em; line-height: 1.1; margin-top: .1em; }
.form-titre { margin-bottom: 18px; }
label { display: block; font-size: .7rem; letter-spacing: .18em; opacity: .8; margin: 14px 0 6px; }
input, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--chocolat); background: color-mix(in srgb, var(--creme) 55%, #fff); border: 1.5px solid color-mix(in srgb, var(--chocolat) 30%, transparent); border-radius: 10px; padding: 12px 14px; }
textarea { min-height: 150px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bleu); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bleu) 25%, transparent); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.envoyer { margin-top: 18px; }
.envoyer[disabled] { opacity: .6; cursor: progress; }
.statut { margin: 14px 0 0; min-height: 1.5em; font-family: var(--serif); font-style: italic; color: var(--bleu); font-size: 1.25rem; }
.statut a { color: var(--bleu); font-family: var(--texte); font-style: normal; font-size: 1rem; }
.rgpd { font-size: .78rem; opacity: .8; margin-top: 10px; }

/* ---------- Confidentialité ---------- */
.texte-legal { max-width: 720px; margin-top: clamp(28px, 5vw, 50px); }
.texte-legal .maj { font-size: .8rem; opacity: .7; margin: 0 0 24px; }
.texte-legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 32px 0 8px; }
.texte-legal p { margin: 0 0 12px; }
.texte-legal a, .retour a { color: var(--bleu); overflow-wrap: anywhere; }
.retour { margin-top: 36px; }

@media (max-width: 820px) {
  .contact-grille { grid-template-columns: minmax(0, 1fr); }
  .deux { grid-template-columns: minmax(0, 1fr); }
  .voie { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .voie .bouton { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { #vapeur.on path, .vapeur-photo.on path { animation: none; } #lait, .latte-photo img { transition: none; } }

/* ==========================================================================
   ÉCHELLE DE TEXTE UNIQUE — téléphone (≤ 700 px), Contact et Confidentialité : 12 · 14 · 16 · 20 · 24 · 32 px, zones tactiles ≥ 44 px
   ========================================================================== */
@media (max-width: 700px) {
  .page-titre h1, .form-titre { font-size: 2rem; }
  .bloc-cv h2, .texte-legal h2 { font-size: 1.5rem; }
  .latte-etat, .statut { font-size: 1.25rem; }
  .voie .valeur, .bloc-cv p, .texte-legal p, .texte-legal li, .statut a { font-size: 1rem; line-height: 1.55; }
  .rgpd, .texte-legal .maj { font-size: .875rem; }
  .voie small, label { font-size: .75rem; }
  input, textarea { min-height: 48px; }
  .voie { min-height: 56px; }
}

@media (max-width: 700px) { .voie .valeur { display: inline-block; padding: 8px 0; } }   /* e-mail et LinkedIn : zone tactile de 44 px */

/* Téléphone (retouches de Marah du 03/11) : page plus compacte */
@media (max-width: 700px) {
  .page-titre h1 { font-size: 1.75rem; }
  .form-titre, .bloc-cv h2 { font-size: 1.25rem; }
  .latte-photo { max-width: 62%; margin-left: auto; margin-right: auto; }
  .latte-etat, .statut { font-size: 1.05rem; }
  .voie .valeur, .bloc-cv p, .texte-legal p, .texte-legal li { font-size: .9rem; }
  .texte-legal h2 { font-size: 1.25rem; }
  .rgpd { font-size: .8rem; }
  label { font-size: .7rem; }
}

/* ==========================================================================
   Contact sur téléphone (choix A de Marah, 03/11) : latte plus petit, coordonnées en cartes tactiles, CV compact, formulaire replié derrière « Écrire un message »
   ========================================================================== */
.ouvrir-form { display: none; }
@media (max-width: 700px) {
  .contact-grille { gap: 14px; margin-top: 10px; }
  .latte { margin-bottom: 14px; gap: 6px; }
  .latte-photo { width: 150px; max-width: 150px; border-radius: 14px; }
  #latte-svg { width: 110px; }
  .latte-etat { font-size: 1rem; }

  .voies { border-top: 0; display: grid; gap: 10px; }
  .voie { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "etiq bouton" "val bouton"; column-gap: 12px; row-gap: 2px; align-items: center; min-height: 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--chocolat) 18%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--creme) 55%, #fff); }
  .voie small { grid-area: etiq; font-size: .625rem; letter-spacing: .14em; opacity: .65; }
  .voie .valeur { grid-area: val; padding: 0; font-size: .8125rem; line-height: 1.3; overflow-wrap: anywhere; }
  .voie .bouton { grid-area: bouton; grid-column: auto; justify-self: end; min-height: 32px; padding: 0 12px; font-size: .625rem; letter-spacing: .06em; position: relative; max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; }   /* texte agrandi : le bouton passe à la ligne au lieu de déborder */
  .voie .bouton::after { content: ""; position: absolute; inset: -6px -2px; }
  .voie:last-child { border: 0; background: none; padding: 0 2px; }   /* localisation : simple ligne, pas une carte */
  .voie:last-child .valeur { font-size: .75rem; }

  .bloc-cv { margin-top: 0; padding: 14px; gap: 10px; flex-wrap: wrap; }   /* texte agrandi : le bouton passe sous le texte au lieu de déborder */
  .bloc-cv > div, .bloc-cv > p { flex: 1 1 8em; min-width: 0; }
  .bloc-cv h2 { font-size: 1.05rem; }
  .bloc-cv p { font-size: .75rem; margin-top: 2px; }
  .bloc-cv .bouton { min-height: 32px; padding: 0 12px; font-size: .625rem; letter-spacing: .06em; white-space: nowrap; position: relative; }
  .bloc-cv .bouton::after { content: ""; position: absolute; inset: -6px -2px; }

  .ouvrir-form { display: inline-flex; justify-self: stretch; justify-content: center; margin-top: 4px; }
  .ouvrir-form[hidden] { display: none; }
  #formulaire:not(.ouvert) { display: none; }
}

@media (max-width: 700px) { .voies { margin-bottom: 4px; } .voie:last-child { padding-bottom: 8px; } }

@media (max-width: 700px) { #formulaire { scroll-margin-top: 90px; } }

/* Contact téléphone : la localisation est aussi dans un cadre ; la phrase en bleu passe à la ligne, en entier */
@media (max-width: 700px) {
  .voie:last-child { grid-template-columns: minmax(0, 1fr); grid-template-areas: "etiq" "val"; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--chocolat) 18%, transparent); background: color-mix(in srgb, var(--creme) 55%, #fff); }
  .voie:last-child > span:last-child { display: none; }
  .voie:last-child .valeur { font-size: .8125rem; }
  .voie:last-child .valeur em { display: block; margin-top: 2px; }
}

@media (max-width: 700px) { .voies { margin-bottom: 0; } .contact-gauche { display: block; } .bloc-cv { margin-top: 10px; } }

/* Texte agrandi (zoom 200 %) : un long titre (« Confidentialité ») passe à la ligne au lieu de dépasser l'écran */
.page-titre h1 { overflow-wrap: break-word; hyphens: auto; }
