/* ============================================================
   Nos Compétences — Frontend CSS v3
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --nos-comp-navy:  #1a2744;
    --nos-comp-muted: #6b7a99;
    --nos-comp-border:#e2e8f4;
    --nos-comp-card:  #ffffff;
}

.nos-comp-section {
    padding: 40px 20px 60px;
    font-family: 'DM Sans', sans-serif;
}

/* align-items: start — la clé pour éviter que les cartes s'étirent */
.nos-comp-grid {
    display: grid;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}
.nos-comp-grid--3 { grid-template-columns: repeat(2, 1fr); }
.nos-comp-grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
    .nos-comp-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .nos-comp-grid--3,
    .nos-comp-grid--2 { grid-template-columns: 1fr; }
}

.nos-comp-card {
    background: var(--nos-comp-card);
    border-radius: 18px;
    border: 1.5px solid var(--nos-comp-border);
    overflow: hidden;
    transition: box-shadow .3s, border-color .3s;
    cursor: pointer;
}
.nos-comp-card:hover {
    box-shadow: 0 8px 28px rgba(26,39,68,.10);
}
.nos-comp-card.is-open {
    border-color: var(--card-accent, #e85d26);
    box-shadow: 0 8px 28px rgba(26,39,68,.10);
}

.nos-comp-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 14px;
    user-select: none;
}
.nos-comp-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--icon-bg, #fff2ee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.nos-comp-card__title-wrap { flex: 1; min-width: 0; }
.nos-comp-card__title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--nos-comp-navy);
    line-height: 1.35;
}
.nos-comp-card__arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--nos-comp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--nos-comp-muted);
    flex-shrink: 0;
    transition: transform .3s, background .3s, border-color .3s, color .3s;
}
.nos-comp-card.is-open .nos-comp-card__arrow {
    transform: rotate(180deg);
    background: var(--card-accent, #e85d26);
    border-color: var(--card-accent, #e85d26);
    color: #fff;
}

.nos-comp-card__gauge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 14px;
}
.nos-comp-card__gauge-bar {
    flex: 1;
    height: 5px;
    background: #eef0f7;
    border-radius: 10px;
    overflow: hidden;
}
.nos-comp-card__gauge-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--card-accent, #e85d26);
    width: 0;
    transition: width 1s cubic-bezier(.4,0,.2,1);
}
.nos-comp-card__gauge-pct {
    font-size: 14px;
    font-weight: 600;
    color: var(--card-accent, #e85d26);
    min-width: 32px;
    text-align: right;
}

.nos-comp-card__tools-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 20px 16px;
}
.nos-comp-tools-more {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: #eef0f7;
    color: var(--nos-comp-muted);
    border: 1px dashed var(--nos-comp-border);
}

.nos-comp-card__body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .4s ease, opacity .3s ease;
}
.nos-comp-card.is-open .nos-comp-card__body {
    max-height: 2000px;
    opacity: 1;
}
.nos-comp-card__body-inner {
    border-top: 1px solid var(--nos-comp-border);
    padding: 18px 20px 22px;
}

.nos-comp-block-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: var(--nos-comp-muted) !important;
    margin: 0 0 10px !important;
}

.nos-comp-expertise {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #3a4666 !important;
    margin: 0 !important;
}

.nos-comp-divider {
    border: none !important;
    border-top: 1px solid var(--nos-comp-border) !important;
    margin: 16px 0 !important;
}

.nos-comp-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.nos-comp-tool-tag {
    font-size: 13.5px;
    font-weight: 500;
    padding: 3px 11px;
    border-radius: 20px;
    background: var(--icon-bg, #fff2ee);
    color: var(--card-accent, #e85d26);
    border: 1px solid rgba(0,0,0,.05);
    transition: background .2s, color .2s;
    cursor: default;
}
.nos-comp-tool-tag:hover {
    background: var(--card-accent, #e85d26);
    color: #fff;
}

.nos-comp-projects {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nos-comp-project {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8f9fd;
    border: 1px solid var(--nos-comp-border);
}
.nos-comp-project__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--card-accent, #e85d26);
    flex-shrink: 0;
    margin-top: 5px;
}
.nos-comp-project__desc {
    font-size: 16px !important;
    line-height: 1.65 !important;
    color: #3a4666 !important;
    margin: 0 !important;
}
