/* =====================================================================
   MedCare — Pied de page
   Grille unique : marque | 3 colonnes de liens | contact,
   logotype en filigrane, puis bas de page legal + retour en haut.
   ===================================================================== */

.ft {
  --ft-navy: #0F2A3D;
  --ft-line: rgba(255, 255, 255, .1);
  --ft-muted: rgba(255, 255, 255, .64);
  position: relative;
  overflow: hidden;
  background: var(--ft-navy);
  color: #fff;
  padding: clamp(48px, 6vw, 72px) 0 24px;
}
.ft-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--ft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ft-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 50% 80% at 0% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 80% at 0% 0%, #000 0%, transparent 70%);
  opacity: .5;
}
.ft a { color: inherit; }

/* ---------- Grille principale ---------- */
.ft-main {
  display: grid;
  grid-template-columns: minmax(340px, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(250px, 1.35fr);
  gap: 40px 32px;
  align-items: start;
}

/* Marque */
.ft-brand { display: inline-flex; align-items: center; gap: 10px; }
.ft-mark {
  width: 42px; height: 42px; border-radius: 11px; background: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.ft-mark img { width: 32px; height: auto; }
.ft-word { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .02em; color: var(--accent); }
.ft-word b { font-weight: 800; color: #fff; }
.ft-pitch { margin: 18px 0 22px; max-width: 320px; color: var(--ft-muted); font-size: .95rem; line-height: 1.6; }
.ft-pitch em { font-family: 'Fraunces', Georgia, serif; font-style: italic; color: var(--accent); }
/* Boutons : cote a cote, meme hauteur — plein turquoise + contour blanc */
.ft-cta { display: flex; flex-wrap: nowrap; gap: 10px; }
.ft-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 10px;
  font-weight: 700; font-size: .92rem; line-height: 1; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ft-btn-fill { background: var(--accent); border-color: var(--accent); color: var(--ft-navy) !important; }
.ft-btn-fill:hover { background: #fff; border-color: #fff; }
.ft-btn-line { border-color: rgba(255, 255, 255, .6); color: #fff !important; }
.ft-btn-line:hover { background: #fff; border-color: #fff; color: var(--ft-navy) !important; }
.ft-btn i { transition: transform .2s ease; }
.ft-btn-line:hover i { transform: translateX(3px); }

/* Colonnes */
.ft-col-title {
  font-family: var(--font-body); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 6px 0 14px;
}
.ft-col ul { list-style: none; margin: 0; padding: 0; }
.ft-col li a {
  display: inline-block; padding: 5px 0; color: var(--ft-muted); font-size: .93rem;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 88%;
  transition: color .2s ease, background-size .25s ease;
}
.ft-col li a:hover { color: #fff; background-size: 100% 1px; }

/* Contact */
.ft-contact { margin: 0; font-style: normal; display: flex; flex-direction: column; gap: 10px; }
.ft-phone {
  display: block; padding: 12px 14px; border-radius: 12px;
  background: rgba(23, 163, 152, .18); border: 1px solid rgba(95, 211, 196, .3);
  transition: background .2s ease, border-color .2s ease;
}
.ft-phone:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.ft-phone small { display: block; font-size: .75rem; color: var(--ft-muted); }
.ft-phone:hover small { color: rgba(255, 255, 255, .85); }
.ft-phone strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; }
.ft-line { display: flex; align-items: flex-start; gap: 10px; color: var(--ft-muted); font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.ft-line i { color: var(--accent); margin-top: 2px; }
a.ft-line:hover { color: #fff; }
.ft-social { display: flex; gap: 8px; margin-top: 16px; }
.ft-social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--ft-line); transition: background .2s ease, border-color .2s ease;
}
.ft-social a:hover { background: var(--primary); border-color: var(--primary); }

/* ---------- Logotype en filigrane (texte plein, sans contour) ---------- */
.ft-giant {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.5rem, 15vw, 13rem); line-height: .78; letter-spacing: -.03em;
  text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  margin: clamp(32px, 5vw, 56px) 0 0;
  color: transparent;
  background: linear-gradient(180deg, rgba(95, 211, 196, .16) 0%, rgba(95, 211, 196, .03) 70%, rgba(95, 211, 196, 0) 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- Bas de page ---------- */
.ft-bottom {
  display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--ft-line);
  font-size: .84rem; color: var(--ft-muted);
}
.ft-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1; }
.ft-legal a, .ft-legal button {
  color: var(--ft-muted); background: none; border: 0; padding: 0; font: inherit;
  transition: color .2s ease;
}
.ft-legal a:hover, .ft-legal button:hover { color: #fff; }
.ft-legal button { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.ft-top-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ft-line);
  background: rgba(255, 255, 255, .04); color: #fff;
  transition: background .2s ease, color .2s ease;
}
.ft-top-btn:hover { background: var(--accent); color: var(--ft-navy); }

.ft a:focus-visible, .ft button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  /* Marque + contact sur la 1re ligne, 3 colonnes de liens dessous */
  .ft-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-brand-col { grid-column: 1 / 3; }
  .ft-contact-col { grid-column: 3 / 4; grid-row: 1; }
}
@media (max-width: 767.98px) {
  .ft-main { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .ft-brand-col, .ft-contact-col { grid-column: 1 / -1; }
  .ft-contact-col { grid-row: auto; }
  .ft-pitch { max-width: none; }
}
@media (max-width: 575.98px) {
  .ft-btn { flex: 1; padding: 0 12px; }
  .ft-bottom { position: relative; flex-direction: column; align-items: flex-start; padding-right: 52px; }
  .ft-top-btn { position: absolute; right: 0; top: 18px; }
}
@media (max-width: 359.98px) {
  .ft-cta { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-btn, .ft-btn i, .ft-col li a { transition: none; }
}
