/* main.css n'importe Montserrat qu'en 400 : on charge les graisses utilisées */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ==================================================================== */
/* Footer du site vitrine                                               */
/*                                                                      */
/* Charte de la fiche commerciale (cf. pourquoi-nous-choisir.css) :     */
/* bordeaux profond en fond, rose clair en accent. Préfixe sft- : les   */
/* anciennes classes (.footer-area, .footer-box, .copyright) restent    */
/* stylées par main.css, chargé après ce fichier.                       */
/* ==================================================================== */

.sft {
    --sft-primary: #8B1538;
    --sft-primary-2: #A91D4A;
    --sft-deep: #4f0a1f;
    --sft-deeper: #3a0717;
    --sft-rose: #f6c9d6;
    --sft-text: rgba(255, 255, 255, 0.78);
    --sft-text-strong: #ffffff;
    --sft-line: rgba(255, 255, 255, 0.12);
    --sft-radius: 16px;

    position: relative;
    background: linear-gradient(180deg, var(--sft-deep) 0%, var(--sft-deeper) 100%);
    color: var(--sft-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    padding-top: 56px;
}

/* main.css justifie et colore tous les <p>, colore les <h2> et les liens */
.sft p {
    color: var(--sft-text);
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

.sft a {
    color: var(--sft-text);
}

.sft a:hover,
.sft a:focus-visible {
    color: var(--sft-text-strong);
}

.sft a:focus-visible,
.sft .ui-button:focus-visible {
    outline: 2px solid var(--sft-rose);
    outline-offset: 3px;
    border-radius: 4px;
}

.sft ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Le gabarit copyright.xhtml n'affiche plus rien mais garde un fond sombre */
.sft ~ .copyright {
    display: none;
}

.sft-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================================================================== */
/* Boutons                                                              */
/* ==================================================================== */
.sft .sft-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    border: 1.5px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sft .sft-btn:hover {
    transform: translateY(-1px);
}

.sft .sft-btn--light {
    background: #ffffff;
    color: var(--sft-primary);
}

.sft .sft-btn--light:hover {
    background: var(--sft-rose);
    color: var(--sft-deep);
}

.sft .sft-btn--ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.sft .sft-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* ==================================================================== */
/* Bandeau d'aide                                                       */
/* ==================================================================== */
.sft-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 32px;
    border-radius: var(--sft-radius);
    background: linear-gradient(135deg, var(--sft-primary) 0%, var(--sft-primary-2) 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.sft-help__text {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.sft-help__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 20px;
}

.sft .sft-help__title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.sft .sft-help__lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.sft-help__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

/* ==================================================================== */
/* Colonnes                                                             */
/* ==================================================================== */
.sft-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px 40px;
    padding: 56px 0 48px;
}

.sft .sft-title {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 20px;
    padding-bottom: 12px;
    position: relative;
}

.sft .sft-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--sft-rose);
}

.sft .sft-title--plain {
    padding-bottom: 0;
    margin-bottom: 4px;
}

.sft .sft-title--plain::after {
    display: none;
}

/* Marque */
.sft-logo {
    display: inline-block;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

.sft-logo img {
    display: block;
    height: 44px;
    width: auto;
}

.sft .sft-pitch {
    margin-bottom: 20px;
    max-width: 34ch;
}

.sft .sft-proof {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.sft-proof li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
}

.sft-proof li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sft-rose);
}

.sft-proof strong {
    color: #ffffff;
    font-weight: 700;
}

.sft-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sft .sft-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sft .sft-social a:hover {
    background: #ffffff;
    color: var(--sft-primary);
    transform: translateY(-2px);
}

/* Listes de liens */
.sft-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sft .sft-links a {
    font-size: 14px;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sft .sft-links a:hover {
    transform: translateX(4px);
}

/* Coordonnées */
.sft-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sft-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.sft-contact .pi {
    flex-shrink: 0;
    color: var(--sft-rose);
    font-size: 15px;
    margin-top: 4px;
}

.sft .sft-contact a {
    word-break: break-word;
}

/* ==================================================================== */
/* Newsletter                                                           */
/* ==================================================================== */
.sft-news {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    flex-wrap: wrap;
    padding: 32px 0;
    border-top: 1px solid var(--sft-line);
}

.sft-news__text {
    flex: 1 1 260px;
}

.sft .sft-news__form {
    flex: 1 1 420px;
    max-width: 520px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sft .sft-news__form .ui-inputfield.ui-inputtext {
    flex: 1 1 220px;
    min-width: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #ffffff;
    padding: 12px 20px;
    font-size: 14px;
    box-shadow: none;
}

.sft .sft-news__form .ui-inputfield.ui-inputtext::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.sft .sft-news__form .ui-inputfield.ui-inputtext:enabled:hover {
    border-color: rgba(255, 255, 255, 0.45);
}

.sft .sft-news__form .ui-inputfield.ui-inputtext:enabled:focus {
    border-color: var(--sft-rose);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(246, 201, 214, 0.2);
}

.sft .sft-news__form .sft-news__submit.ui-button {
    background: #ffffff;
    border: 0;
    border-radius: 999px;
    color: var(--sft-primary);
    font-weight: 700;
    padding: 12px 22px;
    transition: background 0.2s ease, color 0.2s ease;
}

.sft .sft-news__form .sft-news__submit.ui-button:enabled:hover {
    background: var(--sft-rose);
    color: var(--sft-deep);
}

.sft .sft-news__form .sft-news__submit .ui-button-text,
.sft .sft-news__form .sft-news__submit .ui-icon {
    color: inherit;
    font-weight: 700;
}

.sft .sft-news__messages {
    flex: 1 1 100%;
}

.sft .sft-news__messages > div {
    margin: 4px 0 0;
}

/* ==================================================================== */
/* Barre légale                                                         */
/* ==================================================================== */
.sft-legal {
    background: rgba(0, 0, 0, 0.22);
    border-top: 1px solid var(--sft-line);
    padding: 20px 0;
}

.sft-legal__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    flex-wrap: wrap;
}

.sft .sft-legal p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.sft-legal__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.sft .sft-legal__links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.sft .sft-legal__links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==================================================================== */
/* Responsive                                                           */
/* ==================================================================== */
@media (max-width: 1199px) {
    .sft-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .sft-help {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .sft {
        padding-top: 32px;
    }

    .sft-help {
        padding: 20px;
    }

    .sft-help__actions,
    .sft-help__actions .sft-btn {
        width: 100%;
        justify-content: center;
    }

    .sft-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 24px;
        padding: 40px 0 32px;
    }

    .sft-col--brand,
    .sft-grid > .sft-col:last-child {
        grid-column: 1 / -1;
    }

    .sft .sft-news__form .sft-news__submit.ui-button {
        width: 100%;
        justify-content: center;
    }

    .sft-legal__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sft *,
    .sft *::before {
        transition: none !important;
        transform: none !important;
    }
}
