/******************************************************************************
 *
 *  GRENIKA PLATFORM
 *  candidature.css
 *  Build Factory — Canonical Edition
 *
 *  Rôle :
 *  Feuille de style officielle de l'écran de candidature du
 *  Programme des 200 Pionniers Fondateurs GRENIKA.
 *
 *  Cette feuille est organisée par composants métiers afin de
 *  garantir une maintenance durable et une parfaite cohérence
 *  entre le HTML, le JavaScript et le CSS.
 *
 ******************************************************************************/

/******************************************************************************
 01. DESIGN TOKENS
******************************************************************************/

:root{

    /* ======================================================================
       COULEURS
    ====================================================================== */

    --candidate-dark:#17352B;

    --candidate-light:#EEF5E9;

    --candidate-text:#5F6F64;

    --candidate-border:
        rgba(28,48,39,.12);

    --candidate-border-soft:
        rgba(28,48,39,.08);

    --candidate-green-soft:
        rgba(40,167,69,.08);

    --candidate-green-soft-strong:
        rgba(40,167,69,.10);

    /* ======================================================================
       RAYONS
    ====================================================================== */

    --candidate-radius-xl:32px;

    --candidate-radius-lg:28px;

    --candidate-radius-md:22px;

    --candidate-radius-sm:18px;

    --candidate-radius-xs:16px;

    --candidate-radius-pill:999px;

    /* ======================================================================
       OMBRES
    ====================================================================== */

    --candidate-shadow-soft:
        0 15px 40px rgba(0,0,0,.05);

    --candidate-shadow-medium:
        0 18px 45px rgba(0,0,0,.06);

    --candidate-shadow-strong:
        0 20px 60px rgba(0,0,0,.08);

    /* ======================================================================
       TRANSITIONS
    ====================================================================== */

    --candidate-transition-fast:
        .25s ease;

    --candidate-transition-normal:
        .35s ease;

    --candidate-transition-slow:
        .45s ease;

}

/******************************************************************************
 02. HERO CANDIDATURE
******************************************************************************/

/* ==========================================================================
   HERO — LISTE DES AVANTAGES
========================================================================== */

.hero-checks{

    display:flex;
    flex-direction:column;
    gap:16px;

    margin:35px 0;
    padding:0;

    list-style:none;

}

.hero-checks li{

    display:flex;
    align-items:center;
    gap:14px;

    color:var(--vert-grenika);

    font-size:1.05rem;
    font-weight:600;

}

.hero-checks i{

    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;

    width:38px;
    height:38px;

    background:rgba(193,223,84,.15);

    border-radius:50%;

    color:var(--accent);

    font-size:.95rem;

}

/******************************************************************************
 03. PARCOURS GRENIKA
******************************************************************************/

/* ==========================================================================
   PARCOURS — CONTENEUR
========================================================================== */

.application-journey{
    padding:80px 20px;
    text-align:center;
}

/* ==========================================================================
   PARCOURS — LIGNE DE PROGRESSION
========================================================================== */

.journey-track{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:0;
    max-width:1100px;

    margin:auto;

}

/* ==========================================================================
   PARCOURS — ÉTAPES
========================================================================== */

.journey-step{

    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;

}

.journey-step span{

    display:flex;
    align-items:center;
    justify-content:center;
    width:60px;
    height:60px;
    margin-top:20px;
    border-radius:50%;
    font-size:1.2rem;
    font-weight:800;
}

.journey-step p{

    margin-top:12px;
    color:var(--vert-grenika);
    font-weight:700;

}

/* ==========================================================================
   ÉTATS
========================================================================== */

.journey-step.completed span{

    background:#d9e4db;
    color:var(--accent);
    border-style:dashed;

}

.journey-step.current span{

    background:var(--green);
    color:var(--accent);
    border: solid 3px var(--accent);


}

/* ==========================================================================
   LIAISONS ENTRE LES ÉTAPES
========================================================================== */

.journey-line{

    flex:1;
    height:4px;
    margin:0 15px;
    background:#d9e4db;
    

}

.journey-line.active{

    background:var(--accent);

}

/******************************************************************************
 04. JOURNEY SUMMARY BANNER
******************************************************************************/

/* ==========================================================================
   CONTENEUR
========================================================================== */

.journey-summary-banner{

    max-width:900px;
    margin:60px auto 0;
    padding:50px;
    border-radius:32px;
    text-align:center;
    background:
    linear-gradient(
        180deg,
        var(--vert-grenika-medium),
        var(--accent)
    );
    box-shadow:
        0 20px 50px rgba(0,0,0,.12);
}

/* ==========================================================================
   ICÔNE
========================================================================== */

.banner-icon{

    display:flex;
    align-items:center;
    justify-content:center;
    width:72px;
    height:72px;
    margin:0 auto 25px;
    border-radius:50%;
    background:var(--green);
    color:var(--vert-grenika);
    font-size:1.8rem;

}

/* ==========================================================================
   TITRE
========================================================================== */

.journey-summary-banner h3{

    margin-bottom:20px;
    color:var(--green);
    font-size:clamp(2rem,4vw,2.6rem);
    font-weight:800;

}

/* ==========================================================================
   TEXTES
========================================================================== */

.banner-text{

    margin-bottom:20px;

    color:var(--white);

    font-size:1.15rem;

    line-height:1.8;

}

.banner-projection{

    max-width:650px;
    margin:auto;
    color:rgba(255,255,255,.85);
    font-size:1rem;
    line-height:1.8;

}

/******************************************************************************
 RESPONSIVE — PARCOURS GRENIKA
******************************************************************************/

@media(max-width:768px){

    .journey-track{

        flex-wrap:wrap;

        gap:20px;

    }

    .journey-line{

        display:none;

    }

}

/******************************************************************************
 RESPONSIVE — JOURNEY SUMMARY BANNER
******************************************************************************/

@media(max-width:768px){

    .journey-summary-banner{

        padding:25px;

        text-align:center;

    }

}

/******************************************************************************
 05. FORMULAIRE GRENIKA
******************************************************************************/

/* ==========================================================================
   CONTENEUR PRINCIPAL
========================================================================== */

.formulaire-title{

    max-width:950px;

    margin:60px auto 0;

    padding:60px;

    border-radius:32px;

    background:
        linear-gradient(
            180deg,
            var(--vert-grenika-medium),
            var(--accent)
        );

    box-shadow:var(--shadow);

    text-align:center;

    color:var(--white);

}

.formulaire-title h3{

    margin:30px 0;

    color:var(--white);

    font-size:2rem;

}

.formulaire-title-line{

    width:120px;
    height:3px;

    margin:auto;

    border-radius:999px;

    background:var(--green);

}

/* ==========================================================================
   FORMULAIRE
========================================================================== */

.candidate-form{

    max-width:1000px;

    margin:0 auto;

    padding:80px 20px;

}

/******************************************************************************
 06. FORM CARDS
******************************************************************************/

/* ==========================================================================
   CARTE
========================================================================== */

.form-card{

    display:none;

    opacity:0;

    transform:translateY(15px);

    margin-bottom:32px;

    padding:40px;

    background:var(--white);

    border:1px solid rgba(0,0,0,.06);

    border-radius:28px;

    box-shadow:var(--candidate-shadow-soft);

    transition:
        opacity .4s ease-in-out,
        transform .3s ease;

}

.form-card:hover{

    transform:translateY(-4px);

}

.form-card.active{

    display:block !important;

    opacity:1;

    transform:translateY(0);

    animation:wizardFade .35s ease;

    pointer-events:auto;

    border-color:var(--vert-grenika);

    background:rgba(40,167,69,.06);

}

/* ==========================================================================
   EN-TÊTE
========================================================================== */

.form-card-header{

    display:flex;
    align-items:flex-start;
    gap:20px;

    margin-bottom:32px;

}

.form-step{

    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;

    width:70px;
    height:70px;

    border-radius:50%;

    background:var(--accent);

    box-shadow:
        0 10px 20px rgba(0,0,0,.12);

    color:#fff;

    font-size:1.4rem;
    font-weight:800;

}

.section-kicker{

    display:inline-block;

    margin-bottom:12px;

    padding:8px 14px;

    background:var(--candidate-green-soft-strong);

    border-radius:999px;

    color:var(--vert-grenika);

    font-size:.8rem;
    font-weight:800;
    letter-spacing:.08em;

}

.form-card-header h2{

    margin-bottom:12px;

    color:var(--vert-grenika);

    font-size:2rem;
    font-weight:800;

}

.form-card-header p{

    color:#666;

    line-height:1.7;

}

/* ==========================================================================
   GRILLE
========================================================================== */

.form-grid{

    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:24px;

}

/* ==========================================================================
   GROUPES DE CHAMPS
========================================================================== */

.form-group{

    display:flex;

    flex-direction:column;

}

.form-group label{

    margin-bottom:8px;

    color:#153b2e;

    font-size:.95rem;
    font-weight:700;

}

.form-group input,
.form-group select{

    width:100%;
    height:62px;

    padding:0 18px;

    background:#fff;

    border:1px solid #d9d9d9;

    border-radius:16px;

    font-size:1rem;

    transition:var(--candidate-transition-fast);

}

.form-group input:focus,
.form-group select:focus{

    outline:none;

    border-color:var(--vert-grenika);

    box-shadow:
        0 0 0 4px rgba(40,167,69,.12);

}

/* ==========================================================================
   INFORMATIONS CONTEXTUELLES
========================================================================== */

.form-info{

    display:flex;
    align-items:center;
    gap:12px;

    margin-top:24px;

    padding:18px 20px;

    background:var(--candidate-red);

    border-radius:16px;

    color:var(--white);

}

/******************************************************************************
 07. CANDIDATE PROGRESS
******************************************************************************/

/* ==========================================================================
   CONTENEUR
========================================================================== */

.candidate-progress{

    position:relative;

    margin-bottom:16px;

    padding:22px 24px;

    background:rgba(255,255,255,.96);

    border:1px solid rgba(0,0,0,.06);

    border-radius:22px;

    box-shadow:
        0 14px 35px rgba(0,0,0,.07);

}

/* ==========================================================================
   EN-TÊTE
========================================================================== */

.candidate-progress-header{

    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;

    margin-bottom:14px;

}

.progress-label{

    display:block;

    margin-bottom:8px;

    color:#555;

    font-size:1rem;
    font-weight:700;

}

.progress-step{

    flex-shrink:0;

    padding:7px 14px;

    background:var(--candidate-green-soft-strong);

    border-radius:999px;

    color:var(--vert-grenika);

    font-size:.9rem;
    font-weight:800;

}

.progress-completion{

    display:inline-flex;

    padding:7px 14px;

    background:#F8FAF8;

    border:1px solid rgba(40,167,69,.14);

    border-radius:999px;

    color:#1F3D2C;

    font-size:.95rem;
    font-weight:800;

}

/* ==========================================================================
   BARRE DE PROGRESSION
========================================================================== */

.progress-bar{

    width:100%;
    height:12px;

    background:#ECECEC;

    border-radius:999px;

    overflow:hidden;

}

.progress-fill{

    width:16.66%;
    height:100%;

    background:
        linear-gradient(
            90deg,
            var(--vert-grenika),
            #42D96A
        );

    border-radius:999px;

    transition:
        var(--candidate-transition-slow);

}

/* ==========================================================================
   STATUT DE PROGRESSION
========================================================================== */

.candidate-progress-status{

    display:flex;
    align-items:flex-start;
    gap:14px;

    margin-top:18px;

    padding:16px 18px;

    background:
        linear-gradient(
            135deg,
            var(--candidate-green-soft),
            rgba(40,167,69,.02)
        );

    border:1px solid rgba(40,167,69,.16);

    border-radius:18px;

}

.candidate-progress-status i{

    flex-shrink:0;

    margin-top:4px;

    color:var(--vert-grenika);

    font-size:1.2rem;

}

.candidate-progress-status h4{

    margin:0 0 6px;

    color:#1F3D2C;

    font-size:1rem;

}

.candidate-progress-status p{

    margin:0;

    color:#5F6F64;

    font-size:.95rem;

    line-height:1.6;

}

/******************************************************************************
 08. WIZARD
******************************************************************************/

/* ==========================================================================
   AIDE CONTEXTUELLE
========================================================================== */

.section-helper{

    margin-top:12px;

    color:var(--vert-grenika);

    font-size:.95rem;
    font-weight:500;
    line-height:1.6;

    text-decoration-color:#42F45D;

}

/* ==========================================================================
   ÉTAPES
========================================================================== */

.form-card.active{

    display:block !important;

    opacity:1;

    transform:translateY(0);

    animation:wizardFade .35s ease;

    pointer-events:auto;

    border-color:var(--vert-grenika);

    background:rgba(40,167,69,.06);

}

/* ==========================================================================
   NAVIGATION
========================================================================== */

.form-navigation{

    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-top:42px;
    padding-top:28px;

    border-top:1px solid rgba(0,0,0,.08);

}

/* ==========================================================================
   BOUTON SUIVANT
========================================================================== */

.btn-nav-next{

    height:54px;

    margin-left:auto;

    padding:0 32px;

    background:
        linear-gradient(
            180deg,
            #42F45D,
            #00E617
        );

    border:none;

    border-radius:14px;

    box-shadow:
        0 8px 20px rgba(40,167,69,.15);

    cursor:pointer;

    color:var(--white);

    font-size:1rem;
    font-weight:700;
    letter-spacing:.04em;

    transition:
        var(--candidate-transition-fast);

}

.btn-nav-next:hover{

    transform:translateY(-2px);

    box-shadow:
        0 12px 25px rgba(40,167,69,.25);

}

/* ==========================================================================
   BOUTON PRÉCÉDENT
========================================================================== */

.btn-nav-prev{

    height:54px;

    padding:0 28px;

    background:#F8FAF8;

    border:1px solid rgba(40,167,69,.14);

    border-radius:14px;

    cursor:pointer;

    color:#5F6F64;

    font-size:1rem;
    font-weight:700;

    transition:
        var(--candidate-transition-fast);

}

.btn-nav-prev:hover{

    background:var(--white);

    border-color:var(--vert-grenika);

    color:var(--vert-grenika);

}

/* ==========================================================================
   VALIDATION
========================================================================== */

.wizard-validation-message{

    display:none;

    margin:20px 0;

    padding:16px 20px;

    background:#FFF9E6;

    border:1px solid #F4D03F;

    border-radius:14px;

    color:#7D6608;

    font-weight:600;

    line-height:1.5;

}

.wizard-validation-message.show{

    display:flex;

    align-items:center;

    gap:12px;

}

.wizard-validation-message strong{

    color:var(--vert-grenika);

}

.wizard-validation-message i{

    flex-shrink:0;

    font-size:1.2rem;

}

.wizard-validation-message ul{

    margin:8px 0 0;

    padding-left:22px;

}

.wizard-validation-message li{

    margin:4px 0;

}

/******************************************************************************
 RESPONSIVE — WIZARD
******************************************************************************/

@media(min-width:768px){

    .wizard-submit-container{

        align-items:stretch;

    }

}

@media(max-width:768px){

    .form-navigation{

        display:flex;

        flex-direction:column-reverse;

        gap:16px;

        margin-top:24px;

        padding-top:18px;

    }

    .btn-nav-next,
    .btn-nav-prev{

        width:100%;

        height:58px;

        margin-left:0 !important;

        display:flex;
        align-items:center;
        justify-content:center;

    }

}

@media(max-width:480px){

    .form-navigation{

        margin-top:20px;

        padding-top:14px;

        gap:12px;

    }

    .btn-nav-next,
    .btn-nav-prev{

        height:52px;

        padding:0 16px;

        border-radius:12px;

        font-size:.95rem;

    }

}

/******************************************************************************
 ANIMATION
******************************************************************************/

@keyframes wizardFade{

    from{

        opacity:0;

        transform:translateY(15px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/******************************************************************************
 09. CHOICE CARDS
******************************************************************************/

/* ==========================================================================
   GRILLE
========================================================================== */

.choice-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(240px,1fr));

    gap:16px;

}

/* ==========================================================================
   CARTE
========================================================================== */

.choice-card{

    position:relative;

    display:flex;
    align-items:center;

    min-height:90px;

    padding:20px;

    background:var(--white);

    border:2px solid #E5E5E5;

    border-radius:18px;

    cursor:pointer;

    transition:
        var(--candidate-transition-fast);

}

/* ==========================================================================
   CHAMP MASQUÉ
========================================================================== */

.choice-card input{

    display:none;

}

/* ==========================================================================
   LIBELLÉ
========================================================================== */

.choice-card span{

    font-weight:600;

}

/* ==========================================================================
   SURVOL
========================================================================== */

.choice-card:hover{

    transform:translateY(-3px);

    border-color:var(--vert-grenika);

    box-shadow:
        0 10px 25px rgba(0,0,0,.08);

}

/* ==========================================================================
   ÉTAT ACTIF
========================================================================== */

.choice-card.active{

    background:
        rgba(40,167,69,.06);

    border-color:var(--vert-grenika);

    box-shadow:
        0 10px 25px rgba(0,0,0,.08);

}

/******************************************************************************
 10. INSTALLATION
******************************************************************************/

/* ==========================================================================
   GRILLE DES ESPACES D'INSTALLATION
========================================================================== */

.installation-groups{

    display:grid;

    grid-template-columns:
        1fr 1fr;

    gap:32px;

    margin-bottom:32px;

}

/* ==========================================================================
   GROUPE
========================================================================== */

.installation-group{

    padding:24px;

    background:#FAFAFA;

    border-radius:20px;

}

.installation-group h3{

    margin-bottom:20px;

    color:var(--vert-grenika);

}

/******************************************************************************
 11. ENGAGEMENT GRENIKER
******************************************************************************/

/* ==========================================================================
   GRILLE
========================================================================== */

.engagement-grid{

    grid-template-columns:
        repeat(3,minmax(0,1fr));

}

/* ==========================================================================
   CARTE
========================================================================== */

.engagement-card{

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    min-height:180px;

}

/* ==========================================================================
   TITRE
========================================================================== */

.engagement-card span{

    margin-bottom:10px;

    font-size:1.15rem;

}

/* ==========================================================================
   DESCRIPTION
========================================================================== */

.engagement-card small{

    color:#666;

    line-height:1.6;

}

/******************************************************************************
 12. FINAL REVIEW
******************************************************************************/

/* ==========================================================================
   CONTENEUR
========================================================================== */

.final-review{

    background:
        linear-gradient(
            180deg,
            var(--white),
            #FAFAFA
        );

}

/* ==========================================================================
   CARTE DE RELECTURE
========================================================================== */

.review-card{

    max-width:800px;

    margin:auto;

    text-align:center;

}

/* ==========================================================================
   ICÔNE
========================================================================== */

.review-icon{

    display:flex;
    align-items:center;
    justify-content:center;

    width:90px;
    height:90px;

    margin:0 auto 24px;

    background:var(--white);

    border:2px solid #E5E5E5;

    border-radius:50%;

    color:var(--vert-grenika);

    font-size:2rem;

}

/* ==========================================================================
   INTRODUCTION
========================================================================== */

.review-intro{

    max-width:720px;

    margin:16px auto 30px;

    color:#52665C;

    font-size:1rem;

    line-height:1.65;

    text-align:center;

}

/******************************************************************************
 13. CONSENTEMENTS
******************************************************************************/

/* ==========================================================================
   CONTENEUR
========================================================================== */

.consent-group{

    display:flex;

    flex-direction:column;

    gap:16px;

    margin:32px 0;

}

/* ==========================================================================
   CARTE DE CONSENTEMENT
========================================================================== */

.checkbox-card{

    display:flex;
    align-items:flex-start;
    gap:12px;

    padding:18px 22px;

    background:var(--white);

    border:1px solid #E5E5E5;

    border-radius:16px;

}

.checkbox-card input{

    margin-top:4px;

}

.checkbox-card span{

    line-height:1.6;

}

/******************************************************************************
 14. SOUMISSION
******************************************************************************/

/* ==========================================================================
   CONTENEUR
========================================================================== */

.wizard-submit-container{

    display:flex;

    flex-direction:column;

    gap:20px;

    margin-top:32px;

}

/* ==========================================================================
   BOUTON DE DÉPÔT
========================================================================== */

.submit-application{

    width:100%;

    min-height:68px;

    margin-top:20px;

    font-size:1.1rem;

    letter-spacing:.04em;

}

/******************************************************************************
 15. CANDIDATE SUMMARY
******************************************************************************/

/* ==========================================================================
   CARTE RÉCAPITULATIVE
========================================================================== */

.candidate-summary-card{

    margin-top:28px;

    background:var(--white);

    border:1px solid var(--candidate-border);

    border-radius:22px;

    overflow:hidden;

    box-shadow:
        var(--candidate-shadow-medium);

}

/* ==========================================================================
   EN-TÊTE
========================================================================== */

.candidate-summary-header{

    padding:22px 28px;

    background:var(--candidate-dark);

    color:var(--white);

    text-align:left;

    font-size:1.05rem;
    font-weight:800;
    letter-spacing:1px;
    text-transform:uppercase;

}

.summary-title{

    font-size:1.15rem;
    font-weight:800;
    letter-spacing:1px;
    text-transform:uppercase;

}

.summary-subtitle{

    margin-top:6px;

    opacity:.90;

    font-size:.88rem;
    font-weight:500;

}

/* ==========================================================================
   TABLEAU
========================================================================== */

.candidate-summary-table{

    width:100%;

    background:var(--white);

    border-collapse:collapse;

    font-size:.95rem;

}

.candidate-summary-table th{

    padding:14px 18px;

    background:#F3F8EF;

    border-bottom:
        1px solid var(--candidate-border);

    color:var(--candidate-dark);

    text-align:left;

    font-weight:800;

}

.candidate-summary-table td{

    padding:15px 18px;

    border-bottom:
        1px solid var(--candidate-border-soft);

    color:var(--vert-grenika);

    text-align:left;

    vertical-align:top;

}

/* ==========================================================================
   COLONNES
========================================================================== */

.candidate-summary-table td:nth-child(2){

    color:#708075;

    font-weight:600;

}

.candidate-summary-table td:nth-child(3){

    color:var(--candidate-dark);

    font-weight:700;

}

/* ==========================================================================
   ÉTAPE
========================================================================== */

.summary-step{

    width:200px;

    background:var(--candidate-light);

    border-right:
        2px solid rgba(23,53,43,.08);

    color:var(--candidate-dark);

    text-align:left;

    vertical-align:middle;

    font-weight:800;

}

.summary-step strong{

    display:block;

    margin-top:4px;

    font-size:.92rem;

    text-transform:uppercase;

}

/******************************************************************************
 16. OFFICIAL SUBMISSION RECEIPT
******************************************************************************/

/* ==========================================================================
   CONTENEUR
========================================================================== */

.application-success{

    max-width:760px;

    margin:40px auto;

    padding:40px;

    background:var(--white);

    border-radius:24px;

    box-shadow:
        var(--candidate-shadow-strong);

    text-align:center;

}

/* ==========================================================================
   ICÔNE
========================================================================== */

.success-icon{

    margin-bottom:20px;

    color:#1D6F68;

    font-size:4rem;

}

/* ==========================================================================
   BADGE
========================================================================== */

.success-badge{

    display:inline-block;

    margin-bottom:20px;

    padding:10px 18px;

    background:#DFF2D8;

    border-radius:999px;

    color:#1F352D;

    font-size:.85rem;
    font-weight:700;
    letter-spacing:.08em;

}

/* ==========================================================================
   TITRE
========================================================================== */

.application-success h2{

    margin-bottom:25px;

    color:#1F352D;

    font-size:
        clamp(1.8rem,4vw,2.5rem);

    line-height:1.15;

}

/* ==========================================================================
   INTRODUCTION
========================================================================== */

.success-intro{

    margin-bottom:20px;

    color:#1F352D;

    font-size:1.2rem;

    font-weight:600;

}

/* ==========================================================================
   MESSAGE
========================================================================== */

.application-success p{

    line-height:1.8;

}

/* ==========================================================================
   DATE D'ENREGISTREMENT
========================================================================== */

.success-date{

    margin-top:30px;

    padding:18px;

    background:#F5F7F4;

    border-radius:16px;

    font-weight:600;

}

/******************************************************************************
 17. RESTITUTION COMPONENTS
******************************************************************************/

/* ==========================================================================
   ESPACEMENT VERTICAL
========================================================================== */

.candidate-summary-card,
.application-success{

    scroll-margin-top:120px;

}

/* ==========================================================================
   TYPOGRAPHIE COMMUNE
========================================================================== */

.candidate-summary-header,
.success-badge{

    letter-spacing:.08em;

    text-transform:uppercase;

}

/* ==========================================================================
   ACCESSIBILITÉ
========================================================================== */

.candidate-summary-table th,
.candidate-summary-table td{

    word-break:break-word;

}

/* ==========================================================================
   RESPONSIVE
========================================================================== */

@media(max-width:768px){

    .candidate-summary-card{

        border-radius:18px;
        overflow:auto;

    }

    .candidate-summary-header{

        padding:18px 20px;

    }

    .candidate-summary-table{

        font-size:.88rem;

    }

    .candidate-summary-table td{

        padding:12px;

    }

    .summary-step{

        width:140px;

    }

    .application-success{

        padding:28px;

        border-radius:20px;

    }

    .success-icon{

        font-size:3rem;

    }

    .application-success h2{

        font-size:1.8rem;

    }

}

@media(max-width:480px){

    .candidate-summary-header{

        padding:16px;

    }

    .candidate-summary-table{

        font-size:.82rem;

    }

    .summary-step{

        width:120px;

    }

    .application-success{

        padding:22px;

    }

    .success-badge{

        font-size:.78rem;

    }

}

/******************************************************************************
 18. CANDIDATE FOLLOW-UP
******************************************************************************/

/* ==========================================================================
   SECTION
========================================================================== */

.candidate-follow-up{

    margin:60px auto;

}

.candidate-follow-up.hidden{

    display:none !important;

}

/* ==========================================================================
   CARTE
========================================================================== */

.candidate-followup-card{

    margin-top:22px;

    padding:50px;

    background:var(--white);

    border:1px solid rgba(28,48,39,.10);

    border-radius:24px;

    overflow:hidden;

    box-shadow:
        var(--candidate-shadow-medium);

}

/* ==========================================================================
   EN-TÊTE
========================================================================== */

.followup-header{

    padding:24px;

    background:var(--candidate-light);

    border-bottom:
        1px solid var(--candidate-border-soft);

    text-align:center;

}

.followup-header h2{

    margin:0;

    color:var(--candidate-dark);

    font-size:1.5rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;

}

.followup-header p{

    max-width:720px;

    margin:12px auto 0;

    color:#6C7A71;

    font-size:1rem;

    line-height:1.7;

}

/* ==========================================================================
   BLOCS
========================================================================== */

.followup-block{

    margin-top:40px;

}

.followup-block:first-of-type{

    margin-top:32px;

}

.followup-block h3{

    margin:0 0 20px;

    color:var(--candidate-dark);

    font-size:1.25rem;
    font-weight:800;

}

/* ==========================================================================
   LISTES
========================================================================== */

.followup-block ul{

    margin:0;

    padding:0;

    list-style:none;

}

.followup-block li{

    display:flex;
    align-items:center;
    gap:12px;

    margin:14px 0;

    color:var(--vert-grenika);

    font-size:1.05rem;
    font-weight:600;
    line-height:1.6;

}

.followup-block i{

    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;

    width:42px;
    height:42px;

    background:rgba(193,223,84,.15);

    border-radius:50%;

    color:var(--accent);

    font-size:.95rem;

}

/* ==========================================================================
   PIED DE CARTE
========================================================================== */

.followup-footer{

    margin-top:45px;

    padding-top:28px;

    border-top:
        1px solid var(--candidate-border-soft);

    text-align:center;

}

.followup-footer p{

    margin:0 0 14px;

    color:#5F6F64;

    line-height:1.7;

}

.followup-footer strong{

    color:var(--candidate-dark);

    font-weight:800;

}

/******************************************************************************
 19. CONFIRMATION MODE
******************************************************************************/

/* ==========================================================================
   ÉCRAN DE CONFIRMATION
========================================================================== */

.confirmation-mode .application-journey,
.confirmation-mode .journey-summary-banner,
.confirmation-mode .formulaire-title,
.confirmation-mode .candidate-progress{

    display:none;

}

/* ==========================================================================
   FORMULAIRE
========================================================================== */

.confirmation-mode .candidate-form{

    max-width:760px;
    padding-top:20px;
    padding-bottom:80px;

}

/* ==========================================================================
   OFFICIAL SUBMISSION RECEIPT
========================================================================== */

.confirmation-mode .application-success{

    margin-top:0;
    margin-bottom:0;

}

/* ==========================================================================
   CANDIDATE FOLLOW-UP
========================================================================== */

.confirmation-mode .candidate-follow-up{

    margin-top:48px;

}

/******************************************************************************
 20. UTILITAIRES
******************************************************************************/

/* ==========================================================================
   VISIBILITÉ
========================================================================== */

.hidden{

    display:none !important;

}

.show{

    display:block !important;

}

/* ==========================================================================
   ÉTATS
========================================================================== */

.is-active{

    opacity:1;

}

.is-disabled{

    opacity:.5;

    pointer-events:none;

}

/* ==========================================================================
   ALIGNEMENTS
========================================================================== */

.flex-center{

    display:flex;

    align-items:center;

    justify-content:center;

}

.text-center{

    text-align:center;

}


/* ==========================================================================
   COMMUNICATION CARD - GRENIKA Design System
========================================================================== */

.communication-card{

    display:flex;
    align-items:flex-start;
    gap:18px;

    margin:24px 0;
    padding:20px 24px;

    border-radius:18px;

    border-left:5px solid transparent;

    box-shadow:0 10px 24px rgba(0,0,0,.05);

}

.communication-card__icon{

    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    margin-top:4px;
    color:inherit;
    background:none;
    border:none;
    width:auto;
    height:auto;
    font-size:1.15rem;

}

.communication-card--info
.communication-card__icon{

    color:inherit;

}

.communication-card--success
.communication-card__icon{

    color:inherit;

}

.communication-card--warning
.communication-card__icon{

    color:inherit;

}

.communication-card--error
.communication-card__icon{

    color:inherit;

}
 /* Information */

.communication-card--info{

    background:#EEF8F5;

    color:var(--communication-dark);

    border-left-color:#2F8F83;

}

 /* Success */

.communication-card--success{

    background:#F2FAF3;

    color:var(--communication-dark);

    border-left-color:#38A169;

}


 /* Warning */

.communication-card--warning{

    background:#FFF8E7;

    color:var(--communication-dark);

    border-left-color:#D69E2E;

}


 /* Error */

.communication-card--error{

    background:#FFF3F3;

    color:var(--candidate-dark);

    border-left-color:var(--communication-red)

}

/* ==========================================================================
   SELECTION CARD — GRENIKA Design System
========================================================================== */

/* La carte entière est cliquable */
.choice-card{

    position:relative;

    display:block;

    cursor:pointer;

}

/* Le checkbox est masqué mais reste accessible */
.choice-card input{

    position:absolute;

    opacity:0;

    pointer-events:none;

}

/* Corps de la carte */
.choice-card__content{

    display:flex;

    flex-direction:column;

    gap:12px;

    height:100%;

    min-height:180px;

    padding:28px 24px;

    background:var(--white);

    border:2px solid var(--border);

    border-radius:24px;

    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .20s ease;

}

/* Icône */
.choice-card__icon{

    font-size:2rem;

    color:var(--accent);

    line-height:1;

}

/* Titre */
.choice-card__title{

    font-size:1.45rem;

    font-weight:700;

    line-height:1.30;

    color:var(--communication-dark);

}

/* Sous-titre */
.choice-card__subtitle{

    margin:0;

    font-size:1rem;

    line-height:1.60;

    color:var(--text-light);

}

/* Description */

.choice-card__description{

    margin:0;

    font-size:.95rem;

    line-height:1.6;

    color:#5F6E69;

    font-weight:400;

}

/* ==========================================================================
   HOVER — SELECTION CARD — GRENIKA Design System
========================================================================== */

.choice-card:hover .choice-card__content{

    transform:translateY(-4px);

    border-color:var(--accent);

    box-shadow:0 16px 36px rgba(0,0,0,.08);

}

/* ==========================================================================
   FOCUS — SELECTION CARD — GRENIKA Design System
========================================================================== */

.choice-card input:focus-visible
+ .choice-card__content{

    outline:3px solid var(--grenika-light);

    outline-offset:4px;

}

/* ==========================================================================
   SELECTED — SELECTION CARD — GRENIKA Design System
========================================================================== */

.choice-card input:checked
+ .choice-card__content{

    background:#EDF8F3;

    border-color:var(--accent);

    box-shadow:0 12px 30px rgba(0,0,0,.08);

}

.choice-card__content::after{

    content:"";

    position:absolute;

    top:18px;

    right:18px;

    width:18px;

    height:18px;

    border-radius:50%;

    border:2px solid var(--border);

    transition:.25s;

}
.choice-card--radio::after{
    content:"";
    width:18px;
    height:18px;
    border:2px solid var(--border);
    border-radius:50%;
}
.choice-card input:checked + .choice-card__content::after{

    background:var(--green);
    border-color:var(--green);

}

.choice-card input:checked
+ .choice-card__content::after{

    content:"✓";

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:.75rem;

    font-weight:700;

    color:var(--white);

    background:var(--accent);

    border-color:var(--accent);

}

