/* SAF-T page (saf-t.php): reuses css/efactura.css (same structure) and adds the sections specific to D406. */
.site-modern.site-saft :is(.sf-videos__inner, .sf-info__inner, .sf-filing) h2 { margin: 0; color: var(--site-ink); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.site-modern.site-saft :is(.sf-videos__inner, .sf-info__inner, .sf-filing) h2 span { color: var(--site-blue); }

/* Solution: long activities read better in one column; key figures card on the right */
.site-modern .sf-activities { grid-template-columns: minmax(0, 1fr); }
.site-modern .sf-figures {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 34px 30px 30px;
    border: 1px solid #d6e3f7;
    border-radius: 26px;
    background:
        radial-gradient(60% 50% at 100% 0%, rgba(33, 101, 232, .1), transparent 70%),
        #fff;
    box-shadow: 0 20px 44px rgba(31, 59, 99, .1);
}
.site-modern .sf-figures__logo {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 6px;
    padding: 16px;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 72% 42% at 50% 6%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #ffffff 0%, #f3f7ff 55%, #e3ecfd 100%);
    box-shadow: inset 0 2px 0 #fff, inset 0 -6px 12px rgba(33, 101, 232, .12), 0 0 0 7px rgba(33, 101, 232, .06), 0 12px 24px rgba(31, 59, 99, .14);
}
.site-modern .sf-figures__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-modern .sf-figure { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(160deg, #f6f9ff 0%, #eef3fd 100%); }
.site-modern .sf-figure strong { flex: 0 0 auto; min-width: 92px; color: var(--site-blue); font-family: var(--site-font-heading); font-size: 32px; font-weight: 700; line-height: 1; }
.site-modern .sf-figure span { color: #3f4d61; font-family: var(--site-font-body); font-size: 15px; font-weight: 600; line-height: 1.45; }

/* Two videos side by side */
.site-modern .sf-videos__inner { max-width: 1160px; margin: 0 auto; }
.site-modern .sf-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.site-modern .sf-video { margin: 0; }
.site-modern .sf-video figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 18px; font-weight: 700; }
.site-modern .sf-video__tag { padding: 5px 11px; border-radius: var(--site-pill); background: #e3ecfd; color: var(--site-blue); font-family: var(--site-font-body); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.site-modern .sf-video__tag--green { background: #e3f6e8; color: #17663a; }

/* Timeline header (who files D406) */
.site-modern .sf-timeline__title { margin: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 20px; font-weight: 700; }
.site-modern .sf-timeline__intro { margin: 8px 0 20px; color: #4a5a70; font-family: var(--site-font-body); font-size: 14px; line-height: 1.6; }

/* What is sent: 3 cards, the master files card is the widest */
.site-modern .sf-info__inner { max-width: 1160px; margin: 0 auto; }
.site-modern .sf-info { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.site-modern .sf-info__card { padding: 30px 26px 26px; border: 1px solid #e4ebf6; border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgba(31, 59, 99, .07); }
.site-modern .sf-info__card .pp-disc { width: 80px; height: 80px; margin: 0 0 16px; }
.site-modern .sf-info__card h3 { margin: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 20px; font-weight: 700; }
.site-modern .sf-info__card > p { margin: 8px 0 0; color: #4a5a70; font-family: var(--site-font-body); font-size: 15px; line-height: 1.6; }
.site-modern .sf-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.site-modern .sf-list li { position: relative; padding-left: 20px; color: #33435a; font-family: var(--site-font-body); font-size: 14px; line-height: 1.55; }
.site-modern .sf-list li::before { content: ''; position: absolute; left: 3px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--site-blue); }
.site-modern .sf-info__card--wide .sf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }

/* Deadlines: two large dark cards */
.site-modern .sf-deadlines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.site-modern .sf-note > p { margin: 10px 0 0; }
.site-modern .sf-list--light li { color: rgba(255, 255, 255, .82); }
.site-modern .sf-list--light li::before { background: #8db6ff; }

/* Filing: 4 numbered cards */
.site-modern .sf-filing { padding: 0 24px 88px; }
.site-modern .sf-filing__inner { max-width: 1160px; margin: 0 auto; }
.site-modern .sf-filing__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.site-modern .sf-filing__card { padding: 24px 22px; border: 1px solid #d6e3f7; border-radius: 20px; background: linear-gradient(160deg, #ffffff 0%, #f6f9ff 100%); box-shadow: 0 10px 26px rgba(31, 59, 99, .06); }
.site-modern .sf-filing__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.site-modern .sf-filing__head .ef-note__icon { margin: 0; }
.site-modern .sf-filing__n { color: #c7dafb; font-family: var(--site-font-heading); font-size: 40px; font-weight: 700; line-height: 1; }
.site-modern .sf-filing__card h3 { margin: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 18px; font-weight: 700; line-height: 1.3; }
.site-modern .sf-filing__card p { margin: 8px 0 0; color: #4a5a70; font-family: var(--site-font-body); font-size: 14px; line-height: 1.6; }

@media (max-width: 1100px) {
    .site-modern .sf-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-modern .sf-info__card--wide { grid-column: 1 / -1; grid-row: 1; }
    .site-modern .sf-filing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .site-modern .sf-videos, .site-modern .sf-deadlines { grid-template-columns: minmax(0, 1fr); }
    .site-modern .sf-figures { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
    .site-modern .sf-filing { padding: 0 16px 56px; }
    .site-modern.site-saft :is(.sf-videos__inner, .sf-info__inner, .sf-filing) h2 { font-size: clamp(22px, 6.4vw, 28px); }
    .site-modern .sf-info, .site-modern .sf-filing__grid { grid-template-columns: minmax(0, 1fr); }
    .site-modern .sf-info__card--wide .sf-list { grid-template-columns: minmax(0, 1fr); }
    .site-modern .sf-figure strong { min-width: 76px; font-size: 26px; }
    .site-modern .sf-video figcaption { font-size: 16px; }
}

/* Hero photo: square images (SAF-T, e-Transport, Contracte), centred in the circle */
.site-modern .ef-circle--saft img { object-position: 50% 50%; }
