/* Les ajouts de lancement restent séparés des styles historiques du portail. */

.site-nav {
    gap: 18px;
}

.site-brand {
    gap: 10px;
    flex-shrink: 0;
    letter-spacing: normal;
}

.site-company-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.site-brand-name {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.site-brand-aidm {
    width: fit-content;
    line-height: 1.15;
    letter-spacing: .08em;
}

.site-brand-publisher {
    color: var(--text-soft);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .015em;
    white-space: nowrap;
}

.site-nav-links {
    margin-inline-start: auto;
}

.site-nav-links a {
    padding-inline: 10px;
}

.site-display-controls {
    position: relative;
    z-index: 101;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-pill);
    color: var(--text);
    background: var(--surface);
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.theme-toggle[hidden] {
    display: none;
}

.theme-toggle:hover {
    border-color: var(--surface-border-hover);
}

.theme-icon {
    flex-shrink: 0;
}

.theme-icon-moon {
    display: none;
}

:root[data-theme="light"] .theme-icon-sun {
    display: none;
}

:root[data-theme="light"] .theme-icon-moon {
    display: block;
}

.footer-company-logo {
    display: block;
    width: fit-content;
    margin-top: 16px;
    border-radius: 14px;
    overflow: hidden;
}

.footer-company-logo img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #fff;
}

.company-logo {
    max-width: 100%;
    margin-inline: auto;
    border-radius: 18px;
    background: #fff;
    object-fit: contain;
}

.company-signature .company-logo {
    width: 224px;
    height: auto;
    margin-bottom: 16px;
}

.about-company-identity {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.about-company-identity .company-logo {
    width: 192px;
    height: 192px;
    margin: 0;
    flex-shrink: 0;
}

.about-company-identity p {
    margin: 5px 0;
    color: var(--text-soft);
}

.about-company-identity .company-identity-name {
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
}

/* Des encarts fixes restent lisibles sans carrousel et sans chargement d'un service publicitaire. */

.promotions-section {
    padding-block: 44px;
}

.promotions-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.promotions-heading h2 {
    margin: 18px 0 10px;
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -.03em;
}

.promotions-heading > p {
    margin: 0;
    color: var(--text-soft);
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.promotion-card {
    --promo-accent: #a8c4ff;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    background: linear-gradient(155deg, rgba(57, 108, 255, .13), transparent 72%), var(--surface);
}

.promotion-messenger {
    --promo-accent: #d1b9ff;
    background: linear-gradient(155deg, rgba(123, 77, 255, .16), transparent 72%), var(--surface);
}

.promotion-browser {
    --promo-accent: #86e4d4;
    background: linear-gradient(155deg, rgba(28, 157, 145, .14), transparent 72%), var(--surface);
}

.promotion-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.promotion-topline > span {
    color: var(--text-soft);
    font-size: .78rem;
    font-weight: 600;
}

.promotion-topline img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 20px;
    background: #fff;
}

.promotion-app-name {
    margin: 28px 0 10px;
    color: var(--promo-accent);
    font-size: .84rem;
    font-weight: 700;
}

.promotion-card h3 {
    max-width: 320px;
    margin: 0;
    font-size: clamp(1.55rem, 2.3vw, 2rem);
    line-height: 1.15;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.promotion-description {
    margin: 18px 0 22px;
    color: var(--text-soft);
    font-size: .92rem;
    line-height: 1.7;
}

.promotion-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--surface-border);
    color: var(--promo-accent);
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

.promotion-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.promotion-link svg {
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .site-nav {
        gap: 14px;
    }

    .site-nav-links {
        gap: 2px;
    }

    .site-nav-links a {
        padding-inline: 8px;
        font-size: .83rem;
    }

    .site-nav-links .nav-cta {
        margin-left: 0;
        padding-inline: 12px;
    }

    .theme-toggle {
        width: 44px;
        padding: 10px;
    }

    .theme-toggle [data-theme-label] {
        display: none;
    }

}

@media (max-width: 850px) {
    .site-display-controls {
        margin-inline-start: auto;
    }

    .site-nav-links {
        margin: 0;
    }

    .site-nav-links a {
        font-size: 1.15rem;
        padding: 14px 24px;
    }

    .site-nav-links .nav-cta {
        padding: 14px 24px;
    }

    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .promotion-card {
        padding: 26px;
    }

    .promotion-app-name {
        margin-top: 16px;
    }

    .promotion-card h3 {
        max-width: 100%;
        font-size: 1.8rem;
    }

}

@media (max-width: 640px) {
    .site-company-logo {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .site-brand-aidm {
        font-size: 1.18rem;
    }

    .site-brand-publisher {
        font-size: .53rem;
    }

    .site-nav {
        gap: 10px;
    }

    .site-display-controls {
        gap: 4px;
    }

    .theme-toggle {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .promotions-section {
        padding-block: 28px;
    }

    .promotion-card {
        padding: 22px;
    }

    .promotion-topline img {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .promotion-card h3 {
        font-size: 1.65rem;
    }

    .about-company-identity {
        flex-direction: column;
        gap: 20px;
        padding: 24px 20px;
        text-align: center;
    }

    .about-company-identity .company-logo {
        width: 160px;
        height: 160px;
    }

}
