/* =========================================================
   GABS SÉCURITÉ
   FORMATIONS.CSS
   CSS AUTONOME
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --bleu-fonce: #071827;
    --bleu: #0c2438;
    --bleu-clair: #16476a;

    --or: #c9a227;
    --or-clair: #e2c45d;

    --blanc: #ffffff;

    --gris-fond: #f5f7fa;
    --gris: #667085;
    --texte: #1d2939;

    --bordure: #e4e7ec;

    --ombre:
        0 15px 40px rgba(7, 24, 39, 0.10);

    --transition:
        all 0.3s ease;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--gris-fond);

    color: var(--texte);

    line-height: 1.6;
}


a {
    text-decoration: none;

    color: inherit;
}


button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.formations-page header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 80px;

    z-index: 1000;

    background:
        rgba(7, 24, 39, 0.97);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.formations-page nav {

    width: min(1400px, 92%);

    height: 80px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.formations-page .logo {

    position: relative;

    display: flex;

    align-items: center;

    flex-shrink: 0;

    color: var(--blanc);

    font-size: 23px;

    font-weight: 800;

    letter-spacing: 0.5px;

    white-space: nowrap;
}


/* bouclier devant le logo */

.formations-page .logo::before {

    content: "\f3ed";

    font-family:
        "Font Awesome 6 Free";

    font-weight: 900;

    color: var(--or);

    font-size: 20px;

    margin-right: 10px;
}


/* =========================================================
   MENU
   ========================================================= */

.formations-page nav ul {

    list-style: none;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 30px;

    margin-left: auto;

    margin-right: 10px;
}


.formations-page nav ul li {
    list-style: none;
}


.formations-page nav ul li a {

    position: relative;

    color: #dce5ec;

    font-size: 14px;

    font-weight: 600;

    padding: 10px 0;

    transition: var(--transition);
}


.formations-page nav ul li a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 2px;

    width: 0;

    height: 2px;

    background: var(--or);

    transition: width 0.3s ease;
}


.formations-page nav ul li a:hover {

    color: var(--or-clair);
}


.formations-page nav ul li a:hover::after {

    width: 100%;
}


/* =========================================================
   BOUTON
   ========================================================= */

.formations-page .btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 12px 20px;

    border-radius: 6px;

    background: var(--or);

    color: var(--bleu-fonce);

    font-size: 13px;

    font-weight: 700;

    border: 1px solid var(--or);

    cursor: pointer;

    transition: var(--transition);

    white-space: nowrap;
}


.formations-page .btn:hover {

    background: var(--or-clair);

    border-color: var(--or-clair);

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(201, 162, 39, 0.25);
}


/* =========================================================
   HERO FORMATIONS
   ========================================================= */

.formations-hero {

    min-height: 560px;

    padding:
        150px 6% 100px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #071827 0%,
            #0c2438 55%,
            #123b59 100%
        );
}


/* cercle décoratif */

.formations-hero::before {

    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    border:
        1px solid rgba(201, 162, 39, 0.15);

    top: -350px;

    right: -150px;
}


.formations-hero::after {

    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    border:
        1px solid rgba(255, 255, 255, 0.05);

    bottom: -300px;

    left: -100px;
}


/* =========================================================
   CONTENU HERO
   ========================================================= */

.formations-hero-content {

    max-width: 850px;

    position: relative;

    z-index: 2;
}


/* icône */

.formations-hero-content > i {

    width: 90px;

    height: 90px;

    margin:
        0 auto 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(201, 162, 39, 0.14);

    border:
        1px solid rgba(201, 162, 39, 0.35);

    color: var(--or-clair);

    font-size: 38px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.20);
}


/* titre */

.formations-hero-content h1 {

    color: var(--blanc);

    font-size:
        clamp(44px, 6vw, 68px);

    font-weight: 800;

    line-height: 1.1;

    margin-bottom: 20px;
}


/* texte */

.formations-hero-content p {

    max-width: 700px;

    margin: auto;

    color: #dce5ec;

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================================
   CONTENU PRINCIPAL
   ========================================================= */

.formations-container {

    width: min(1250px, 92%);

    margin: auto;

    padding:
        90px 0;
}


/* =========================================================
   INTRO
   ========================================================= */

.formations-intro {

    max-width: 850px;

    margin:
        0 auto 60px;

    text-align: center;
}


.formations-intro h2 {

    color: var(--bleu-fonce);

    font-size: 36px;

    line-height: 1.25;

    font-weight: 800;

    margin-bottom: 20px;
}


.formations-intro p {

    color: var(--gris);

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   FORMATION ACTIVE
   ========================================================= */

.formation-detail {

    position: relative;

    display: grid;

    grid-template-columns:
        230px 1fr;

    align-items: center;

    gap: 55px;

    padding: 55px;

    margin-bottom: 90px;

    background: var(--blanc);

    border:
        1px solid var(--bordure);

    border-radius: 16px;

    box-shadow: var(--ombre);

    overflow: hidden;
}


/* barre dorée */

.formation-detail::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--or),
            var(--or-clair)
        );
}


/* =========================================================
   GRANDE ICÔNE
   ========================================================= */

.formation-detail-icon {

    width: 190px;

    height: 190px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--bleu),
            var(--bleu-clair)
        );

    box-shadow:
        0 15px 35px rgba(7, 24, 39, 0.20);
}


.formation-detail-icon i {

    color: var(--or-clair);

    font-size: 75px;
}


/* =========================================================
   CONTENU DETAIL
   ========================================================= */

.formation-label {

    display: inline-block;

    color: var(--or);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 10px;
}


.formation-detail-content h2 {

    color: var(--bleu-fonce);

    font-size: 36px;

    line-height: 1.2;

    margin-bottom: 15px;
}


.formation-detail-content > p {

    color: var(--gris);

    font-size: 16px;

    line-height: 1.8;

    max-width: 750px;

    margin-bottom: 30px;
}


/* =========================================================
   INFORMATIONS FORMATION
   ========================================================= */

.formation-infos {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(200px, 1fr));

    gap: 15px;

    margin-bottom: 30px;
}


.info-item {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 17px;

    background: #f8fafc;

    border:
        1px solid var(--bordure);

    border-radius: 10px;
}


.info-item > i {

    width: 45px;

    height: 45px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(201, 162, 39, 0.12);

    color: var(--or);

    border-radius: 8px;

    font-size: 18px;
}


.info-item strong {

    display: block;

    color: var(--bleu-fonce);

    font-size: 13px;

    margin-bottom: 3px;
}


.info-item span {

    display: block;

    color: var(--gris);

    font-size: 13px;
}


/* =========================================================
   BOUTON CONTACT
   ========================================================= */

.formation-contact {

    margin-top: 5px;
}


/* =========================================================
   TITRE DES DOMAINES
   ========================================================= */

.formations-liste {

    padding: 0;
}


.formations-liste > h2 {

    color: var(--bleu-fonce);

    text-align: center;

    font-size: 36px;

    font-weight: 800;

    margin-bottom: 40px;
}


/* =========================================================
   GRILLE DES FORMATIONS
   ========================================================= */

.formations-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;
}


/* =========================================================
   CARTE
   ========================================================= */

.formation-card {

    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 340px;

    padding: 30px 25px;

    background: var(--blanc);

    border:
        1px solid var(--bordure);

    border-radius: 14px;

    color: var(--texte);

    box-shadow:
        0 5px 20px rgba(7, 24, 39, 0.05);

    overflow: hidden;

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


/* barre dorée */

.formation-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    height: 3px;

    background: var(--or);

    transform: scaleX(0);

    transform-origin: left;

    transition:
        transform 0.3s ease;
}


.formation-card:hover {

    transform: translateY(-8px);

    border-color:
        rgba(201, 162, 39, 0.40);

    box-shadow:
        0 18px 40px rgba(7, 24, 39, 0.12);
}


.formation-card:hover::before {

    transform: scaleX(1);
}


/* =========================================================
   ICÔNE CARTE
   ========================================================= */

.formation-card-icon {

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background:
        rgba(201, 162, 39, 0.12);

    color: var(--or);

    font-size: 27px;

    margin-bottom: 22px;

    transition: var(--transition);
}


.formation-card:hover
.formation-card-icon {

    background: var(--bleu);

    color: var(--or-clair);

    transform: scale(1.05);
}


/* =========================================================
   TITRE CARTE
   ========================================================= */

.formation-card h3 {

    color: var(--bleu-fonce);

    font-size: 20px;

    line-height: 1.3;

    margin-bottom: 14px;
}


/* =========================================================
   TEXTE CARTE
   ========================================================= */

.formation-card p {

    color: var(--gris);

    font-size: 14px;

    line-height: 1.7;

    flex: 1;

    margin-bottom: 20px;
}


/* =========================================================
   LIEN DÉCOUVRIR
   ========================================================= */

.formation-card > span {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--bleu);

    font-size: 14px;

    font-weight: 700;
}


.formation-card > span i {

    color: var(--or);

    transition:
        transform 0.3s ease;
}


.formation-card:hover
.formation-card > span i {

    transform:
        translateX(5px);
}


/* =========================================================
   FOOTER
   ========================================================= */

.formations-page footer {

    padding:
        55px 20px 30px;

    text-align: center;

    background:
        var(--bleu-fonce);

    color: #dce5ec;

    border-top:
        3px solid var(--or);
}


.formations-page footer h3 {

    color: var(--blanc);

    font-size: 22px;

    margin-bottom: 10px;
}


.formations-page footer p {

    color: #aebdca;

    font-size: 14px;

    margin-bottom: 8px;
}


.formations-page footer p:last-child {

    margin-top: 20px;

    color: #718394;

    font-size: 13px;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 1100px) {

    .formations-page nav ul {

        gap: 20px;
    }


    .formations-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .formation-detail {

        grid-template-columns:
            180px 1fr;

        gap: 35px;

        padding: 40px;
    }


    .formation-detail-icon {

        width: 150px;

        height: 150px;
    }


    .formation-detail-icon i {

        font-size: 60px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 750px) {

    /* HEADER */

    .formations-page header {

        height: auto;
    }


    .formations-page nav {

        min-height: 80px;

        height: auto;

        padding:
            15px 0;

        flex-wrap: wrap;

        justify-content: center;
    }


    .formations-page .logo {

        width: 100%;

        justify-content: center;

        font-size: 21px;
    }


    .formations-page nav ul {

        width: 100%;

        margin: 0;

        gap: 15px;

        flex-wrap: wrap;

        justify-content: center;
    }


    .formations-page nav ul li a {

        font-size: 12px;
    }


    .formations-page nav > .btn {

        display: none;
    }


    /* HERO */

    .formations-hero {

        min-height: 500px;

        padding:
            180px 5% 80px;
    }


    .formations-hero-content h1 {

        font-size: 43px;
    }


    .formations-hero-content p {

        font-size: 16px;
    }


    /* CONTENEUR */

    .formations-container {

        width: 90%;

        padding:
            65px 0;
    }


    /* INTRO */

    .formations-intro h2 {

        font-size: 29px;
    }


    /* DETAIL */

    .formation-detail {

        grid-template-columns: 1fr;

        gap: 30px;

        padding:
            35px 25px;

        margin-bottom: 65px;

        text-align: center;
    }


    .formation-detail-icon {

        width: 135px;

        height: 135px;
    }


    .formation-detail-icon i {

        font-size: 55px;
    }


    .formation-detail-content h2 {

        font-size: 30px;
    }


    .formation-detail-content > p {

        font-size: 15px;
    }


    /* INFOS */

    .formation-infos {

        grid-template-columns: 1fr;

        text-align: left;
    }


    /* FORMATIONS */

    .formations-grid {

        grid-template-columns: 1fr;
    }


    .formations-liste > h2 {

        font-size: 30px;
    }


    .formation-card {

        min-height: auto;
    }
}


/* =========================================================
   PETITS TÉLÉPHONES
   ========================================================= */

@media (max-width: 400px) {

    .formations-page nav ul {

        gap: 9px;
    }


    .formations-page nav ul li a {

        font-size: 11px;
    }


    .formations-hero {

        padding-top: 180px;
    }


    .formations-hero-content h1 {

        font-size: 35px;
    }


    .formations-hero-content > i {

        width: 70px;

        height: 70px;

        font-size: 30px;
    }


    .formation-detail {

        padding:
            30px 20px;
    }


    .formations-page .btn {

        width: 100%;
    }
}