/* =========================================================
   GMK — PAGE DEMANDER UN PROFORMA
   ressources/css/pages/proforma.css

   Identité GMK :
   Vert de maïs + Jaune maïs

   Responsive :
   Desktop / Tablette / Mobile
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --gmk-green: #176B2F;
    --gmk-green-dark: #0F5425;
    --gmk-green-light: #EAF5ED;

    --gmk-yellow: #F4C842;
    --gmk-yellow-light: #FFF7D6;
    --gmk-yellow-dark: #9A7500;

    --proforma-bg: #F6F9F7;

    --proforma-text: #263A2E;
    --proforma-muted: #718078;

    --proforma-border: #DDE8E0;

    --proforma-danger: #B64040;
    --proforma-danger-bg: #FFF1F1;

    --proforma-width: 1050px;

}


/* =========================================================
   RESET
========================================================= */

.proforma-banner,
.proforma-banner *,
.proforma-section,
.proforma-section *,
.proforma-card,
.proforma-card *,
.proforma-card *::before,
.proforma-card *::after {

    box-sizing: border-box;

}


/* =========================================================
   PAGE
========================================================= */

.proforma-section {

    width: 100%;

    min-width: 0;

    padding:
        55px
        0
        70px;

    background: var(--proforma-bg);

    color: var(--proforma-text);

    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

}


/* =========================================================
   BANNER
========================================================= */

.proforma-banner {

    position: relative;

    width: 100%;

    min-height: 300px;

    display: flex;

    align-items: center;

    padding:
        70px
        0;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--gmk-green-dark),
            var(--gmk-green)
        );

    color: #FFFFFF;

}


/* décoration jaune */

.proforma-banner::before {

    content: "";

    position: absolute;

    width: 260px;

    height: 260px;

    top: -120px;

    right: 7%;

    border-radius: 50%;

    background:
        rgba(244, 200, 66, .14);

}


.proforma-banner::after {

    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    bottom: -100px;

    left: 8%;

    border-radius: 50%;

    background:
        rgba(244, 200, 66, .10);

}


.proforma-banner .container {

    position: relative;

    z-index: 2;

}


/* =========================================================
   LABEL
========================================================= */

.proforma-banner .section-label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 14px;

    padding:
        7px
        13px;

    border:
        1px solid
        rgba(244, 200, 66, .45);

    border-radius: 30px;

    background:
        rgba(244, 200, 66, .13);

    color: var(--gmk-yellow-light);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1.5px;

}


/* petit point jaune */

.proforma-banner .section-label::before {

    content: "";

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: var(--gmk-yellow);

}


/* =========================================================
   TITRE BANNER
========================================================= */

.proforma-banner h1 {

    max-width: 800px;

    margin: 0;

    color: #FFFFFF;

    font-size: clamp(
        34px,
        5vw,
        52px
    );

    line-height: 1.12;

    font-weight: 900;

    letter-spacing: -.8px;

}


.proforma-banner p {

    max-width: 680px;

    margin:
        18px
        0
        0;

    color:
        rgba(255,255,255,.84);

    font-size: 16px;

    line-height: 1.7;

}


/* =========================================================
   CONTAINER
========================================================= */

.proforma-section .container {

    width: 100%;

    min-width: 0;

}


/* =========================================================
   ALERT ERREUR
========================================================= */

.proforma-section .alert {

    margin-bottom: 22px;

    padding:
        16px
        18px;

    border:
        1px solid
        #F0CCCC;

    border-radius: 13px;

    background: var(--proforma-danger-bg);

    color: var(--proforma-danger);

    font-size: 13px;

    line-height: 1.6;

}


.proforma-section .alert .fw-bold {

    color: var(--proforma-danger);

}


.proforma-section .alert ul {

    padding-left: 20px;

}


.proforma-section .alert li {

    margin-bottom: 3px;

}


/* =========================================================
   CARTE PRINCIPALE
========================================================= */

.proforma-card {

    width: 100%;

    max-width: var(--proforma-width);

    min-width: 0;

    margin: 0 auto;

    overflow: hidden;

    border:
        1px solid
        var(--proforma-border);

    border-radius: 20px;

    background: #FFFFFF;

    box-shadow:
        0 15px 45px
        rgba(20, 75, 40, .08);

}


/* =========================================================
   HEADER CARTE
========================================================= */

.proforma-card-header {

    position: relative;

    display: flex;

    align-items: center;

    gap: 17px;

    min-width: 0;

    padding:
        25px
        28px;

    border-bottom:
        1px solid
        #EAF0EC;

    background:
        linear-gradient(
            135deg,
            #FFFFFF,
            #F8FBF9
        );

}


/* barre jaune */

.proforma-card-header::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 4px;

    background: var(--gmk-yellow);

}


/* =========================================================
   ICÔNE
========================================================= */

.proforma-icon {

    width: 56px;

    height: 56px;

    min-width: 56px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background:
        var(--gmk-green);

    color:
        var(--gmk-yellow);

    font-size: 21px;

    box-shadow:
        0 7px 18px
        rgba(23,107,47,.15);

}


/* =========================================================
   TEXTE HEADER
========================================================= */

.proforma-card-header > div:last-child {

    min-width: 0;

}


.proforma-card-header span {

    display: block;

    margin-bottom: 5px;

    color: var(--gmk-yellow-dark);

    font-size: 9px;

    line-height: 1.3;

    font-weight: 900;

    letter-spacing: 1.4px;

}


.proforma-card-header h2 {

    margin: 0;

    color: var(--proforma-text);

    font-size: 22px;

    line-height: 1.25;

    font-weight: 900;

}


.proforma-card-header p {

    max-width: 700px;

    margin:
        7px
        0
        0;

    color: var(--proforma-muted);

    font-size: 12px;

    line-height: 1.6;

}


/* =========================================================
   SECTIONS FORMULAIRE
========================================================= */

.form-section {

    padding:
        28px;

    border-bottom:
        1px solid
        #EDF2EE;

}


.form-section:last-of-type {

    border-bottom: 0;

}


/* =========================================================
   TITRE SECTION
========================================================= */

.form-section h3 {

    display: flex;

    align-items: center;

    gap: 10px;

    margin:
        0
        0
        22px;

    color: var(--gmk-green-dark);

    font-size: 15px;

    line-height: 1.4;

    font-weight: 900;

}


.form-section h3 i {

    width: 32px;

    height: 32px;

    min-width: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background: var(--gmk-green-light);

    color: var(--gmk-green);

    font-size: 13px;

}


/* =========================================================
   LABELS
========================================================= */

.proforma-card .form-label {

    display: block;

    margin-bottom: 8px;

    color: var(--proforma-text);

    font-size: 12px;

    line-height: 1.4;

    font-weight: 800;

}


.proforma-card .form-label span {

    color: var(--gmk-green);

    font-weight: 900;

}


/* =========================================================
   INPUTS / SELECT / TEXTAREA
========================================================= */

.proforma-card .form-control,
.proforma-card .form-select {

    width: 100%;

    min-width: 0;

    min-height: 47px;

    padding:
        11px
        14px;

    border:
        1px solid
        var(--proforma-border);

    border-radius: 10px;

    background: #FFFFFF;

    color: var(--proforma-text);

    font-family: inherit;

    font-size: 12px;

    box-shadow: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


.proforma-card textarea.form-control {

    min-height: 125px;

    line-height: 1.6;

    resize: vertical;

}


.proforma-card .form-control::placeholder {

    color: #A2AEA7;

}


/* =========================================================
   FOCUS
========================================================= */

.proforma-card .form-control:focus,
.proforma-card .form-select:focus {

    border-color:
        var(--gmk-green);

    background: #FCFFFD;

    box-shadow:
        0 0 0 3px
        rgba(23,107,47,.10);

}


/* =========================================================
   SELECT
========================================================= */

.proforma-card .form-select {

    cursor: pointer;

}


/* =========================================================
   INFORMATION
========================================================= */

.proforma-info {

    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin:
        25px
        28px
        0;

    padding:
        17px
        18px;

    border:
        1px solid
        #EBD98F;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #FFF9DF,
            #FFFDF3
        );

}


/* =========================================================
   ICÔNE INFO
========================================================= */

.proforma-info-icon {

    width: 38px;

    height: 38px;

    min-width: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background:
        var(--gmk-yellow);

    color:
        var(--gmk-green-dark);

    font-size: 14px;

}


/* =========================================================
   TEXTE INFO
========================================================= */

.proforma-info > div:last-child {

    min-width: 0;

}


.proforma-info strong {

    display: block;

    margin-bottom: 6px;

    color: var(--gmk-green-dark);

    font-size: 12px;

    font-weight: 900;

}


.proforma-info p {

    margin:
        0
        0
        7px;

    color: #6E6A51;

    font-size: 11px;

    line-height: 1.65;

}


/* =========================================================
   ACTIONS
========================================================= */

.proforma-actions {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding:
        24px
        28px
        28px;

}


/* =========================================================
   BOUTONS
========================================================= */

.proforma-actions .btn {

    min-height: 47px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding:
        0
        21px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 800;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        border-color .2s ease;

}


/* =========================================================
   RETOUR
========================================================= */

.proforma-actions .btn-outline-secondary {

    border:
        1px solid
        #D5DFD9;

    background: #FFFFFF;

    color: #52635A;

}


.proforma-actions .btn-outline-secondary:hover {

    border-color:
        #B9CCC0;

    background:
        #F5F8F6;

    color:
        var(--gmk-green-dark);

}


/* =========================================================
   BOUTON GMK
========================================================= */

.proforma-actions .btn-gmk {

    border:
        1px solid
        var(--gmk-green);

    background:
        linear-gradient(
            135deg,
            var(--gmk-green),
            #21823F
        );

    color: #FFFFFF;

    box-shadow:
        0 6px 16px
        rgba(23,107,47,.16);

}


.proforma-actions .btn-gmk i {

    color: var(--gmk-yellow);

}


.proforma-actions .btn-gmk:hover {

    background:
        linear-gradient(
            135deg,
            var(--gmk-green-dark),
            var(--gmk-green)
        );

    color: #FFFFFF;

    transform: translateY(-2px);

    box-shadow:
        0 9px 20px
        rgba(23,107,47,.22);

}


/* =========================================================
   RESPONSIVE — TABLETTE
========================================================= */

@media (max-width: 991px) {

    .proforma-banner {

        min-height: 270px;

        padding:
            60px
            0;

    }


    .proforma-section {

        padding:
            40px
            0
            55px;

    }


    .form-section {

        padding:
            24px;

    }


    .proforma-info {

        margin-left: 24px;

        margin-right: 24px;

    }


    .proforma-actions {

        padding:
            22px
            24px
            24px;

    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 767px) {

    .proforma-banner {

        min-height: 250px;

        padding:
            52px
            0;

    }


    .proforma-banner h1 {

        font-size: 34px;

    }


    .proforma-banner p {

        font-size: 14px;

    }


    .proforma-section {

        padding:
            28px
            0
            40px;

    }


    .proforma-card {

        border-radius: 15px;

    }


    .proforma-card-header {

        align-items: flex-start;

        padding:
            21px
            18px;

    }


    .proforma-icon {

        width: 48px;

        height: 48px;

        min-width: 48px;

        border-radius: 12px;

        font-size: 18px;

    }


    .proforma-card-header h2 {

        font-size: 19px;

    }


    .proforma-card-header p {

        font-size: 11px;

    }


    .form-section {

        padding:
            21px
            18px;

    }


    .form-section h3 {

        font-size: 14px;

        margin-bottom: 18px;

    }


    .proforma-info {

        margin:
            20px
            18px
            0;

        padding:
            15px;

    }


    .proforma-actions {

        flex-direction: column-reverse;

        align-items: stretch;

        padding:
            20px
            18px
            22px;

    }


    .proforma-actions .btn {

        width: 100%;

    }

}


/* =========================================================
   PETIT MOBILE
========================================================= */

@media (max-width: 480px) {

    .proforma-banner {

        min-height: 235px;

        padding:
            45px
            0;

    }


    .proforma-banner h1 {

        font-size: 29px;

        letter-spacing: -.4px;

    }


    .proforma-banner p {

        font-size: 13px;

        line-height: 1.6;

    }


    .proforma-banner .section-label {

        font-size: 9px;

    }


    .proforma-section {

        padding:
            20px
            0
            30px;

    }


    .proforma-card-header {

        gap: 12px;

    }


    .proforma-icon {

        width: 44px;

        height: 44px;

        min-width: 44px;

    }


    .proforma-card-header h2 {

        font-size: 17px;

    }


    .proforma-card-header p {

        font-size: 10px;

    }


    .form-section {

        padding:
            20px
            15px;

    }


    .form-section h3 {

        font-size: 13px;

    }


    .proforma-card .form-control,
    .proforma-card .form-select {

        min-height: 45px;

        font-size: 11px;

    }


    .proforma-card textarea.form-control {

        min-height: 110px;

    }


    .proforma-info {

        margin:
            18px
            15px
            0;

        gap: 10px;

        padding:
            13px;

    }


    .proforma-info-icon {

        width: 34px;

        height: 34px;

        min-width: 34px;

    }


    .proforma-info strong {

        font-size: 11px;

    }


    .proforma-info p {

        font-size: 10px;

    }


    .proforma-actions {

        padding:
            18px
            15px
            20px;

    }

}


/* =========================================================
   TRÈS PETIT ÉCRAN
========================================================= */

@media (max-width: 360px) {

    .proforma-banner h1 {

        font-size: 25px;

    }


    .proforma-card-header {

        padding:
            18px
            13px;

    }


    .form-section {

        padding:
            18px
            13px;

    }


    .proforma-info {

        margin-left: 13px;

        margin-right: 13px;

    }


    .proforma-actions {

        padding-left: 13px;

        padding-right: 13px;

    }

}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

.proforma-card a:focus-visible,
.proforma-card button:focus-visible,
.proforma-card input:focus-visible,
.proforma-card select:focus-visible,
.proforma-card textarea:focus-visible {

    outline:
        3px solid
        rgba(244,200,66,.55);

    outline-offset: 2px;

}


/* =========================================================
   RÉDUCTION DES ANIMATIONS
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .proforma-card *,
    .proforma-card *::before,
    .proforma-card *::after {

        transition: none !important;

    }

}