/*
 * GUMA DIGITAL — HOME PREMIUM V5-C5
 * Périmètre : accueil uniquement.
 * Aucun contenu institutionnel modifié.
 */

body.is-home {
    --guma-home-violet: #6B3FA0;
    --guma-home-green: #2E7D32;
    --guma-home-orange: #E65100;
    --guma-home-text: #263044;
    --guma-home-muted: #666666;
    --guma-home-border: rgba(107, 63, 160, .12);
    --guma-home-shadow: 0 16px 40px rgba(30, 24, 53, .07);
}

/* Sections et rythme vertical */

body.is-home .guma-home-main > .guma-section {
    padding-top: clamp(3.5rem, 6vw, 6rem);
    padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

body.is-home .guma-home-main > .guma-section + .guma-section {
    border-top: 1px solid rgba(107, 63, 160, .06);
}

body.is-home .guma-home-main .guma-container {
    max-width: 1240px;
}

/* Titres institutionnels */

body.is-home .guma-home-main h2 {
    letter-spacing: -.025em;
    line-height: 1.16;
    text-wrap: balance;
}

body.is-home .guma-home-main p {
    line-height: 1.75;
}

body.is-home .guma-home-main .guma-kicker {
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Domaines d'intervention — GUMA D31-C PREMIUM */

body.is-home .guma-domains {
    background: linear-gradient(
        180deg,
        #faf8fd 0%,
        #f4eff9 100%
    );
    padding-block: 76px 84px !important;
}

body.is-home .guma-domains .guma-section-heading {
    margin-bottom: 38px !important;
}

body.is-home .guma-domains .guma-domains-grid,
body.is-home .guma-domains .guma-domain-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    border: 0;
}

body.is-home .guma-domains .guma-domain-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    height: 100%;
    padding: 32px 18px 30px !important;

    background: #fff;
    border: 1px solid rgba(87, 57, 115, .10) !important;
    border-radius: 8px;

    box-shadow: 0 10px 28px rgba(40, 21, 58, .055);

    text-align: center;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

body.is-home .guma-domains .guma-domain-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 3px;

    background: var(--domain-color, #65328d);

    opacity: 0;
    transform: scaleX(.35);
    transform-origin: center;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

body.is-home .guma-domains .guma-domain-icon,
body.is-home .guma-domains .guma-domain-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 74px;
    height: 74px;
    margin: 0 auto 20px;

    background: #f7f2fb;
    border: 1px solid rgba(87, 57, 115, .06);
    border-radius: 8px;

    color: var(--domain-color, #65328d);
}

body.is-home .guma-domains .guma-domain-icon svg,
body.is-home .guma-domains .guma-domain-card__icon svg {
    width: 43px;
    height: 43px;
}

body.is-home .guma-domains .guma-domain-card h3 {
    margin: 0 0 14px;
    font-size: clamp(15px, 1.12vw, 18px);
    font-weight: 750;
    line-height: 1.4;
    color: #321b4b;
}

body.is-home .guma-domains .guma-domain-card p {
    margin: 0;
    color: #655d72;
    font-size: 14px;
    line-height: 1.7;
}

body.is-home .guma-domains .guma-domain-card a {
    text-decoration: none;
}

body.is-home .guma-domains .guma-domain-card a:hover,
body.is-home .guma-domains .guma-domain-card a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (hover: hover) {
    body.is-home .guma-domains .guma-domain-card:hover {
        transform: translateY(-6px);
        border-color: rgba(107, 63, 160, .24) !important;
        box-shadow: 0 20px 42px rgba(40, 21, 58, .12);
    }

    body.is-home .guma-domains .guma-domain-card:hover::before {
        opacity: 1;
        transform: scaleX(1);
    }
}

@media (max-width: 1100px) {
    body.is-home .guma-domains .guma-domains-grid,
    body.is-home .guma-domains .guma-domain-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    body.is-home .guma-domains {
        padding-block: 48px 56px !important;
    }

    body.is-home .guma-domains .guma-domains-grid,
    body.is-home .guma-domains .guma-domain-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    body.is-home .guma-domains .guma-domain-card {
        padding: 26px 20px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.is-home .guma-domains .guma-domain-card,
    body.is-home .guma-domains .guma-domain-card::before {
        transition: none;
    }
}

/* GUMA_D31E_DOMAIN_REFINEMENT */

/* Les cartes entières sont des liens : pas de soulignement permanent. */
body.is-home .guma-domains a.guma-domain-card,
body.is-home .guma-domains a.guma-domain-card:link,
body.is-home .guma-domains a.guma-domain-card:visited,
body.is-home .guma-domains a.guma-domain-card:hover,
body.is-home .guma-domains a.guma-domain-card:focus-visible,
body.is-home .guma-domains a.guma-domain-card h3,
body.is-home .guma-domains a.guma-domain-card p {
    text-decoration: none !important;
}

/* Couleurs institutionnelles restaurées. */
body.is-home .guma-domains .guma-domain-card:nth-child(1) {
    --domain-color: #58218a;
}
body.is-home .guma-domains .guma-domain-card:nth-child(2) {
    --domain-color: #19733d;
}
body.is-home .guma-domains .guma-domain-card:nth-child(3) {
    --domain-color: #e66b16;
}
body.is-home .guma-domains .guma-domain-card:nth-child(4) {
    --domain-color: #58218a;
}
body.is-home .guma-domains .guma-domain-card:nth-child(5) {
    --domain-color: #19733d;
}

body.is-home .guma-domains .guma-domain-card .guma-domain-icon,
body.is-home .guma-domains .guma-domain-card .guma-domain-card__icon {
    color: var(--domain-color);
    background: color-mix(in srgb, var(--domain-color) 7%, white);
    border-color: color-mix(in srgb, var(--domain-color) 13%, white);
}

body.is-home .guma-domains .guma-domain-card svg {
    stroke: currentColor;
}

body.is-home .guma-domains a.guma-domain-card:focus-visible {
    outline: 3px solid var(--domain-color);
    outline-offset: 3px;
}

/* GUMA_D31F_CARD_SPACING
   Cinq cartes distinctes, sans bordures de tableau.
   FR et EN — accueil uniquement.
*/

body.is-home .guma-domains .guma-domains-grid,
body.is-home .guma-domains .guma-domain-grid {
    gap: 16px !important;
    border: 0 !important;
}

body.is-home .guma-domains a.guma-domain-card {
    border: 1px solid rgba(87, 57, 115, .12) !important;
    border-radius: 6px;
    background: rgba(255, 255, 255, .94);
}

body.is-home .guma-domains a.guma-domain-card + a.guma-domain-card {
    border-left: 1px solid rgba(87, 57, 115, .12) !important;
}

body.is-home .guma-domains a.guma-domain-card:last-child {
    border-right: 1px solid rgba(87, 57, 115, .12) !important;
    border-bottom: 1px solid rgba(87, 57, 115, .12) !important;
}

@media (max-width: 1100px) {
    body.is-home .guma-domains .guma-domains-grid,
    body.is-home .guma-domains .guma-domain-grid {
        gap: 14px !important;
    }
}

@media (max-width: 600px) {
    body.is-home .guma-domains .guma-domains-grid,
    body.is-home .guma-domains .guma-domain-grid {
        gap: 12px !important;
    }
}

/* Présentation institutionnelle */

/* GUMA_D26B_MAGIC_DESIGNER */
body.is-home .guma-impact {
    background: #F4EFF9;
}

body.is-home .guma-impact__content {
    background: #EBE1F5;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    border-left: 4px solid #ED6D16;
    border-radius: 4px;
}

body.is-home .guma-impact__map {
    background: transparent;
}

@media (max-width: 900px) {
    body.is-home .guma-impact__content {
        padding: clamp(1.25rem, 4vw, 2rem);
    }
}

body.is-home .guma-impact__content {
    max-width: 760px;
}

body.is-home .guma-impact__content p {
    color: var(--guma-home-text);
}

/* Projets : présentation sans réalisations fictives */

body.is-home .guma-projects {
    background: #f8f7fb;
}

body.is-home .guma-projects-editorial {
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid var(--guma-home-border);
    border-left: 4px solid var(--guma-home-violet);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: var(--guma-home-shadow);
}

body.is-home .guma-projects-editorial h2 {
    color: var(--guma-home-violet);
}

body.is-home .guma-projects-editorial p {
    max-width: 660px;
    margin-inline: auto;
    color: var(--guma-home-muted);
}

body.is-home .guma-projects-editorial__action {
    margin-top: 1.75rem;
}

body.is-home .guma-projects-editorial__action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .85rem 1.4rem;
    border-radius: 5px;
    background: var(--guma-home-violet);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color .2s ease,
        transform .2s ease;
}

body.is-home .guma-projects-editorial__action a:hover {
    background: #563184;
    color: #ffffff;
}

body.is-home .guma-projects-editorial__action a:focus-visible {
    outline: 3px solid var(--guma-home-orange);
    outline-offset: 4px;
}

/* Mot du Président et Vision */

body.is-home .guma-leadership {
    background: #ffffff;
}

body.is-home .guma-leadership--vision {
    background: #faf9fc;
}

body.is-home .guma-leadership h2 {
    color: var(--guma-home-violet);
}

/* Actualités et partenaires */

body.is-home .guma-news {
    background: #ffffff;
}

body.is-home .guma-partners {
    background: #f8f7fb;
}

body.is-home .guma-news a,
body.is-home .guma-partners a {
    text-underline-offset: 3px;
}

/* Accessibilité */

@media (prefers-reduced-motion: reduce) {
    body.is-home .guma-domain-card,
    body.is-home .guma-projects-editorial__action a {
        transition: none !important;
        transform: none !important;
    }
}

/* Tablette */

@media (max-width: 1180px) {
    body.is-home .guma-home-main > .guma-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

/* Mobile */

@media (max-width: 767px) {
    body.is-home .guma-home-main > .guma-section {
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
    }

    body.is-home .guma-home-main h2 {
        line-height: 1.22;
    }

    body.is-home .guma-projects-editorial {
        padding: 1.75rem 1.25rem;
        text-align: left;
    }

    body.is-home .guma-projects-editorial p {
        margin-inline: 0;
    }

    body.is-home .guma-projects-editorial__action a {
        width: 100%;
    }

    body.is-home .guma-domains .guma-domain-card {
        transform: none;
    }
}
