.cctp {
    --cctp-bg: #f7f7f5;
    --cctp-card: #ffffff;
    --cctp-text: #3B2800;
    --cctp-muted: #D19571;
    --cctp-border: transparent;
    --cctp-accent: #D19571;
    --cctp-accent-contrast: #ffffff;
    --cctp-radius: 20px;
    --cctp-shadow: none;
    --cctp-image: 150px;

    margin: 0 auto;
    border-radius: 28px;
    width: 100%;
}

.cctp__header {
    margin-bottom: 20px;
    display: grid;
    display: none;
    grid-template-areas:
        "title logout"
        "intro intro";
    
}

.cctp__eyebrow {
    display: none;
    grid-area: eyebrow;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cctp-muted);
}

.cctp__title {
    grid-area: title;
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.1;
    color: var(--cctp-text);
    display: flex;
    align-items: center;
    column-gap: 15px;
    margin-bottom: 50px;
    display: none;
}

.cctp__title .dashicons{
    font-size: 30px;
    line-height: 30px;
    display: flex;
    align-items: center;
}

.cctp__intro {
    grid-area: intro;
    color: var(--cctp-text);
    font-size: 20px;
    line-height: 1.5;
    width: 100%;
    margin: 0 auto 50px auto;
    display: none;
}

.cctp__logout {
    grid-area: logout;
    text-align: right;
}
.cctp__logout > a:hover {
    text-decoration: none;
}

/*
.cctp__progress {
    display: none;
    gap: 8px;
    margin: 20px 0 24px;
}
.cctp__progress-step {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #d1d5db;
    transition: background 220ms ease;
}
.cctp__progress-step.is-active,
.cctp__progress-step.is-done {
    background: #111827;
}
*/

.cctp__viewport {
    position: relative;
    /*min-height: 260px;*/
    overflow: hidden;
    margin-bottom: 80px;
}

.cctp__step {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
    transition:
        transform 420ms cubic-bezier(.22,.61,.36,1),
        opacity 320ms ease;
    display: flex;
    flex-direction: column;
}

.cctp__step.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.cctp__step.is-leaving-up {
    opacity: 0;
    transform: translateY(-42px);
    pointer-events: none;
}

.cctp__step-head {
    margin-bottom: 18px;
}

.cctp__step-index {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cctp-muted);
}

.cctp__step-title {
    margin: 0;
    font-size: 36px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--cctp-muted);
    margin-bottom: 20px;
    text-align: center;
}

.cctp__step-subtitle {
    margin: 8px 0 0;
    color: var(--cctp-muted);
    line-height: 1.5;
}

.cctp__choices {
    /*
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    */
    gap: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.cctp__choice {
    appearance: none;

    background:transparent;
    box-shadow: var(--cctp-shadow);
    border-radius: 50px;

    text-align: left;

    cursor: pointer; 
    transition:
        transform 0.2s ease-in-out,
        border-color 0.2s ease-in-out,
        background 0.2s ease-in-out;

    width: auto;
    max-width: calc(100% / 4);
    padding: 1rem 2rem;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 15px;
}

.cctp__choice:not(.cctp__choice-visual) {
    border: 1px solid #D19571;
}
.cctp__choice.cctp__choice-visual {
    border: 0px solid transparent;
}

.cctp__choice:hover {
    transform: translateY(-2px);
}

.cctp__choice.is-selected {
    border-color: var(--cctp-accent);
    background: #f3f4f6;
}

.cctp__choice-title {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #D19571;
    text-align: center;
    transition: all ease-in-out 0.2s;
    font-family: 'GT Walsheim Pro', Arial, Helvetica !important;
}
.cctp__choice:hover .cctp__choice-title {
    color: var(--cctp-muted);
}

.cctp__choice-meta {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--cctp-muted);
}

.cctp__choice-image-wrap{
    width: var(--cctp-image);
    height: var(--cctp-image);
    display: flex;
    justify-content: center;
    border: 1px solid #DDD;
    border-radius: var(--cctp-radius);
    overflow: hidden;
}
.cctp__choice-image-wrap .cctp__choice-image{
    display: flex;
    object-position: center center;
}
.cctp__step.is-active[data-step-id="teinte"] .cctp__choice-image-wrap .cctp__choice-image{
    object-fit: cover;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
}
.cctp__step.is-active[data-step-id="profil"] .cctp__choice-image-wrap .cctp__choice-image{
    object-fit: contain;
}

.cctp__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.cctp__results {
    /*
    display: grid;
    grid-template-areas:
        "total copy"
        "final final";
    justify-content: space-between;
    grid-template-columns: auto 150px;
    background: #FEEBD3;
    padding: 40px;
    border-radius: 20px;
    */
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    row-gap: 20px;
    grid-area: results;
}

.cctp__result {
    position: relative;
    background: #FEEBD3;
    padding: 40px;
    border-radius: 20px;
}

.cctp__result:last-child {
    border-bottom: none;
}

.cctp__documents {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.cctp__total {
    grid-area: total;
    font-style: italic;
    color: #D19571;
}
.cctp__final-text {
    grid-area: final;
}

.cctp__copy,
.cctp__back,
.cctp__reset,
.cctp__document-btn,
.cctp__results-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.cctp__copy:hover,
.cctp__back:hover,
.cctp__reset:hover,
.cctp__document-btn:hover,
.cctp__results-button:hover {
    transform: translateY(-1px);
}

.cctp__back:disabled,
.cctp__back[disabled]{
    visibility: hidden;
}

.cctp__copy-btn{
    grid-area: copy;
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    color: #D19571;
    font-style: italic;
}

.cctp__documents .cctp__document-btn{
    background: #D19571;
    color: #FEEBD3;
    border-radius: 5px;
    padding: 0;
    padding-right: 8px;
    column-gap: 0 !important;

    transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.cctp__copy-btn .copy-btn{
    appearance: none;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    cursor: pointer;
    background: #D19571;
    color: #FEEBD3;
    padding: 0;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    
    transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}
.cctp__copy-btn .copy-btn:hover,
.cctp__documents .cctp__document-btn:hover{
    transform: translateY(-1px);
    background: #D19571 !important;
    color: #FFF !important;
}

.cctp__documents .cctp__document-btn svg,
.cctp__copy-btn .copy-btn .copy svg,
.cctp__copy-btn .copy-btn .check svg,
.cctp__copy-btn .copy-btn .error svg{
    width: 30px;
    height: 30px;
    padding: 5px;
}
.cctp__copy-btn .copy-btn .check,
.cctp__copy-btn .copy-btn .error{
    display: none
}
.cctp__copy-btn .copy-btn.is-success .copy {
    display: none;
}
.cctp__copy-btn .copy-btn.is-success .check {
    display: inline-flex;
}
.cctp__copy-btn .copy-btn.is-error .copy {
    display: none;
}
.cctp__copy-btn .copy-btn.is-error .error {
    display: inline-flex;
}

.cctp__summary {
    background: #fff;
    border: 1px solid var(--cctp-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--cctp-shadow);

    display: grid;
    grid-template-areas:
        "summary"
        "results"
        "catalogue"
        "promo"
        "contact";
    /*grid-template-columns: 2fr 1fr;*/
    /*column-gap: 5rem;*/
    row-gap: 2rem;
}

.cctp__summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    grid-area: summary;
}

.cctp__summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.cctp__summary-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cctp__label {
    font-weight: 700;
    color: var(--cctp-text);
}

.cctp__value {
    color: var(--cctp-muted);
    text-align: right;
}

.cctp__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 80px;
    font-weight: 600;
}

.cctp__loader-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: cctp-spin 0.8s linear infinite;
}

.cctp__encart-promo,
.cctp__encart-contact,
.cctp__encart-catalogue{
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    /*color: #3B2800 !important;*/
    position: relative;
}

.cctp__encart-promo p,
.cctp__encart-contact p,
.cctp__encart-catalogue p{
    margin-bottom: 0;
}

.cctp__encart-promo{
    grid-area: promo;
    /*
    color: #3B2800 !important;

    font-size: 1.2rem;
    line-height: 2rem;
    padding: 2rem 1rem;
    */
}
/*
.cctp__encart-promo p{
    padding-left: 5px;
}

.cctp__encart-promo p::before,
.cctp__encart-promo p::after {
    content: ' ';
    position: absolute;
    width: 30px;
    height: 30px;
    display: block;
    border-left: 2px solid #FFDD00;
    left: -5px;
}
.cctp__encart-promo p::before {
    top: 0px;
    border-top-left-radius: 5px;
    border-top: 2px solid #FFDD00;
}
.cctp__encart-promo p::after {
    bottom: 0px;
    border-bottom-left-radius: 5px;
    border-bottom: 2px solid #FFDD00;
}
*/
.cctp__encart-contact{
    grid-area: contact;
    justify-self: center;
    padding: 0;
}
.cctp__encart-catalogue{
    grid-area: catalogue;
    /*
    background: #F8BBAB !important;
    padding: 1rem 2rem;
    flex-direction: column;    
    row-gap: 2rem;
    */
}
.cctp__encart-catalogue p{
    /*
    font-size: 1rem;
    line-height: 1.8rem;
    padding: 0;
    text-align: center;
    */
}



/****************************************************************************************************
 ** NAVIGATION
 ***************************************************************************************************/

.cctp__progress-home {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #D19571;
    opacity: .9;
    white-space: nowrap;
    font-family: 'GT Walsheim Pro', Arial, Helvetica;
    display: flex;
    column-gap: 10px;
    padding: 10px 0;
}

.cctp__progress-home::after {
    content: "\f345";
    font-family: "dashicons";
    font-size: 20px;
    color: #D19571;
}

.cctp__progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 80px;
}

.cctp__progress-step {
    position: relative;
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 13px;
    line-height: 1.3;
    color: currentColor;
    opacity: 0.35;
    cursor: pointer;
    font-family: 'Space Grotesk', Arial, Helvetica;
    text-transform: uppercase;
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;

    padding: 0;
    max-width: calc( 100% / 7 );
}

.cctp__progress-title {
    font-size: 13px;
    font-weight: 500;
}

.cctp__progress-value {
    font-size: 11px;
    color: #D19580;
    font-weight: 400;
}

.cctp__progress-step.is-done {
    opacity: 0.75;
}

.cctp__progress-step.is-active {
    opacity: 1;
    font-weight: 600;
    cursor: default;
}

.cctp__progress-step.is-disabled:not(.is-active) {
    cursor: not-allowed;
    opacity: 0.25;
}

.cctp__progress-step:hover:not(:disabled) {
    opacity: 1;
}

@media screen and (max-width: 960px) {
    .cctp__summary{
        grid-template-areas:
            "summary"
            "catalogue"
            "results"
            "promo"
            "contact";
        grid-template-columns: 100%;
    }

    .cctp__step-title.two-third{
        width: 100%;
    }
}
@media screen and (max-width: 640px) {
    .cctp__title {
        font-size: 26px;
    }

    .cctp__step-title {
        font-size: 22px;
    }

    .cctp__choices {
        grid-template-columns: 1fr;
    }

    .cctp__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cctp__summary-list li {
        flex-direction: column;
    }

    .cctp__value {
        text-align: left;
    }

    .cctp__encart-promo{
        padding: 0;
    }
    .cctp__encart-promo p::before,
    .cctp__encart-promo p::after{
        display: none;
    }

    .cctp__encart-contact{
        justify-self: center;
    }
    .cctp__encart-catalogue a{
        line-height: 1.5rem !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
}

@keyframes cctp-spin {
    to {
        transform: rotate(360deg);
    }
}
