/* =========================================================
   Style Media Europe : ajouts de la V1.1 (novembre 2026)
   Feuille commune à toutes les pages, chargée après le thème.
   Le thème (style.css, responsive.css) n'est pas modifié.
   ========================================================= */

/* Couleur des appels à l'action (devis, appel) : jaune très vif.
   Pour changer de couleur, modifier uniquement ces trois variables. */
:root {
    --sme-cta: #FFE500;
    --sme-cta-hover: #FFF06B;
    --sme-cta-text: #07090D;
}

/* Ancres : laisser la place à l'en-tête fixe */
#devis,
[id^="faq"] {
    scroll-margin-top: 120px;
}

/* Groupes de boutons (accroche, appels à l'action) */
.sme-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 28px;
}
.sme-phone-link {
    font-weight: 600;
    color: var(--bringer-s-heading);
    white-space: nowrap;
}
.sme-phone-link:hover {
    text-decoration: underline;
}

/* Bloc d'appel à l'action (fond ardoise) */
.sme-cta {
    background: #4A6070;
    border-radius: 16px;
    padding: 50px 60px;
    color: #F5F7FA;
}
.sme-cta h2 {
    margin: 0 0 16px 0;
    font-size: 42px;
    line-height: 1.1;
    color: #F5F7FA;
}
.sme-cta p {
    color: #F5F7FA;
    max-width: 640px;
    margin: 0;
}
.sme-cta .sme-phone-link {
    color: #F5F7FA;
}

/* Blocs « Pourquoi Style Media Europe » et étapes */
.sme-why-item h5,
.sme-step h5 {
    margin-bottom: 12px;
}
.sme-why-item p,
.sme-step p {
    margin: 0;
}
.sme-step-number {
    display: block;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bringer-s-text-accent);
    margin-bottom: 10px;
}

/* Formulaire de devis Tally (page Contact) :
   carte claire pour garder le formulaire lisible sur le fond sombre du site */
.sme-form-card {
    background: #1A1D24;
    border: 1px solid var(--bringer-s-border);
    border-top: 4px solid var(--sme-cta);
    border-radius: 16px;
    padding: 36px 32px 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.sme-form-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 0 0 28px 0;
    padding: 0;
}
.sme-form-points li {
    list-style: none;
    position: relative;
    padding-left: 22px;
    color: var(--bringer-s-heading);
}
.sme-form-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sme-cta);
}
.sme-form-note {
    font-size: 15px;
    margin-top: 16px;
}

/* Bouton d'appel fixe, visible sur mobile et tablette uniquement */
.sme-call-fab {
    display: none;
}
@media only screen and (max-width: 960px) {
    .sme-call-fab {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        right: 16px;
        bottom: 16px;
        z-index: 9990;
        padding: 14px 20px;
        border-radius: 999px;
        background: var(--sme-cta);
        border: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 229, 0, 0.18);
        color: var(--sme-cta-text);
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        text-decoration: none;
    }
    .sme-call-fab svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }
    .sme-cta {
        padding: 36px 28px;
    }
    .sme-cta h2 {
        font-size: 32px;
    }
    .sme-form-card {
        padding: 20px 14px 8px;
    }
}

/* Boutons de l'accroche (accueil) */
.sme-hero-actions {
    margin-top: 0;
    margin-bottom: var(--stg-gap);
}

/* Frise « Notre histoire » (page L'atelier) : non stylée par le thème */
.bringer-timeline {
    list-style: none;
    margin: 0 auto !important;
    padding: 0;
    max-width: 760px;
    border-left: 1px solid var(--bringer-s-border);
}
.bringer-timeline li {
    list-style: none;
    position: relative;
    padding: 0 0 36px 32px;
}
.bringer-timeline li:last-child {
    padding-bottom: 0;
}
.bringer-timeline li::marker {
    content: none;
}
.bringer-timeline li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 7px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bringer-s-text-accent);
}
.bringer-timeline-date {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 600;
    color: var(--bringer-s-heading);
}

/* Sommaire de la FAQ : liens lisibles sur le fond ardoise */
.sme-cta .bringer-marked-list a {
    color: #F5F7FA;
}
.sme-cta .bringer-marked-list a:hover {
    text-decoration: underline;
}


/* =========================================================
   Appels à l'action en couleur vive
   ========================================================= */
a.bringer-button[href$="#devis"],
#bringer-header .bringer-header-rp a.bringer-button {
    background: var(--sme-cta);
    border-color: var(--sme-cta);
    color: var(--sme-cta-text);
    font-weight: 600;
    box-shadow: 0 0 0 0 rgba(255, 229, 0, 0);
    transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
a.bringer-button[href$="#devis"]:hover,
#bringer-header .bringer-header-rp a.bringer-button:hover {
    background: var(--sme-cta-hover);
    border-color: var(--sme-cta-hover);
    color: var(--sme-cta-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 229, 0, 0.25);
}
a.bringer-button.sme-button-call {
    background: transparent;
    border: 2px solid var(--sme-cta);
    color: var(--sme-cta);
    font-weight: 600;
}
a.bringer-button.sme-button-call:hover {
    background: var(--sme-cta);
    color: var(--sme-cta-text);
}
/* Lien « Demande de devis » des pages métier (icône) */
a.bringer-icon-link[href$="#devis"] .bringer-icon-wrap {
    background-color: var(--sme-cta);
}
a.bringer-icon-link[href$="#devis"] .bringer-icon {
    filter: invert(1);
}
a.bringer-icon-link[href$="#devis"] h6 {
    color: var(--sme-cta);
}
.sme-call-fab:hover {
    background: var(--sme-cta-hover);
}

/* =========================================================
   Effets au défilement (js/v11.js)
   1. Apparition en fausse 3D : l'élément arrive incliné et se pose.
   2. Cartes empilées : chaque carte passe par-dessus la précédente,
      qui recule et s'incline.
   Désactivés si le visiteur a demandé moins d'animations.
   ========================================================= */
html.sme-fx [data-sme-reveal] {
    opacity: 0;
    transform: perspective(1200px) translate3d(0, 70px, -60px) rotateX(16deg);
    transform-origin: 50% 100%;
    transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--sme-i, 0) * 110ms);
    will-change: transform, opacity;
}
html.sme-fx [data-sme-reveal="zoom"] {
    transform: perspective(1200px) translate3d(0, 60px, 0) scale(0.9);
    transform-origin: 50% 50%;
}
html.sme-fx [data-sme-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* Cartes empilées */
.sme-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.sme-stack-card {
    position: sticky;
    top: calc(110px + var(--sme-k, 0) * 22px);
    transform-origin: 50% 0;
    will-change: transform;
}
/* Cartes métiers de l'accueil : fond opaque teinté pour l'empilement */
.service-card.sme-stack-card {
    min-height: 240px;
    padding: 36px;
    border-radius: 18px;
    border: 1px solid rgb(var(--sme-c));
    background: linear-gradient(rgba(var(--sme-c), 0.22), rgba(var(--sme-c), 0.22)), #11141A;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.55);
}
.service-card.sme-stack-card h5 {
    font-size: 30px;
    margin-bottom: 14px;
}
/* Lignes de détail des pages métier */
.sme-detail-card {
    padding: 28px;
    border-radius: 20px;
    background: #14171D;
    border: 1px solid var(--bringer-s-border);
    box-shadow: 0 -14px 50px rgba(0, 0, 0, 0.6);
}
.sme-detail-card .stg-row {
    margin-bottom: 0;
}
.sme-detail-card .bringer-parallax-media img {
    max-height: 52vh;
    object-fit: cover;
}
.sme-stack-details {
    margin-top: 10px;
}
/* Sur mobile, pas d'empilement (cartes trop hautes pour l'écran) */
@media only screen and (max-width: 767px) {
    .sme-stack-card {
        position: relative;
        top: auto;
    }
    .sme-detail-card {
        padding: 18px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .sme-stack-card {
        position: relative;
        top: auto;
    }
}
