/* ==========================================================================
   Éléments communs aux pages intérieures (prestations, contact…)
   ========================================================================== */

/* ---------- Titre ---------- */

.titre-page {
  margin: 0;
  text-align: center;
  font: 44px/1.1 var(--police-titre);
  letter-spacing: 0.04em;
}

.fleuron {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(260px, 60%);
  margin: 22px auto 0;
}

.fleuron::before,
.fleuron::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cuivre-clair));
}

.fleuron::after {
  transform: scaleX(-1);
}

.fleuron i {
  width: 8px;
  height: 8px;
  background: var(--cuivre);
  transform: rotate(45deg);
}

/* ---------- Lien « cadre de visée » (même geste que le menu) ---------- */

.lien-cadre {
  position: relative;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.16s var(--ease-out);
}

.lien-cadre::before {
  --c: var(--cuivre-clair);
  content: "";
  position: absolute;
  inset: 2px;
  opacity: 0;
  transform: scale(1.18);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'%3E%3Csvg x='0' y='0' width='1' height='1' overflow='visible'%3E%3Cpath d='M0 0.5H12M0.5 0V12' stroke='%23cd966f' stroke-width='1' fill='none'/%3E%3C/svg%3E%3Csvg x='100%' y='0' width='1' height='1' overflow='visible'%3E%3Cpath d='M0 0.5H-12M-0.5 0V12' stroke='%23cd966f' stroke-width='1' fill='none'/%3E%3C/svg%3E%3Csvg x='0' y='100%' width='1' height='1' overflow='visible'%3E%3Cpath d='M0 -0.5H12M0.5 0V-12' stroke='%23cd966f' stroke-width='1' fill='none'/%3E%3C/svg%3E%3Csvg x='100%' y='100%' width='1' height='1' overflow='visible'%3E%3Cpath d='M0 -0.5H-12M-0.5 0V-12' stroke='%23cd966f' stroke-width='1' fill='none'/%3E%3C/svg%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transition: transform 0.15s var(--ease-out), opacity 0.12s ease-out;
}

.lien-cadre:focus-visible::before {
  opacity: 1;
  transform: scale(1);
  transition-duration: 0.22s, 0.16s;
}

@media (hover: hover) and (pointer: fine) {
  .lien-cadre:hover::before {
    opacity: 1;
    transform: scale(1);
    transition-duration: 0.22s, 0.16s;
  }
}

.lien-cadre.declenche::before {
  opacity: 1;
  transform: scale(0.9);
  transition-duration: 0.08s;
}

/* ---------- Boutons ---------- */

.cta {
  display: inline-block;
  height: 46px;
  padding: 0 26px;
  border: 1px solid var(--cuivre);
  background: var(--noir);
  color: var(--or);
  font: 18px/44px var(--police-titre);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cta:focus-visible {
  border-color: transparent;
  color: var(--blanc);
}

@media (hover: hover) and (pointer: fine) {
  .cta:hover {
    border-color: transparent;
    color: var(--blanc);
  }
}

/* Appui : le bouton se tasse légèrement */
.cta:active {
  transform: scale(0.97);
}

.cta--secondaire {
  color: var(--blanc);
}

.cta--secondaire:focus-visible {
  color: var(--or);
}

@media (hover: hover) and (pointer: fine) {
  .cta--secondaire:hover {
    color: var(--or);
  }
}

.cta:focus-visible,
.sommaire a:focus-visible {
  outline-offset: 6px;
}

/* ==========================================================================
   Mobile : maquette de 320px mise à l'échelle
   ========================================================================== */

@media (max-width: 767px) {
  .titre-page {
    font-size: calc(32 * var(--u));
  }
  .fleuron {
    gap: calc(12 * var(--u));
    margin-top: calc(16 * var(--u));
  }
  .cta {
    height: calc(44 * var(--u));
    padding: 0 calc(20 * var(--u));
    font-size: calc(15 * var(--u));
    line-height: calc(42 * var(--u));
  }
}
