/**
 * Accueil institutionnel (domaine master uniqué).
 * body.master-platform-home est défini dans index-master.html.
 */

/* Grille type Bootstrap (page sans bootstrap.css) */
body.master-platform-home .container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

body.master-platform-home .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

body.master-platform-home .row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    width: 100%;
}

body.master-platform-home .align-items-center {
    align-items: center;
}

body.master-platform-home .text-center {
    text-align: center;
}

body.master-platform-home .mb-4 {
    margin-bottom: 1.5rem;
}

body.master-platform-home .img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 768px) {
    body.master-platform-home .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    body.master-platform-home .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    body.master-platform-home .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    body.master-platform-home .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

body.master-platform-home {
    --mh-blue: #0f5f9e;
    --mh-blue-deep: #0a4a7a;
    --mh-blue-bright: #1a8dd9;
    --mh-mint: #0d9488;
    --mh-text: #1a1d21;
    --mh-text-muted: #5c6570;
    --mh-surface: #ffffff;
    --mh-surface-soft: #f0f6fc;
    --mh-border: rgba(15, 95, 158, 0.12);
    --mh-radius: 14px;
    --mh-radius-lg: 20px;
    --mh-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --mh-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.12);
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--mh-text);
    background: var(--mh-surface-soft);
}

body.master-platform-home .hero-section {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #0a4a7a 0%, #0f5f9e 42%, #1577c2 78%, #1a8dd9 100%);
}

body.master-platform-home .hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        linear-gradient(105deg, transparent 60%, rgba(13, 148, 136, 0.12) 100%);
    pointer-events: none;
    z-index: 0;
}

body.master-platform-home .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 40, 70, 0.25) 0%, transparent 55%);
    z-index: 1;
}

body.master-platform-home .hero-content {
    position: relative;
    z-index: 2;
    padding: 5.5rem 0 4.5rem;
}

body.master-platform-home .hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1rem;
}

body.master-platform-home .hero-title {
    font-family: "Outfit", "DM Sans", sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.25rem;
    line-height: 1.15;
}

body.master-platform-home .hero-title-line {
    display: block;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 0.5rem;
    letter-spacing: -0.01em;
}

body.master-platform-home .hero-highlight {
    display: block;
    background: linear-gradient(90deg, #fff 0%, #c8e8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.master-platform-home .hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.75rem;
    line-height: 1.65;
    max-width: 34rem;
}

body.master-platform-home .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
}

body.master-platform-home .hero-btn-primary {
    background: #fff;
    color: var(--mh-blue) !important;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.master-platform-home .hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    color: var(--mh-blue-deep) !important;
}

body.master-platform-home .hero-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

body.master-platform-home .hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff !important;
}

body.master-platform-home .hero-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.master-platform-home .hero-trust-list li {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.master-platform-home .hero-trust-list i {
    color: #7dd3c0;
    font-size: 0.85rem;
}

body.master-platform-home .hero-visual-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--mh-radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body.master-platform-home .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0;
}

body.master-platform-home .stat-item {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--mh-radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.master-platform-home .stat-number {
    font-family: "Outfit", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
}

body.master-platform-home .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    line-height: 1.3;
}

body.master-platform-home .hero-visual-caption {
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    line-height: 1.5;
}

body.master-platform-home .hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    line-height: 0;
}

body.master-platform-home .hero-shape svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Services */
body.master-platform-home .services-section {
    padding: 5rem 0 5.5rem;
    background: var(--mh-surface);
}

body.master-platform-home .master-section-header {
    margin-bottom: 3rem;
}

body.master-platform-home .section-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mh-blue-bright);
    margin: 0 0 0.5rem;
}

body.master-platform-home .section-eyebrow--dark {
    color: var(--mh-mint);
}

body.master-platform-home .services-section .section-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--mh-text);
    margin-bottom: 0.75rem;
    position: relative;
}

body.master-platform-home .services-section .section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin: 1rem auto 0;
    background: linear-gradient(90deg, var(--mh-blue), var(--mh-blue-bright));
    border-radius: 2px;
}

body.master-platform-home .section-title--left::after {
    margin-left: 0;
    margin-right: auto;
}

body.master-platform-home .section-subtitle {
    font-size: 1.05rem;
    color: var(--mh-text-muted);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.6;
}

body.master-platform-home .why-choose-section .section-subtitle {
    margin: 0;
}

body.master-platform-home .service-card {
    background: var(--mh-surface);
    border-radius: var(--mh-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--mh-border);
    box-shadow: var(--mh-shadow);
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.master-platform-home .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mh-shadow-hover);
    border-color: rgba(26, 141, 217, 0.35);
}

body.master-platform-home .service-card::before {
    display: none;
}

body.master-platform-home .service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--mh-blue) 0%, var(--mh-blue-bright) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #fff;
    font-size: 1.65rem;
    box-shadow: 0 8px 20px rgba(15, 95, 158, 0.25);
}

body.master-platform-home .service-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--mh-text);
    margin-bottom: 0.65rem;
}

body.master-platform-home .service-description {
    color: var(--mh-text-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

body.master-platform-home .feature-badge {
    background: var(--mh-surface-soft);
    color: var(--mh-blue);
    border: 1px solid var(--mh-border);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Why us */
body.master-platform-home .why-choose-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #e8f2fb 0%, #f0f6fc 100%);
}

body.master-platform-home .why-choose-content .section-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--mh-text);
    margin-bottom: 0.5rem;
    text-align: left;
}

body.master-platform-home .why-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1.25rem 1.35rem;
    background: var(--mh-surface);
    border-radius: var(--mh-radius);
    border: 1px solid var(--mh-border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.master-platform-home .why-item:hover {
    transform: translateX(4px);
    box-shadow: var(--mh-shadow);
}

body.master-platform-home .why-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--mh-blue), var(--mh-blue-bright));
    border-radius: 12px;
    font-size: 1.1rem;
    margin-right: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

body.master-platform-home .why-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mh-text);
    margin-bottom: 0.35rem;
}

body.master-platform-home .why-text p {
    font-size: 0.9rem;
    color: var(--mh-text-muted);
    margin: 0;
    line-height: 1.5;
}

body.master-platform-home .image-container {
    border-radius: var(--mh-radius-lg);
    overflow: hidden;
    box-shadow: var(--mh-shadow-hover);
    position: relative;
}

body.master-platform-home .master-image-placeholder {
    min-height: 280px;
    background: linear-gradient(135deg, var(--mh-blue) 0%, var(--mh-mint) 100%);
}

body.master-platform-home .master-image-placeholder-inner {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.35);
}

body.master-platform-home .image-container img {
    transition: transform 0.4s ease;
}

body.master-platform-home .image-container:hover img {
    transform: scale(1.03);
}

body.master-platform-home .image-overlay {
    background: linear-gradient(transparent, rgba(10, 40, 70, 0.88));
}

/* Testimonials */
body.master-platform-home .testimonials-section {
    padding: 5rem 0;
    background: var(--mh-surface);
}

body.master-platform-home .testimonial-card {
    border-radius: var(--mh-radius-lg);
    border: 1px solid var(--mh-border);
    box-shadow: var(--mh-shadow);
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.master-platform-home .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mh-shadow-hover);
}

body.master-platform-home .testimonial-content p {
    font-size: 1rem;
    font-style: normal;
    color: var(--mh-text-muted);
    line-height: 1.6;
}

body.master-platform-home .testimonial-content p::before {
    color: var(--mh-blue-bright);
    opacity: 0.35;
}

body.master-platform-home .author-avatar {
    background: linear-gradient(135deg, var(--mh-blue), var(--mh-blue-bright));
}

/* CTA */
body.master-platform-home .cta-section {
    padding: 4.5rem 1.5rem;
    background: linear-gradient(135deg, var(--mh-blue-deep) 0%, var(--mh-blue) 50%, #135a8c 100%);
    color: #fff;
}

body.master-platform-home .cta-content h2 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

body.master-platform-home .cta-content > p {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 32rem;
    margin: 0 auto 1.75rem;
    line-height: 1.55;
}

body.master-platform-home .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
    align-items: center;
}

body.master-platform-home .cta-btn {
    background: #fff;
    color: var(--mh-blue) !important;
    border: none;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

body.master-platform-home .cta-btn:hover {
    transform: translateY(-2px);
    color: var(--mh-blue-deep) !important;
}

body.master-platform-home .cta-btn-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.55);
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

body.master-platform-home .cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 991px) {
    body.master-platform-home .hero-section {
        min-height: auto;
    }

    body.master-platform-home .hero-content {
        padding: 4rem 0 3rem;
    }

    body.master-platform-home .hero-visual-card {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    body.master-platform-home .hero-stats {
        grid-template-columns: 1fr;
    }

    body.master-platform-home .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    body.master-platform-home .hero-btn-primary,
    body.master-platform-home .hero-btn-secondary {
        justify-content: center;
    }

    body.master-platform-home .why-item {
        flex-direction: column;
        text-align: center;
    }

    body.master-platform-home .why-icon {
        margin-right: 0;
        margin-left: auto;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 576px) {
    body.master-platform-home .hero-title {
        font-size: 1.85rem;
    }

    body.master-platform-home .stat-number {
        font-size: 1.5rem;
    }
}
