/* 
 * DOCUMENTATION JP — CSS RÉORGANISÉ
 * ----------------------------------------------------------
 * Fichier : assets/css/jp-framework.css
 * Rôle : Socle historique du framework JP.
 *
 * Lecture conseillée :
 * 1. fondations et structure du composant ;
 * 2. éléments internes et états ;
 * 3. adaptations responsive et compatibilité.
 *
 * IMPORTANT : l'ordre de cascade est volontairement préservé lorsqu'un déplacement
 * pourrait modifier le rendu. Les doublons retirés sont uniquement ceux dont une
 * déclaration strictement identique existe plus loin dans le même contexte CSS.
  */

/* * FICHIER CSS RÉORGANISÉ
 * Fichier : assets/css/jp-framework.css
 * Rôle : Styles du framework de contenus du lycée.
 *
 * Organisation :
 * 1. Styles de base du module
 * 2. États et interactions
 * 3. Adaptations responsives, dans l’ordre du fichier d’origine
 *
 * Maintenance : l’ordre des règles est conservé afin de respecter la cascade CSS.
 * Les doublons strictement identiques dans un même bloc ont été supprimés. */

/* *
 * jp-framework.css
 * Rôle : Structure générale des pages Formation.
 *
 * Organisation du fichier :
 * 1. Variables et fondations éventuelles
 * 2. Structure principale du composant
 * 3. États, variantes et interactions
 * 4. Adaptations responsives
 *
 * Les doublons strictement identiques ont été supprimés. Les surcharges
 * volontaires et les fallbacks compatibles ont été conservés pour ne pas
 * modifier le rendu ou le comportement existant. */

/* ==========================================================
   JP FRAMEWORK v2.1 — Lycée Jean PROUVÉ
   Composants transversaux : Hero, cartes, stats, CTA, modules.
   ========================================================== */

/* ==========================================================================
   Variables et paramètres globaux
   ========================================================================== */

:root {
        --jp-main: #e95b22;
        --jp-dark: #10233f;
        --jp-text: #26384f;
        --jp-muted: #52627a;
        --jp-soft: #fff3ec;
        --jp-soft-2: #eef6fb;
        --jp-radius-xl: 34px;
        --jp-radius-lg: 24px;
        --jp-radius-md: 16px;
        --jp-shadow-sm: 0 8px 22px rgba(16,35,63,.08);
        --jp-shadow-md: 0 14px 36px rgba(16,35,63,.10);
        --jp-shadow-lg: 0 22px 54px rgba(16,35,63,.18);
}

/* ==========================================================================
   Bandeau principal
   ========================================================================== */

.jp-page, .jp-module, .jp-card, .jp-hero {
        box-sizing: border-box;
}

/*  CIBLE — Bandeau Hero : .jp-page *, .jp-module *, .jp-card *, .jp-hero *  */

.jp-page *, .jp-module *, .jp-card *, .jp-hero * {
        box-sizing: border-box;
}

/* ----------------------------------------------------------
   HERO universel : variantes de fond
   ---------------------------------------------------------- */

.jp-hero-bg-dark, .jp-hero.jp-hero-bg-dark {
        background: linear-gradient(135deg, rgba(8,28,55,.96), rgba(11,99,116,.88)),
        var(--jp-hero-image, none);
        background-size: cover;
        background-position: center;
}

/*  CIBLE — Bandeau Hero : .jp-hero-bg-color, .jp-hero.jp-hero-bg-color  */

.jp-hero-bg-color, .jp-hero.jp-hero-bg-color {
        background: linear-gradient(
            135deg,
            color-mix(in srgb, var(--jp-main,#e95b22) 88%, #10233f),
            color-mix(in srgb, var(--jp-main,#e95b22) 54%, #10233f)
        ),
        var(--jp-hero-image, none);
        background-size: cover;
        background-position: center;
}

/*  CIBLE — Bandeau Hero : .jp-hero-bg-light, .jp-hero.jp-hero-bg-light  */

.jp-hero-bg-light, .jp-hero.jp-hero-bg-light {
        background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,248,251,.93)),
        var(--jp-hero-image, none);
        background-size: cover;
        background-position: center;
        color: var(--jp-dark,#10233f);
}

/*  CIBLE — Bandeau Hero : .jp-hero-bg-none, .jp-hero.jp-hero-bg-none  */

.jp-hero-bg-none, .jp-hero.jp-hero-bg-none {
        background: var(--jp-hero-image, none);
        background-size: cover;
        background-position: center;
}

/* ----------------------------------------------------------
   JP Card universelle
   ---------------------------------------------------------- */

/* ==========================================================================
   Cartes et contenus structurés
   ========================================================================== */

.jp-card {
        --jp-card-color: var(--jp-main,#e95b22);
        position: relative;
        background: #fff;
        border: 1px solid rgba(16,35,63,.10);
        border-radius: var(--jp-radius-md,16px);
        box-shadow: var(--jp-shadow-sm);
        overflow: hidden;
        transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/*  CIBLE — Cartes : .jp-card:hover  */

.jp-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(16,35,63,.13);
        border-color: color-mix(in srgb, var(--jp-card-color) 30%, white);
}

/*  CIBLE — Cartes : .jp-card::before  */

.jp-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: var(--jp-card-color);
}

/*  CIBLE — Cartes : .jp-card--horizontal  */

.jp-card--horizontal {
        min-height: 128px;
        padding: 16px 16px 14px;
}

/*  CIBLE — Cartes : .jp-card__top  */

.jp-card__top {
        display: grid;
        grid-template-columns: 78px 1fr;
        gap: 14px;
        align-items: center;
}

/*  CIBLE — Cartes : .jp-card__visual  */

.jp-card__visual {
        width: 78px;
        height: 78px;
        border-radius: 50%;
        background: color-mix(in srgb, var(--jp-card-color) 12%, white);
        color: var(--jp-card-color);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        font-size: 30px;
        font-weight: 950;
        flex: 0 0 auto;
}

/*  CIBLE — Cartes : .jp-card__visual img  */

.jp-card__visual img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
}

/*  CIBLE — Cartes : .jp-card__title  */

.jp-card__title {
        margin: 0 0 4px;
        color: var(--jp-card-color);
        font-size: 17px;
        line-height: 1.12;
        font-weight: 950;
        text-transform: uppercase;
}

/*  CIBLE — Cartes : .jp-card__subtitle  */

.jp-card__subtitle {
        margin: 0;
        color: var(--jp-dark,#10233f);
        font-size: 12.5px;
        line-height: 1.25;
        font-weight: 500;
}

/*  CIBLE — Cartes : .jp-card__bottom  */

.jp-card__bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 12px;
}

/*  CIBLE — Cartes : .jp-card__meta  */

.jp-card__meta {
        margin: 0;
        color: var(--jp-dark,#10233f);
        font-size: 12.5px;
        line-height: 1.2;
        font-weight: 700;
}

/*  CIBLE — Cartes : .jp-card__meta strong  */

.jp-card__meta strong {
        color: var(--jp-card-color);
        font-size: 23px;
        line-height: 1;
        font-weight: 950;
}

/*  CIBLE — Cartes : .jp-card__link  */

.jp-card__link {
        color: var(--jp-card-color) !important;
        text-decoration: none !important;
        font-size: 12.5px;
        line-height: 1.2;
        font-weight: 950;
        white-space: nowrap;
}

/* ----------------------------------------------------------
   Stats universelles compactes
   ---------------------------------------------------------- */

.jp-stats-strip {
        width: min(1180px, calc(100% - 42px));
        margin: 0 auto 34px;
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 0;
        background: #fff;
        border: 1px solid rgba(16,35,63,.08);
        border-radius: 22px;
        box-shadow: 0 16px 42px rgba(16,35,63,.10);
        overflow: hidden;
}

/*  CIBLE — Chiffres clés : .jp-stats-strip__item  */

.jp-stats-strip__item {
        min-height: 86px;
        padding: 18px 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        text-align: left;
        background: #fff;
}

/*  CIBLE — Chiffres clés : .jp-stats-strip__item + .jp-stats-strip__item  */

.jp-stats-strip__item + .jp-stats-strip__item {
        border-left: 1px solid rgba(16,35,63,.10);
}

/*  CIBLE — Chiffres clés : .jp-stats-strip__item strong  */

.jp-stats-strip__item strong {
        display: block;
        color: var(--jp-main,#e95b22);
        font-size: 34px;
        line-height: 1;
        font-weight: 950;
}

/*  CIBLE — Chiffres clés : .jp-stats-strip__item span  */

.jp-stats-strip__item span {
        display: block;
        margin-top: 4px;
        color: var(--jp-dark,#10233f);
        font-size: 14px;
        line-height: 1.25;
        font-weight: 750;
}

/* ----------------------------------------------------------
   CTA universel
   ---------------------------------------------------------- */

/* ==========================================================================
   Boutons et actions
   ========================================================================== */

.jp-cta-universal {
        width: min(1180px, calc(100% - 42px));
        margin: 46px auto 0;
        padding: 28px 34px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
        border-radius: 24px;
        background: linear-gradient(135deg,#eef8fb,#ffffff);
        color: var(--jp-dark,#10233f);
        box-shadow: 0 12px 30px rgba(16,35,63,.08);
        border: 1px solid rgba(16,35,63,.07);
}

/*  CIBLE — Appel à l’action : .jp-cta-universal h2  */

.jp-cta-universal h2 {
        margin: 0 0 7px;
        color: #0b6374;
        font-size: 26px;
        line-height: 1.15;
        font-weight: 950;
}

/*  CIBLE — Appel à l’action : .jp-cta-universal p  */

.jp-cta-universal p {
        margin: 0;
        max-width: 760px;
        color: var(--jp-text,#26384f);
        font-size: 14px;
        line-height: 1.5;
}

/* ==========================================================================
   Adaptation responsive : (max-width:767px)
   ========================================================================== */

@media (max-width:767px) {
        /*  CIBLE — Chiffres clés : .jp-stats-strip  */
        .jp-stats-strip {
            grid-template-columns: 1fr;
            width: min(100% - 28px, 1180px);
    }
        /*  CIBLE — Chiffres clés : .jp-stats-strip__item + .jp-stats-strip__item  */
        .jp-stats-strip__item + .jp-stats-strip__item {
            border-left: 0;
            border-top: 1px solid rgba(16,35,63,.10);
    }
        /*  CIBLE — Cartes : .jp-card__top  */
        .jp-card__top {
            grid-template-columns: 72px 1fr;
    }
        /*  CIBLE — Cartes : .jp-card__visual  */
        .jp-card__visual {
            width: 72px;
            height: 72px;
    }
        /*  CIBLE — Appel à l’action : .jp-cta-universal  */
        .jp-cta-universal {
            width: min(100% - 28px, 1180px);
            flex-direction: column;
            align-items: flex-start;
            padding: 24px;
    }
}
