/*
 * Page « Contact » : carte postale (plan + coordonnées) et prise de rendez-vous.
 */

@keyframes cemSpin { to { transform: rotate(360deg); } }
@keyframes cemPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: .7; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* ---------- Titre et carte postale ---------- */

.contact { padding: 64px 0 0; position: relative; overflow: hidden; }
.contact-titres {
  max-width: 880px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.contact-surtitre { font-family: Delius, sans-serif; font-size: 22px; color: var(--turquoise); }
.contact h1 { margin: 0; font-family: Delius, sans-serif; font-weight: 700; font-size: 44px; line-height: 1.1; color: var(--encre); }
.contact-titres p { margin: 0; font-size: 16px; color: #6B655F; max-width: 520px; text-wrap: pretty; }

.contact-carte-cadre { max-width: 820px; margin: 44px auto 0; padding: 0 24px; }
.contact-carte {
  position: relative; background: #fff; border-radius: 6px; box-shadow: 0 20px 44px rgba(80, 60, 40, .14);
  transform: rotate(-1.5deg); transition: transform .4s;
  display: grid; grid-template-columns: minmax(0, 1.15fr) 1.5px minmax(0, 1fr); gap: 0 24px; padding: 22px 26px 22px 22px;
}
.contact-carte:hover { transform: rotate(0deg) scale(1.02); }
/* Le « timbre » en haut à droite */
.contact-tampon {
  position: absolute; right: 22px; top: 18px; width: 58px; height: 70px; border: 2px dashed #E6DDD1; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; background: var(--creme);
}
.contact-tampon img { height: 54px; transform: rotate(6deg); }

/* Plan : image fixe OpenStreetMap, un clic ouvre l'itinéraire */
.contact-plan { position: relative; aspect-ratio: 4 / 3; background: #E3ECE9; overflow: hidden; border-radius: 4px; }
.contact-plan-lien { position: absolute; inset: 0; display: block; color: inherit; }
.contact-plan-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.contact-plan-lien:hover .contact-plan-image { transform: scale(1.04); }
.contact-plan-repere {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--rose);
  transform: translate(-50%, -50%); box-shadow: 0 0 0 4px #fff;
}
.contact-plan-repere--onde { box-shadow: none; animation: cemPulse 1.8s ease-out infinite; }
.contact-plan-bouton {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); white-space: nowrap;
  background: rgba(255, 255, 255, .92); padding: 6px 12px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  font-size: 13px; font-weight: 600; color: var(--encre-fonce); transition: color .2s;
}
.contact-plan-lien:hover .contact-plan-bouton { color: var(--framboise); }
.contact-plan-credit {
  position: absolute; right: 0; bottom: 0; font-size: 10px; line-height: 1.4; padding: 1px 5px;
  background: rgba(255, 255, 255, .8); color: var(--texte); border-top-left-radius: 4px;
}

.contact-separation { background: #E6DDD1; }
.contact-infos { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding-top: 72px; }
.contact-bientot { font-family: Delius, sans-serif; font-size: 17px; color: var(--encre); margin-bottom: 4px; }
.contact-ligne { display: flex; gap: 12px; align-items: center; }
.contact-ligne--haut { align-items: flex-start; }
.contact-icone { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.contact-adresse { font-size: 14px; line-height: 1.45; color: var(--encre-fonce); }
.contact-adresse span { color: #6B655F; font-size: 13px; }
.contact-telephone { font-size: 16px; font-weight: 600; color: var(--encre-fonce); }
.contact-email { font-size: 13.5px; color: var(--encre-fonce); word-break: break-all; }

/* ---------- Prendre rendez-vous ---------- */

.rdv { background: #fff; margin-top: 64px; padding: 56px 24px; position: relative; }
.rdv-vague { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: 60px; display: block; pointer-events: none; }
.rdv-int { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; align-items: center; text-align: center; }
.rdv h2 { margin: 0; font-family: Delius, sans-serif; font-weight: 700; font-size: 28px; color: var(--encre); }
.rdv-pastille { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--ocre); margin-right: 12px; vertical-align: middle; }
.rdv-int > p { margin: 0; font-size: 13.5px; color: #9A938C; }
.rdv-equipe {
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 18px;
  width: 100%; max-width: 640px; margin: 0 auto;
}
.rdv-personne { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--encre); transition: transform .3s; }
a.rdv-personne:hover { transform: translateY(-4px); color: var(--encre); }
.rdv-rond { position: relative; width: 92px; height: 92px; display: flex; align-items: center; justify-content: center; }
.rdv-anneau {
  position: absolute; inset: -11px; border-radius: 50%; opacity: 0; transition: opacity .3s;
  background: conic-gradient(var(--rose) 0 33%, var(--vert) 33% 66%, var(--turquoise) 66% 100%);
  animation: cemSpin 4s linear infinite;
}
a.rdv-personne:hover .rdv-anneau { opacity: 1; }
.rdv-photo {
  position: relative; width: 92px; height: 92px; border-radius: 50%; border: 4px solid; box-sizing: border-box; display: block;
  overflow: hidden; background: #EFE6DA; box-shadow: 0 0 0 6px #fff;
}
.rdv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rdv-prenom { font-family: Delius, sans-serif; font-size: 16px; }

/* ---------- Téléphone ---------- */

@media (max-width: 760px) {
  .contact h1 { font-size: clamp(34px, 9vw, 44px); }
  .contact-carte { grid-template-columns: minmax(0, 1fr); gap: 20px 0; padding: 18px 18px 22px; }
  .contact-infos { padding-top: 0; }
  .contact-separation { height: 1.5px; }
  .rdv-equipe { grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr)); gap: 22px 12px; }
}
