/*
 * LES GUYARDS - NOUVEL ACCUEIL
 * Feuille de style reservee a la maquette.
 * Le diaporama Freddo n'est pas modifie.
 */

.gh-home {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #263547;
    font-size: 17px;
    line-height: 1.75;
}

.gh-home,
.gh-home * {
    box-sizing: border-box;
}

.gh-home .gh-shell {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
}

.gh-home h1,
.gh-home h2,
.gh-home h3 {
    color: #172b49;
    line-height: 1.2;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin: 0;
}

.gh-home p {
    margin: 0;
    line-height: 1.8;
}

.gh-home .gh-kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1766a3;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* INTRODUCTION APRES LE DIAPORAMA */

.gh-home .gh-intro {
    padding: 100px 0 85px;
    text-align: center;
    background: linear-gradient(
        160deg,
        #f0f7fc 0%,
        #ffffff 70%
    );
}

.gh-home .gh-intro .gh-shell {
    max-width: 920px;
}

.gh-home .gh-intro h1 {
    font-size: clamp(36px, 5vw, 65px);
    margin-bottom: 25px;
}

.gh-home .gh-intro p {
    font-size: clamp(17px, 2vw, 21px);
    color: #536477;
    max-width: 750px;
    margin: 0 auto;
}

/* BOUTONS */

.gh-home .gh-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 35px;
}

.gh-home .gh-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 13px 25px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    transition: background .2s, transform .2s;
}

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

.gh-home .gh-btn-primary {
    background: #1766a3;
    color: #ffffff !important;
    border: 2px solid #1766a3;
}

.gh-home .gh-btn-primary:hover {
    background: #124e7c;
}

.gh-home .gh-btn-outline {
    background: transparent;
    color: #1766a3 !important;
    border: 2px solid #1766a3;
}

.gh-home .gh-btn-outline:hover {
    background: #e8f2f9;
}

/* TROIS ACCES RAPIDES */

.gh-home .gh-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-top: 30px;
    padding-bottom: 90px;
}

.gh-home .gh-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    min-height: 205px;
    background: #ffffff;
    border: 1px solid #e4eaf0;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(23,43,73,.07);
    text-align: center;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s;
}

.gh-home .gh-quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(23,43,73,.13);
}

.gh-home .gh-quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
    background: #e8f2f9;
    color: #1766a3;
    border-radius: 50%;
    font-size: 27px;
}

.gh-home .gh-quick-card strong {
    color: #172b49;
    font-size: 19px;
    margin-bottom: 5px;
}

.gh-home .gh-quick-card > span:last-child {
    color: #64748b;
    font-size: 14px;
}

/* TITRES DES SECTIONS */

.gh-home .gh-section-heading {
    text-align: center;
    max-width: 790px;
    margin: 0 auto 45px;
}

.gh-home .gh-section-heading h2 {
    font-size: clamp(30px, 3.5vw, 44px);
    margin-bottom: 18px;
}

.gh-home .gh-section-heading p {
    color: #64748b;
    font-size: 17px;
}

/* FORMATIONS */

.gh-home .gh-training {
    padding-top: 30px;
    padding-bottom: 110px;
}

.gh-home .gh-training-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.gh-home .gh-training-card {
    position: relative;
    overflow: hidden;
    background: #f5f8fc;
    border: 1px solid #e2eaf2;
    border-radius: 22px;
    padding: 42px;
}

.gh-home .gh-step {
    display: inline-block;
    color: #1766a3;
    background: #dcebf5;
    border-radius: 25px;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
}

.gh-home .gh-training-card h3 {
    font-size: 27px;
    margin-bottom: 15px;
}

.gh-home .gh-training-card p {
    color: #586b80;
    margin-bottom: 25px;
}

.gh-home .gh-training-card a {
    color: #1766a3;
    font-weight: 700;
    text-decoration: none;
}

/* PHOTOGRAPHIES DES EQUIPEMENTS */

.gh-home .gh-equipment {
    background: #f2f6fa;
    padding: 95px 0;
}

.gh-home .gh-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.gh-home .gh-photo-grid figure {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 20px;
    background: #dce5ed;
}

.gh-home .gh-photo-grid figure::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(
        transparent,
        rgba(10,25,45,.8)
    );
    pointer-events: none;
}

.gh-home .gh-photo-grid img {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: cover;
    transition: transform .3s;
}

.gh-home .gh-photo-grid figure:hover img {
    transform: scale(1.035);
}

.gh-home .gh-photo-grid figcaption {
    position: absolute;
    z-index: 1;
    left: 25px;
    right: 25px;
    bottom: 23px;
    color: white;
    font-size: 22px;
    font-weight: 700;
}

.gh-home .gh-center {
    text-align: center;
    margin-top: 35px;
}

/* BANDEAU BLEU NUIT */

.gh-home .gh-benefits {
    padding: 95px 0;
    background: #172b49;
    color: #ffffff;
}

.gh-home .gh-benefits h2 {
    color: #ffffff;
}

.gh-home .gh-benefits .gh-kicker {
    color: #a7cfe8;
}

.gh-home .gh-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.gh-home .gh-benefits-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px;
}

.gh-home .gh-benefits-grid i {
    color: #a7cfe8;
    font-size: 43px;
}

.gh-home .gh-benefits-grid strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.5;
}

/* APPEL FINAL A L'INSCRIPTION */

.gh-home .gh-final {
    padding: 110px 0;
    background: linear-gradient(
        135deg,
        #eaf3fa,
        #ffffff
    );
    text-align: center;
}

.gh-home .gh-final h2 {
    font-size: clamp(32px, 4vw, 52px);
    margin-bottom: 20px;
}

.gh-home .gh-final p {
    color: #586b80;
    font-size: 19px;
}

/* ACCESSIBILITE */

.gh-home a:focus-visible {
    outline: 3px solid #1766a3;
    outline-offset: 4px;
}

/* TABLETTES ET TELEPHONES */

@media (max-width: 800px) {

    .gh-home .gh-intro {
        padding: 70px 0;
    }

    .gh-home .gh-quick {
        grid-template-columns: 1fr;
        padding-bottom: 65px;
    }

    .gh-home .gh-quick-card {
        min-height: 130px;
        padding: 22px;
    }

    .gh-home .gh-training-grid,
    .gh-home .gh-photo-grid {
        grid-template-columns: 1fr;
    }

    .gh-home .gh-training-card {
        padding: 32px;
    }

    .gh-home .gh-benefits-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gh-home .gh-equipment,
    .gh-home .gh-benefits {
        padding: 70px 0;
    }

    .gh-home .gh-final {
        padding: 75px 0;
    }
}

@media (max-width: 520px) {

    .gh-home .gh-shell {
        padding-left: 20px;
        padding-right: 20px;
    }

    .gh-home .gh-intro h1 {
        font-size: 36px;
    }

    .gh-home .gh-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gh-home .gh-btn {
        width: 100%;
    }

    .gh-home .gh-training-card h3 {
        font-size: 23px;
    }

    .gh-home .gh-photo-grid img {
        height: 245px;
    }

    .gh-home .gh-photo-grid figcaption {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gh-home .gh-btn,
    .gh-home .gh-quick-card,
    .gh-home .gh-photo-grid img {
        transition: none;
    }
}
