/*
Theme Name: Blocksy Child
Template: blocksy
Description: Thème enfant de Blocksy pour Mirrors Studio
Version: 1.0.2
Text Domain: blocksy-child
*/

/* Section Gameloft */
.ms-jeux-header--gameloft {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e0d8;
}

/* Grille Gameloft - disposition différente */
.ms-jeux-grid--gameloft {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Cartes Gameloft : même format que les autres cartes (charte bleu marine / turquoise) */

/* Titre principal accessible (lecteurs d'écran) */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    .ms-jeux-grid--gameloft {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ms-jeux-grid--gameloft {
        grid-template-columns: 1fr;
    }
}

/* Page Services : 4 cartes en grille 2 x 2 */
.ms-services .ms-services-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
}

/* ==========================================================
   PAGE D'ACCUEIL (.ms-home)
   ========================================================== */
.home .entry-content {
    margin-top: 0;
    padding: 0;
}

.ms-home {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    color: #374151;
}

.ms-home section {
    padding: 100px 24px;
}

.ms-home-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ms-home-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 18px;
}

.ms-home-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.ms-home .ms-home-section-head h2 {
    font-size: 28px;
    line-height: 1.5;
    color: #1e3a5f;
    margin: 0 0 18px;
}

.ms-home-section-head p {
    font-size: 17px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

/* Boutons */
.ms-home-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ms-home-btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ms-home-btn:hover {
    transform: translateY(-2px);
}

.ms-home-btn--primary {
    background-color: #0d9488;
    color: #ffffff;
    border: 2px solid #0d9488;
}

.ms-home-btn--primary:hover {
    background-color: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.ms-home-btn--ghost {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.ms-home-btn--ghost:hover {
    background-color: #ffffff;
    color: #1e3a5f;
}

.ms-home-btn--navy {
    background-color: #1e3a5f;
    color: #ffffff;
    border: 2px solid #1e3a5f;
}

.ms-home-btn--navy:hover {
    background-color: #0d9488;
    border-color: #0d9488;
    color: #ffffff;
}

/* 1. Hero */
.ms-home .ms-home-hero {
    background: radial-gradient(circle at 85% 20%, rgba(13, 148, 136, 0.35), transparent 45%), linear-gradient(135deg, #1e3a5f 0%, #12263f 100%);
    color: #ffffff;
    padding: 140px 24px 120px;
}

.ms-home-hero .ms-home-kicker {
    color: #5eead4;
}

.ms-home .ms-home-hero h1 {
    font-size: 48px;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 28px;
    max-width: 900px;
}

.ms-home-hero h1 span {
    color: #5eead4;
}

.ms-home-hero-lead {
    font-size: 19px;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 640px;
    margin: 0 0 40px;
}

/* 2. Chiffres */
.ms-home .ms-home-stats {
    background-color: #ffffff;
    padding: 0 24px;
    border-bottom: 1px solid #e5e7eb;
}

.ms-home-stats .ms-home-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ms-home-stat {
    padding: 40px 20px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

.ms-home-stat:last-child {
    border-right: none;
}

.ms-home-stat strong {
    display: block;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    color: #1e3a5f;
    margin-bottom: 12px;
}

.ms-home-stat span {
    font-size: 14px;
    color: #6b7280;
}

/* 3. Jeux */
.ms-home .ms-home-jeux .ms-home-jeux-grid {
    padding: 0;
    max-width: none;
}

.ms-home .ms-jeu-infos h3 {
    font-size: 15px;
    line-height: 1.6;
    color: #1e3a5f;
    margin: 0 0 15px;
}

.ms-home-center {
    text-align: center;
    margin-top: 48px;
}

/* 4. Expertises */
.ms-home .ms-home-expertises {
    background-color: #ffffff;
}

.ms-home-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ms-home-card {
    display: block;
    background-color: #f8f6f1;
    border-radius: 12px;
    border-top: 3px solid #0d9488;
    padding: 36px 28px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ms-home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.12);
}

.ms-home .ms-home-card h3 {
    font-size: 14px;
    line-height: 1.7;
    color: #1e3a5f;
    margin: 0 0 14px;
}

.ms-home-card p {
    font-size: 15px;
    line-height: 1.65;
    color: #6b7280;
    margin: 0 0 20px;
}

.ms-home-card-link {
    font-size: 14px;
    font-weight: 600;
    color: #0d9488;
}

/* 5. Pourquoi nous */
.ms-home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.ms-home-why-item {
    padding-left: 24px;
    border-left: 3px solid #0d9488;
}

.ms-home .ms-home-why-item h3 {
    font-size: 14px;
    line-height: 1.7;
    color: #1e3a5f;
    margin: 0 0 14px;
}

.ms-home-why-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

/* 6. Appel à l'action */
.ms-home .ms-home-cta {
    background: linear-gradient(135deg, #1e3a5f 0%, #12263f 100%);
    text-align: center;
}

.ms-home .ms-home-cta h2 {
    font-size: 28px;
    line-height: 1.5;
    color: #ffffff;
    margin: 0 0 20px;
}

.ms-home-cta p {
    font-size: 18px;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 620px;
    margin: 0 auto 40px;
}

.ms-home-cta .ms-home-btns {
    justify-content: center;
}

/* Tablette */
@media (max-width: 1024px) {
    .ms-home-cards,
    .ms-home-stats .ms-home-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .ms-home-stat:nth-child(2) {
        border-right: none;
    }
    .ms-home-stat:nth-child(-n+2) {
        border-bottom: 1px solid #e5e7eb;
    }
    .ms-home-why-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .ms-home section {
        padding: 70px 20px;
    }
    .ms-home .ms-home-hero {
        padding: 90px 20px 80px;
    }
    .ms-home .ms-home-hero h1 {
        font-size: 26px;
    }
    .ms-home-hero-lead {
        font-size: 17px;
    }
    .ms-home .ms-home-section-head h2,
    .ms-home .ms-home-cta h2 {
        font-size: 20px;
    }
    .ms-home-cards {
        grid-template-columns: 1fr;
    }
    .ms-home-stat strong {
        font-size: 18px;
    }
    .ms-home-btn {
        width: 100%;
        text-align: center;
    }
}

/* Accueil : pleine largeur et priorité sur les couleurs du thème */
.home .ct-container-full {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.home .entry-content > .ms-home {
    max-width: none !important;
    width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.ms-home .ms-home-hero h1,
.ms-home .ms-home-cta h2 {
    color: #ffffff !important;
}

.ms-home .ms-home-hero h1 span {
    color: #5eead4 !important;
}

.ms-home .ms-home-section-head h2,
.ms-home .ms-home-card h3,
.ms-home .ms-home-why-item h3,
.ms-home .ms-jeu-infos h3 {
    color: #1e3a5f !important;
}

/* Accueil : liens "En savoir plus" alignés en bas des cartes */
.ms-home-card {
    display: flex;
    flex-direction: column;
}

.ms-home-card-link {
    margin-top: auto;
}
