
/* =========================================================
   E5 - PORTFOLIO YOAN DAHACHE
   BTS SIO SLAM - SESSION 2027
   ========================================================= */

/* ==========================================
   01. RÉGLAGES DE LA PAGE
   ========================================== */

.e5-page {
    overflow-x: clip;
}

/* NAVIGATION */

.e5-page .navigation-links > .nav-e5 {
    color: var(--yellow);
    background: #ffd54a12;
}

.e5-page .navigation-links > .nav-e5:hover {
    background: #ffd54a20;
}

.e5-page .site-nav {
    justify-content: center;
}

/* TITRES COMMUNS */

.e5-page .eyebrow {
    color: var(--accent);
}

.e5-page .eyebrow > span {
    color: var(--mint);
}

/* ==========================================
   02. INTRODUCTION E5
   ========================================== */

.e5-hero {
    position: relative;
    overflow: hidden;

    padding-top: 104px;
    padding-bottom: 108px;

    background:
        radial-gradient(
            ellipse at 77% 42%,
            #a8baff10,
            transparent 48%
        ),
        radial-gradient(
            ellipse at 10% 100%,
            #b4e4d108,
            transparent 45%
        );
}

/* GRILLE DÉCORATIVE DU HERO */

.e5-hero::after {
    content: "";
    position: absolute;
    inset: 0;

    opacity: 0.25;
    pointer-events: none;

    background-image:
        linear-gradient(
            #a8baff08 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            #a8baff08 1px,
            transparent 1px
        );

    background-size: 90px 90px;

    mask-image:
        linear-gradient(
            90deg,
            transparent,
            black 60%
        );
}

/* STRUCTURE DU HERO */

.e5-hero-layout {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1.16fr)
        minmax(340px, 0.84fr);

    gap: clamp(28px, 5vw, 84px);
    align-items: center;
}

/* GRAND TITRE */

.e5-hero-copy h1 {
    margin: 0 0 27px;
    max-width: 850px;

    font-size: clamp(3.6rem, 6.1vw, 6.5rem);
    line-height: 1.07;
    letter-spacing: -0.069em;
    font-weight: 800;
}

.e5-hero-copy h1 span {
    color: var(--accent);
}

/* DESCRIPTION */

.e5-lead {
    max-width: 645px;
    margin-bottom: 29px;

    color: #b5c3d7;
    font-size: 0.93rem;
    line-height: 1.95;
}

/* INFORMATIONS SOUS LES BOUTONS */

.e5-hero-caption {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 25px 0 0;

    color: #90a3bf;
    font-size: 0.68rem;
}

.e5-dot {
    display: inline-block;
    flex-shrink: 0;

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: var(--mint);

    box-shadow: 0 0 16px #b4e4d180;
}

/* ==========================================
   03. CARTE DE PRÉSENTATION E5
   ========================================== */

.e5-overview {
    min-width: 0;
    padding: 28px 30px 0;

    border: 1px solid #a8baff36;
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #192439,
            #111b2a 55%,
            #101722
        );

    box-shadow:
        0 32px 85px #00000035,
        inset 0 1px 0 #ffffff0b;

    overflow: hidden;
}

/* EN-TÊTE ET PIED DE CARTE */

.e5-overview-top,
.e5-overview-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    letter-spacing: 0.13em;
    font-size: 0.58rem;
    font-weight: 800;

    color: #a8baff;
}

.e5-overview-top span:last-child {
    color: #8b9ab5;
}

/* LOGO E5 */

.e5-overview-mark {
    position: relative;

    margin: 17px 0 10px;

    color: #e8edfa;

    font-size: clamp(6rem, 11vw, 10.5rem);
    font-weight: 800;
    letter-spacing: -0.14em;
    line-height: 1.1;
}

.e5-overview-mark span {
    color: var(--accent);
}

.e5-overview-mark i {
    font-style: normal;
    color: var(--yellow);
}

/* SOUS-TITRE */

.e5-overview > p {
    margin-bottom: 16px;

    color: #b4c0d3;
    font-size: 0.84rem;
}

/* LISTE DES ACCÈS */

.e5-overview-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.e5-overview-list li {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 0;

    border-top: 1px solid #a8baff20;

    color: #d9e2f1;
    font-size: 0.72rem;
}

.e5-overview-list li > span {
    color: var(--mint);

    font-size: 0.60rem;
    font-weight: 800;
}

.e5-overview-list li > strong {
    margin-left: auto;

    color: #92a4bf;

    font-size: 0.63rem;
    font-weight: 600;
    white-space: nowrap;
}

/* BAS DE LA CARTE */

.e5-overview-bottom {
    margin: 22px -30px 0;
    padding: 18px 30px;

    border-top: 1px solid #a8baff24;

    background: #a8baff08;

    color: #8c9ebb;
    font-size: 0.53rem;
}

.e5-overview-bottom span {
    color: var(--yellow);
    font-size: 1.2rem;
}

/* ==========================================
   04. SECTION RESSOURCES
   ========================================== */

.e5-resources {
    background: #101722;
}

.e5-resources-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.07fr)
        minmax(0, 0.93fr);

    gap: 20px;
    align-items: stretch;
}

/* CARTES COMMUNES */

.e5-resource-card {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 480px;

    padding: 30px 31px;

    overflow: hidden;

    border: 1px solid #a8baff2a;
    border-radius: 20px;

    background:
        linear-gradient(
            155deg,
            #1a273b,
            #121b2a 62%,
            #101722
        );

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

/* EFFET PREMIUM AU SURVOL */

.e5-resource-card:hover {
    border-color: #a8baff80;

    transform: translateY(-4px);

    box-shadow:
        0 20px 60px #00000029;
}

/* ==========================================
   05. CARTE SYNTHÈSE EXCEL
   IMAGE WEBP
   ========================================== */

.e5-resource-card--excel {
    position: relative;
    overflow: hidden;

    background-image:
        linear-gradient(
            180deg,
            rgba(8, 17, 34, 0.05) 0%,
            rgba(8, 17, 34, 0.15) 35%,
            rgba(8, 17, 34, 0.65) 65%,
            rgba(8, 17, 34, 0.94) 100%
        ),
        url("../image/synthese-e5-fond.webp");

    background-size: cover, cover;
    background-position: center, 65% center;
    background-repeat: no-repeat;

    border-color: rgba(168, 186, 255, 0.30);
}

/* ==========================================
   06. CARTE VEILLE TECHNOLOGIQUE
   IMAGE DES DEUX ROBOTS WEBP
   ========================================== */

.e5-resource-card--veille {
    position: relative;
    overflow: hidden;

    background-image:
        linear-gradient(
            180deg,
            rgba(7, 14, 29, 0.05) 0%,
            rgba(7, 14, 29, 0.12) 35%,
            rgba(7, 14, 29, 0.60) 65%,
            rgba(7, 14, 29, 0.92) 100%
        ),
        url("../image/veille-robots.webp");

    background-size: cover, cover;
    background-position: center, 60% center;
    background-repeat: no-repeat;

    border-color: rgba(168, 186, 255, 0.30);
}

/* ==========================================
   07. EN-TÊTE DES DEUX CARTES
   ========================================== */

.e5-resource-head {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.e5-card-index {
    color: #aebddb;

    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.e5-format {
    padding: 6px 10px;

    border: 1px solid #a8baff55;
    border-radius: 6px;

    color: #cbd6ee;

    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

/* ==========================================
   08. CONTENU DES DEUX CARTES
   ========================================== */

.e5-resource-content {
    position: relative;
    z-index: 2;

    margin-top: auto;
    padding-top: 100px;
}

/* PETIT TITRE */

.e5-resource-kicker {
    margin-bottom: 13px;

    color: var(--mint);

    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.e5-resource-card--veille .e5-resource-kicker {
    color: var(--accent);
}

/* GRAND TITRE */

.e5-resource-content h3 {
    max-width: 520px;

    margin: 0 0 17px;

    font-size: clamp(1.8rem, 2.7vw, 2.6rem);
    letter-spacing: -0.052em;
    line-height: 1.16;

    color: #f0f2f7;

    text-shadow:
        0 2px 16px rgba(0, 0, 0, 0.24);
}

.e5-resource-content h3 span {
    color: var(--yellow);
}

/* DESCRIPTION */

.e5-resource-content
> p:not(.e5-resource-kicker):not(.e5-resource-footnote) {
    max-width: 480px;

    color: #e0e8f7;

    font-size: 0.79rem;
    line-height: 1.9;
}

/* BOUTONS */

.e5-resource-content .button {
    position: relative;
    z-index: 3;

    margin-top: 12px;
}

/* BOUTON DE LA VEILLE */

.e5-resource-card--veille .button-secondary {
    background: rgba(8, 18, 36, 0.65);

    border-color: rgba(185, 212, 255, 0.42);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ==========================================
   09. FOOTER
   ========================================== */

.e5-page .site-footer {
    margin: 0;
}

.e5-page .footer-callout {
    margin-bottom: 0;
}

/* ==========================================
   10. RESPONSIVE - ÉCRANS MOYENS
   ========================================== */

@media (max-width: 1080px) {

    .e5-hero-layout {
        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(290px, 0.9fr);

        gap: 32px;
    }

    .e5-hero-copy h1 {
        font-size: clamp(3rem, 5.5vw, 5.1rem);
    }

    .e5-overview {
        padding: 24px 22px 0;
    }

    .e5-overview-bottom {
        margin-inline: -22px;
        padding-inline: 22px;
    }
}

/* ==========================================
   11. RESPONSIVE - TABLETTES
   ========================================== */

@media (max-width: 900px) {

    .e5-hero {
        padding: 80px 0;
    }

    .e5-hero-layout {
        grid-template-columns: 1fr;
    }

    .e5-hero-copy h1 {
        max-width: 780px;
        font-size: clamp(3.6rem, 8vw, 6rem);
    }

    .e5-overview {
        max-width: 700px;
        width: 100%;
    }

    .e5-resources-grid {
        grid-template-columns: 1fr 1fr;
    }

    .e5-resource-card {
        padding: 23px;
        min-height: 470px;
    }

    .e5-page .site-nav {
        justify-content: space-between;
    }

    .e5-page .site-header {
        z-index: 70;
    }
}

/* ==========================================
   12. RESPONSIVE - MOBILES
   ========================================== */

@media (max-width: 680px) {

    .e5-hero {
        padding: 64px 0 68px;
    }

    .e5-hero-copy h1 {
        font-size: clamp(3rem, 11vw, 4.7rem);
    }

    .e5-lead {
        font-size: 0.84rem;
    }

    .e5-resources-grid {
        grid-template-columns: 1fr;
    }

    .e5-resource-card {
        min-height: 420px;
    }

    /* POSITION DES IMAGES */

    .e5-resource-card--excel {
        background-position:
            center,
            72% center;
    }

    .e5-resource-card--veille {
        background-position:
            center,
            65% center;
    }

    .e5-page .footer-main {
        gap: 28px;
    }
}

/* ==========================================
   13. PETITS MOBILES
   ========================================== */

@media (max-width: 430px) {

    .e5-hero-copy h1 {
        font-size: clamp(2.6rem, 11.3vw, 3.7rem);
    }

    .e5-hero .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .e5-hero .button-group .button {
        justify-content: center;
    }

    .e5-overview {
        padding: 20px 19px 0;
    }

    .e5-overview-list li {
        flex-wrap: wrap;
    }

    .e5-overview-list li > strong {
        margin-left: auto;
    }

    .e5-overview-bottom {
        margin-inline: -19px;
        padding-inline: 19px;
    }

    .e5-resource-card {
        padding: 22px;
    }

    .e5-resource-content h3 {
        font-size: 1.8rem;
    }

    .e5-page .container {
        width: calc(100% - 34px);
    }
}

/* ==========================================
   14. ACCESSIBILITÉ
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .e5-resource-card {
        transition: none;
    }

    .e5-resource-card:hover {
        transform: none;
    }
}

/* SUPPRESSION VISUELLE DES DOUBLES CADRES */

.e5-resource-card--excel {
    background-size: cover, 116% 116%;
    background-position: center, center;
}

.e5-resource-card--veille {
    background-image:
        linear-gradient(
            90deg,
            rgba(7, 14, 29, 0.90) 0%,
            rgba(7, 14, 29, 0.76) 40%,
            rgba(7, 14, 29, 0.30) 75%,
            rgba(7, 14, 29, 0.05) 100%
        ),
        linear-gradient(
            0deg,
            rgba(7, 14, 29, 0.88) 0%,
            transparent 70%
        ),
        url("../image/veille-robots.webp");

    background-size:
        cover,
        cover,
        116% 116%;

    background-position:
        center,
        center,
        center;

    background-repeat: no-repeat;
}

/* TEXTE LISIBLE DEVANT LES ROBOTS */

.e5-resource-card--veille .e5-resource-content {
    position: relative;
    z-index: 2;
}

.e5-resource-card--veille
.e5-resource-content > p:not(.e5-resource-kicker) {
    color: #f0f3fa;
}
