.content-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* ── Info cards row ── */
.info-cards-row {
    display: flex;
    gap: 20px;
    margin-bottom: 36px;
}

.info-cards-row-freelance {
    margin-bottom: 36px;
}

body.dark .info-card,
body.dark .promo-card,
body.dark .limit-card {
    background: var(--dark-gray);
    border: 1px solid var(--dark-gray);
}

.info-card {
    background: #fff;
    border: 1px solid #eaeef3;
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: 0px 3px 6px #0000001A;
}

.card-details-freelance {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: space-around;
    margin-bottom: 20px;
}

.card-details {
    flex: 0.33;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

body.dark .detail-item,
body.dark .skill-name,
body.dark .skill-level,
body.dark .share-title,
body.dark .cv-content,
body.dark .promo-card,
body.dark .promo-card strong {
    color: var(--white);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: calc(1* var(--basePX) + 4px);
    line-height: 1.2;
    font-family: 'Poppins-Medium', sans-serif;
    color: var(--black);
}
.detail-item .detail-icon {
    
    flex-shrink: 0;
    display: flex;
}

.detail-item .detail-icon svg {
    width: 20px;
}

.company-card .cc-link {
    color: var(--black);
}

.company-card .cc-link svg {
    color: var(--main-color_esn-forfait);
}

.detail-item .detail-icon.profil,
.skills-title.profil,
.cv-title.profil,
.cta-btn-register.profil,
.btn-repondre.profil:hover,
.header-info.profil h1 {
    color: var(--main-color_profil);
}

.skill-bar.profil,
.btn-repondre.profil {
    border: 1px solid var(--main-color_profil);
}

.skill-bar-fill.profil,
.btn-repondre.profil {
    background: var(--main-color_profil) 0% 0% no-repeat padding-box;;
}

.cta-card.profil {
    background: transparent linear-gradient(0deg, var(--main-color_profil) 0%, #384373 100%) 0% 0% no-repeat padding-box;
}


.detail-item .detail-icon.mission,
.skills-title.mission,
.cv-title.mission,
.cta-btn-register.mission,
.btn-repondre.mission:hover,
.header-info.mission h1 {
    color: var(--main-color_mission);
}

.skill-bar.mission,
.btn-repondre.mission {
    border: 1px solid var(--main-color_mission);
}

.skill-bar-fill.mission,
.btn-repondre.mission {
    background: var(--main-color_mission) 0% 0% no-repeat padding-box;;
}

.cta-card.mission {
    background: transparent linear-gradient(0deg, var(--main-color_mission) 0%, #45A4A3 100%) 0% 0% no-repeat padding-box;
}


.detail-item .detail-icon.ao,
.skills-title.ao,
.cv-title.ao,
.cta-btn-register.ao,
.btn-repondre.ao:hover,
.header-info.ao h1,
.company-card.ao .cc-link,
.company-card.ao .cc-link svg {
    color: var(--main-color_ao);
}

.skill-bar.ao,
.btn-repondre.ao {
    border: 1px solid var(--main-color_ao);
}

.skill-bar-fill.ao {
    background: var(--main-color_ao) 0% 0% no-repeat padding-box;;
}

.btn-repondre.ao,
.cta-card.ao {
    background: transparent linear-gradient(0deg, var(--main-color_ao) 0%, #B70013 100%) 0% 0% no-repeat padding-box;
}

.card-skills {
    flex: 1;
}

.skills-title {
    font-size: calc(1* var(--basePX) + 5px);
    line-height: 1.2;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 20px;
}

.skills-grid.freelance {
    flex-wrap: wrap;
}

.skills-grid {
    display: flex;
    justify-content: space-around;
    align-items: end;
    gap: 10px;
}

.skills-grid.freelance .skill-item {
    flex: 0 0 20%;
}

.skill-item {
    text-align: center;
    flex: 0.25;
}

.skill-name {
    font-size: calc(1* var(--basePX) + 2px);
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
    color: var(--black);
    margin-bottom: 8px;
    text-transform: uppercase;
    word-break: break-word;
}
.skill-bar {
    height: 5px;
    background: #F1F9FF 0% 0% no-repeat padding-box;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.skill-bar-fill {
    height: 100%;
    border-radius: 3px;
}
.skill-level {
    font-size: calc(1* var(--basePX) + 3px);
    line-height: 1.2;
    color: var(--black);
}

/* ── Main content layout ── */
.cv-column {
    flex: 1;
    width: 100%;
}

.cv-title {
    font-size: calc(1* var(--basePX) + 10px);
    line-height: 1.2;
    font-family: 'Poppins-Medium', sans-serif;
    text-align: center;
    margin-bottom: 24px;
}

.cv-content {
    font-size: calc(1* var(--basePX) + 6px);
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
    color: var(--black);
    margin-bottom: 50px;
    word-break: break-word;
}

/* ── Right sidebar ── */
.right-column {
   max-width: 250px;
}

/* CTA card dark */

.cta-card.disabled {
    opacity: .65;
    cursor: not-allowed;
    pointer-events: none;
}

.cta-card {
    border-radius: 30px;
    padding: 24px 22px;
    text-align: center;
    color: #fff;
    margin-bottom: 28px;
    text-decoration: none;
}
a.cta-card svg {
    fill: var(--white);
    color: var(--white);
}
a.cta-card:hover {
    color: var(--white);
}
.cta-card h3 {
    font-size: calc(1* var(--basePX) + 6px);
    line-height: 1.2;
    font-family: 'Poppins-Medium', sans-serif;
    margin-bottom: 10px;
}
.cta-card p {
    font-size: calc(1* var(--basePX) + 4px);
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 18px;
}
.cta-btn-connect {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #fff;
    color: var(--black);
    border: none;
    border-radius: 30px;
    padding: 10px;
    font-size: calc(1* var(--basePX) + 5px);
    line-height: 1.2;
    font-family: 'Poppins-Medium', sans-serif;
    cursor: pointer;
    margin-bottom: 10px;
    text-decoration: none;
    transition: background 0.2s;
}
.cta-btn-connect:hover { 
    background: #f0f0f0; 
    color: #2a2a3a; 
    text-decoration: none; 
}
.cta-btn-connect .av {
    width: 22px; height: 22px;
    background: var(--black); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.cta-btn-register {
    display: block;
    width: 100%;
    background: var(--white);
    border: none;
    border-radius: 30px;
    padding: 10px;
    font-size: calc(1* var(--basePX) + 5px);
    line-height: 1.2;
    font-family: 'Poppins-Medium', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.cta-btn-register:hover { 
    background: var(--main-color_esn-forfait); 
    color: #fff; 
    text-decoration: none; 
}

.cta-btn-suscribe {
    display: block;
    width: 100%;
    background: var(--main-color_esn-forfait);
    border: 1px solid var(--main-color_esn-forfait);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 10px;
    font-size: calc(1* var(--basePX) + 5px);
    line-height: 1.2;
    font-family: 'Poppins-Medium', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.cta-btn-suscribe:hover { 
    background: var(--white); 
    color: var(--main-color_esn-forfait); 
    text-decoration: none; 
}

.btn-repondre-wrapper {
    text-align: center;
    margin-top: 24px;
}
.btn-repondre {
    color: var(--white);
    border-radius: 30px;
    padding: 14px 56px;
    font-size: calc(1* var(--basePX) + 6px);
    line-height: 1.2;
    font-family: 'Poppins-Medium', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 20px;
}
.btn-repondre:hover { 
    background: var(--white);
    text-decoration: none;
}

.header-info h1 {
    font-size: calc(1* var(--basePX) + 15px);
    line-height: 1.2;
    font-family: 'ClanOT', sans-serif;
    margin-bottom: 8px;
    text-transform: uppercase;
}

body.dark .header-meta {
    color: var(--white);
}

.header-meta {
    font-size: calc(1* var(--basePX) + 4px);
    line-height: 1.2;
    font-family: 'Poppins-Medium', sans-serif;
    color: var(--black);
    margin-bottom: 2px;
}

.header-consult {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: calc(1* var(--basePX) + 3px);
    line-height: 1.2;
    font-weight: bold;
    font-family: 'Calibri', sans-serif;
    color: #8C8C8D;
    margin-top: 12px;
}

.header-consult svg {
    width: 20px;
}

/* ── Company card (below CV) ── */
body.dark .company-card .cc-title,
body.dark .company-card .cc-name,
body.dark .company-card .cc-link {
    color: var(--white);
}

body.dark .company-card {
    background-color: var(--dark-gray);
}

.company-card {
    background: rgba(0, 110, 159, 0.08) 0% 0% no-repeat padding-box;
    border-radius: 20px;
    padding: 28px 32px;
    margin-top: 36px;
    margin-bottom: 30px;
    box-shadow: 0px 3px 6px #0000001A;
}
.company-card .cc-title {
    font-size: calc(1* var(--basePX) + 10px);
    line-height: 1.2;
    font-family: 'Poppins-Medium', sans-serif;
    color: #222222;
    text-align: center;
    margin-bottom: 20px;
}
.company-card .cc-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.company-card .cc-left {
    flex: 1;
    min-width: 220px;
}
.company-card .cc-stars {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.company-card .cc-stars svg {
    width:45px;
    height:45px;
    fill: var(--main-color_esn-forfait);
}
.company-card .cc-name {
    font-size: calc(1* var(--basePX) + 15px);
    line-height: 28px;
    font-family: 'Poppins-Medium', sans-serif;
    color: #222222;
    margin-bottom: 0px;
    
}
.company-card .cc-sub {
    font-size: calc(1* var(--basePX) + 5px);
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
    color: #7B7878;
}
.company-card .cc-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.company-card .cc-medaille {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.company-card .cc-medaille svg {
    stroke: none;
}

.company-card .cc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: calc(1* var(--basePX) + 5px);
    line-height: 1.2;
    font-family: 'Poppins-Medium', sans-serif;
    text-decoration: none;
    transition: color 0.2s;
}
.company-card .cc-link:hover { color: #1a6bba; text-decoration: underline; }
.company-card .cc-link svg { 
    flex-shrink: 0; 
    width: 32px;
}
/* Share section */
.share-section {
    text-align: center;
    margin-bottom: 28px;
}
.share-title {
    font-size: calc(1* var(--basePX) + 2px);
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 14px;
}
.share-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.share-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.2s;
}

/* Bottom info card */
.limit-card,
.promo-card {
    background: #F9F9F9 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #0000001A;
    border-radius: 20px;
    padding: 22px 20px;
    text-align: center;
    color: var(--black);
    font-size: calc(1* var(--basePX) + 2px);
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 30px;
}
.limit-card p { color: var(--main-color_ao); margin-bottom: 0;}
.promo-card p { margin-bottom: 12px; }
.promo-card p:last-child { margin-bottom: 0; }
.promo-card strong { color: var(--black); font-weight: bold; }

@media (min-width: 1200px) and (max-width: 1600px) {
    .info-cards-row { flex-direction: column; }
    

}
@media (min-width: 1200px) and (max-width: 1400px) {
    .skills-grid { flex-wrap: wrap; }
    .skill-item { flex: 0 0 45%; margin-bottom: 12px; }

}
@media (max-width: 1199.98px) {
    .right-column { flex: 1; width: 100%; margin: auto; max-width: fit-content;}
    .content-layout { flex-direction: column; }
    
}
@media (max-width: 991.98px) {
    .top-actions { position: static; flex-direction: row; margin-bottom: 24px; }
    .top-action-btn { border-radius: 30px; }
    .info-cards-row { flex-direction: column; }
    .card-details { flex: 1; }
    .floating-rail { display: none; }
}
@media (max-width: 575.98px) {
    .top-actions { flex-direction: column; }
    .skills-grid { flex-wrap: wrap; }
    .skills-grid.freelance .skill-item,
    .skill-item { flex: 0 0 45%; margin-bottom: 12px; }
    .company-card .cc-body { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 550px;
    }
}