/* SecretGift V8.9.6 — accueil compact, coloré et visuel */

body:has(.sg-home-page) .container {
    max-width: none !important;
    padding: 14px 16px 18px !important;
}

.sg-home-page {
    display: grid;
    gap: 11px;
}

.sg-home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, .7fr) minmax(250px, .72fr);
    gap: 16px;
    align-items: center;
    min-height: 305px;
    padding: 25px 28px;
    overflow: hidden;
    border-radius: 17px;
    background:
        radial-gradient(circle at 55% 48%, rgba(244, 116, 75, .30), transparent 27%),
        radial-gradient(circle at 75% 25%, rgba(206, 51, 126, .33), transparent 36%),
        linear-gradient(128deg, #4b177d 0%, #1f1766 46%, #8d185c 100%);
    color: #fff;
    box-shadow: 0 13px 28px rgba(42, 22, 73, .20);
}

.sg-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .14;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.sg-hero-copy,
.sg-hero-gift,
.sg-hero-benefits {
    position: relative;
    z-index: 1;
}

.sg-hero-chip {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f3c85d, #d69a25);
    color: #fff;
    font-size: .69rem;
    font-weight: 950;
    box-shadow: 0 5px 12px rgba(0,0,0,.15);
}

.sg-hero-copy h1 {
    max-width: 670px;
    margin: 12px 0 9px;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 4.15rem);
    font-weight: 950;
    line-height: .98;
    letter-spacing: -.045em;
}

.sg-hero-copy p {
    max-width: 670px;
    margin: 0;
    color: rgba(255,255,255,.91);
    font-size: .92rem;
    line-height: 1.48;
}

.sg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
}

.sg-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: .76rem;
    font-weight: 950;
    text-decoration: none;
}

.sg-home-button--gold {
    border: 1px solid #e5bd59;
    background: linear-gradient(135deg, #e9bd54, #c8952b);
    color: #fff;
    box-shadow: 0 7px 14px rgba(0,0,0,.17);
}

.sg-home-button--outline {
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(255,255,255,.06);
    color: #fff;
}

.sg-home-button:hover {
    transform: translateY(-2px);
}

.sg-hero-gift {
    display: grid;
    place-items: center;
    min-height: 225px;
}

.sg-gift-glow {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 181, 81, .62), rgba(255, 81, 108, .16) 50%, transparent 72%);
    filter: blur(2px);
}

.sg-gift-emoji {
    position: relative;
    z-index: 2;
    font-size: 7.2rem;
    filter: drop-shadow(0 20px 18px rgba(0,0,0,.26));
    transform: rotate(-3deg);
}

.sg-shield-emoji {
    position: absolute;
    z-index: 3;
    right: 10px;
    bottom: 17px;
    font-size: 3.1rem;
    filter: drop-shadow(0 9px 9px rgba(0,0,0,.24));
}

.sg-spark {
    position: absolute;
    z-index: 2;
    color: #ffd772;
    text-shadow: 0 0 12px #ffbb4c;
    animation: sgSpark 2.2s ease-in-out infinite alternate;
}

.sg-spark--1 {
    left: 18px;
    top: 38px;
    font-size: 1.2rem;
}

.sg-spark--2 {
    right: 24px;
    top: 60px;
    font-size: 1.5rem;
    animation-delay: .4s;
}

.sg-spark--3 {
    left: 45px;
    bottom: 38px;
    font-size: .9rem;
    animation-delay: .8s;
}

@keyframes sgSpark {
    from { opacity: .45; transform: scale(.8); }
    to { opacity: 1; transform: scale(1.15); }
}

.sg-hero-benefits {
    display: grid;
    gap: 8px;
}

.sg-hero-benefits article {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 9px;
    align-items: center;
    min-height: 67px;
    padding: 10px 11px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(8px);
}

.sg-hero-benefits article > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.10);
    color: #ffd353;
    font-size: 1.1rem;
}

.sg-hero-benefits strong {
    display: block;
    color: #fff;
    font-size: .78rem;
}

.sg-hero-benefits small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.82);
    font-size: .65rem;
    line-height: 1.25;
}

.sg-home-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
}

.sg-step-card {
    --step-bg: #eee9f8;
    --step-border: #795cc0;
    --step-title: #4a2a82;
    --step-muted: #6f6381;

    position: relative;
    display: grid;
    grid-template-rows: auto 58px auto 1fr auto;
    gap: 7px;
    min-height: 215px;
    padding: 13px 14px;
    border: 1px solid color-mix(in srgb, var(--step-border) 35%, white);
    border-radius: 12px;
    background: var(--step-bg);
    box-shadow: 0 5px 13px rgba(35,28,20,.07);
    text-align: center;
}

.sg-step-card--purple {
    --step-bg: linear-gradient(145deg, #f0e9ff, #e4d7f8);
    --step-border: #7446ba;
    --step-title: #4e258d;
    --step-muted: #6f6381;
}

.sg-step-card--orange {
    --step-bg: linear-gradient(145deg, #fff5e8, #f8e5cd);
    --step-border: #db760d;
    --step-title: #bc5700;
    --step-muted: #806951;
}

.sg-step-card--green {
    --step-bg: linear-gradient(145deg, #ecfff4, #d9f1e4);
    --step-border: #26a76c;
    --step-title: #0d7a42;
    --step-muted: #587568;
}

.sg-step-card--blue {
    --step-bg: linear-gradient(145deg, #eef5ff, #dbe9fb);
    --step-border: #357bd2;
    --step-title: #1d5ea8;
    --step-muted: #5c708a;
}

.sg-step-number {
    position: absolute;
    top: 11px;
    left: 11px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--step-border);
    color: #fff;
    font-size: .69rem;
    font-weight: 950;
}

.sg-step-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 58px;
    margin: 3px auto 0;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    font-size: 2.4rem;
    filter: drop-shadow(0 6px 7px rgba(0,0,0,.08));
}

.sg-step-card h2 {
    margin: 0;
    color: var(--step-title);
    font-size: .92rem;
}

.sg-step-card > p {
    margin: 0;
    color: var(--step-muted);
    font-size: .72rem;
    line-height: 1.35;
}

.sg-step-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(0,0,0,.06);
}

.sg-step-tags span {
    color: var(--step-muted);
    font-size: .62rem;
    white-space: nowrap;
}

.sg-home-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    overflow: hidden;
    border: 1px solid #e2ddd4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(35,28,20,.05);
}

.sg-home-trust article {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 9px;
    align-items: center;
    min-height: 66px;
    padding: 10px 14px;
    border-right: 1px solid #ece7df;
}

.sg-home-trust article:last-child {
    border-right: 0;
}

.sg-trust-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: .95rem;
}

.sg-trust-icon--green {
    background: #dff2e6;
    color: #248653;
}

.sg-trust-icon--gold {
    background: #fbf0d2;
    color: #c49220;
}

.sg-trust-icon--purple {
    background: #eee3fa;
    color: #7651b4;
}

.sg-trust-icon--red {
    background: #f9e0e3;
    color: #d24a59;
}

.sg-home-trust strong {
    display: block;
    color: #2c261f;
    font-size: .75rem;
}

.sg-home-trust small {
    display: block;
    margin-top: 2px;
    color: #777066;
    font-size: .62rem;
}

@media (max-width: 1150px) {
    .sg-home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(190px, .55fr);
    }

    .sg-hero-benefits {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .sg-home-steps {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 760px) {
    body:has(.sg-home-page) .container {
        padding: 9px !important;
    }

    .sg-home-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .sg-hero-copy h1 {
        font-size: 2.35rem;
    }

    .sg-hero-gift {
        min-height: 150px;
    }

    .sg-gift-emoji {
        font-size: 5.4rem;
    }

    .sg-shield-emoji {
        right: 24%;
        bottom: 8px;
        font-size: 2.35rem;
    }

    .sg-hero-benefits {
        grid-template-columns: 1fr;
    }

    .sg-home-trust {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .sg-home-trust article:nth-child(2) {
        border-right: 0;
    }

    .sg-home-trust article:nth-child(-n+2) {
        border-bottom: 1px solid #ece7df;
    }
}

@media (max-width: 520px) {
    .sg-home-steps,
    .sg-home-trust {
        grid-template-columns: 1fr;
    }

    .sg-home-trust article {
        border-right: 0;
        border-bottom: 1px solid #ece7df;
    }

    .sg-home-trust article:last-child {
        border-bottom: 0;
    }

    .sg-hero-actions {
        display: grid;
    }

    .sg-home-button {
        width: 100%;
    }

    .sg-step-card {
        min-height: 0;
    }
}


/* SecretGift V10.3 — services personnalisés sur l'accueil */
.sg-home-button--custom {
    background: linear-gradient(135deg, #9a64d6, #6540a4);
    color: #fff !important;
    border-color: transparent !important;
}

.sg-home-services {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.sg-services-heading {
    max-width: 850px;
}

.sg-services-heading > span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e8dcfa;
    color: #57328d;
    font-size: .64rem;
    font-weight: 950;
    letter-spacing: .06em;
}

.sg-services-heading h2 {
    margin: 7px 0 4px;
    font-size: clamp(1.45rem, 3vw, 2.3rem);
}

.sg-services-heading p {
    margin: 0;
    color: #70675e;
    line-height: 1.5;
}

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

.sg-service-card {
    --service-bg: #e0eff8;
    --service-border: #2681af;
    --service-text: #174f70;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 15px;
    border: 1px solid var(--service-border);
    border-left: 8px solid var(--service-border);
    border-radius: 14px;
    background: var(--service-bg);
    color: var(--service-text);
    box-shadow: 0 8px 20px rgba(30, 24, 17, .08);
}

.sg-service-card--own {
    --service-bg: #eadffa;
    --service-border: #7954b5;
    --service-text: #442576;
}

.sg-service-card--find {
    --service-bg: #dff2e6;
    --service-border: #278553;
    --service-text: #185b39;
}

.sg-service-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255,255,255,.62);
    font-size: 1.55rem;
}

.sg-service-card h3 {
    margin: 11px 0 5px;
    color: var(--service-text);
    font-size: 1.05rem;
}

.sg-service-card p {
    margin: 0;
    min-height: 72px;
    color: var(--service-text);
    opacity: .86;
    font-size: .76rem;
    line-height: 1.45;
}

.sg-service-card ul {
    display: grid;
    gap: 6px;
    margin: 12px 0;
    padding: 0;
    list-style: none;
    font-size: .7rem;
    font-weight: 800;
}

.sg-service-card a {
    display: grid;
    place-items: center;
    min-height: 42px;
    margin-top: auto;
    border-radius: 9px;
    background: var(--service-border);
    color: #fff;
    font-size: .72rem;
    font-weight: 950;
    text-decoration: none;
}

.sg-service-comparison {
    padding: 13px;
    border-left: 7px solid #d0a94f;
    border-radius: 13px;
    background: #f6edd9;
}

.sg-service-comparison h3 {
    margin: 0 0 9px;
}

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

.sg-comparison-grid article {
    display: grid;
    gap: 5px;
    padding: 9px;
    border-radius: 9px;
    background: rgba(255,255,255,.72);
}

.sg-comparison-grid strong {
    margin-bottom: 3px;
    font-size: .74rem;
}

.sg-comparison-grid span {
    color: #645949;
    font-size: .65rem;
}

@media (max-width: 900px) {
    .sg-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sg-service-card--find {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .sg-services-grid,
    .sg-comparison-grid {
        grid-template-columns: 1fr;
    }

    .sg-service-card--find {
        grid-column: auto;
    }

    .sg-service-card {
        min-height: 0;
    }

    .sg-service-card p {
        min-height: 0;
    }
}
