/* Correctifs d'interface communs à toutes les pages FaitMinute. */

.account-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 22px;
}

.account-actions .btn {
  width: 100%;
  white-space: nowrap;
}

/* Le menu desktop reste compact et chaque libellé tient sur une ligne. */
@media (min-width: 961px) {
  .topbar {
    height: 76px;
    min-height: 76px;
    padding: 0 clamp(16px, 2vw, 32px);
    gap: clamp(12px, 1.5vw, 22px);
    flex-wrap: nowrap;
  }

  .logo img {
    width: clamp(166px, 16vw, 190px);
  }

  .menu-toggle {
    display: none;
  }

  .topbar nav {
    display: flex;
    width: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(8px, 1vw, 14px);
    margin-left: auto;
  }

  .topbar nav a {
    padding: 0;
    font-size: clamp(.74rem, .9vw, .84rem);
    line-height: 1.2;
    white-space: nowrap;
  }

  .topbar .actions {
    display: flex;
    width: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
  }

  .topbar .actions .btn {
    width: auto;
    padding: 9px 12px;
    font-size: .79rem;
    line-height: 1.2;
    white-space: nowrap;
  }
}

/* En dessous de 960 px, le menu passe proprement dans le bouton mobile. */
@media (max-width: 960px) {
  .topbar {
    height: auto;
    min-height: 72px;
    padding: 12px 18px;
    flex-wrap: wrap;
  }

  .logo img {
    width: 185px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .topbar nav,
  .topbar .actions {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .topbar.open nav,
  .topbar.open .actions {
    display: flex;
  }

  .topbar nav a {
    padding: 8px 0;
    font-size: .9rem;
  }

  .topbar .actions .btn {
    width: 100%;
    padding: 11px 14px;
  }
}

/* FAITMINUTE SEO CONTENT 2026 */
.fm-content {
    margin-top: 34px;
    margin-bottom: 70px;
}

.fm-content > h2 {
    margin-top: 38px;
    margin-bottom: 14px;
    color: #161616;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.25;
}

.fm-content > h2:first-child {
    margin-top: 0;
}

.fm-content > p {
    max-width: 900px;
    color: #3a3a3a;
    font-size: 1.02rem;
    line-height: 1.75;
}

.fm-example-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.fm-example-grid.fm-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fm-example {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 22px 0;
    padding: 20px;
    border: 1px solid #d6d6f0;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #f6f6fe);
    box-shadow: 0 8px 24px rgba(0, 0, 145, 0.06);
}

.fm-example-grid .fm-example {
    margin: 0;
}

.fm-example strong {
    color: #000091;
    font-size: 1.05rem;
}

.fm-example span {
    color: #4b4b5b;
    line-height: 1.6;
}

.fm-related-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.fm-related-links a {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 16px 18px;
    color: #000091;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    border: 1px solid #d6d6f0;
    border-radius: 11px;
    background: #ffffff;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.fm-related-links a::after {
    content: "→";
    margin-left: auto;
    padding-left: 12px;
}

.fm-related-links a:hover {
    border-color: #000091;
    box-shadow: 0 9px 22px rgba(0, 0, 145, 0.10);
    transform: translateY(-2px);
}

.fm-security-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.fm-security-list > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 12px;
    background: #f6f6fe;
    border-top: 4px solid #000091;
}

.fm-security-list strong {
    color: #000091;
}

.fm-security-list span {
    color: #4b4b5b;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .fm-example-grid,
    .fm-example-grid.fm-three,
    .fm-related-links,
    .fm-security-list {
        grid-template-columns: 1fr;
    }

    .fm-content {
        margin-top: 24px;
        margin-bottom: 50px;
    }

    .fm-content > h2 {
        margin-top: 30px;
        font-size: 1.45rem;
    }
}
