.about-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px; 
    margin-bottom: 100px;
}

.about-container {
    display: flex;
    width: 80%;
    gap: 30px;
    align-items: stretch;
}

.about-image {
    flex: 0 0 30%; 
    display: flex;
    border: 1px solid #10243D; 
    padding: 10px;
    display: inline-block;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
}


.about-title {
    font-size: 28px;
    font-family: "HelveticaMd";
    font-weight: 400;
    color: #10243D;
    margin-bottom: 15px;
}

.about-name {
    font-size: 22px;
    font-weight: 300;
    color: #CB9267;
    margin-top: -5px;
    margin-bottom: 15px;
}

.about-description {
    font-size: 18px;
    line-height: 1.4;
    color: #333;
    text-align: left;
}

.about-description b {
    font-weight: normal; 
    font-family: 'HelveticaMd';
}


/* Formations */
.formation-title {
    font-size: 22px;
    font-family: "HelveticaMd";
    font-weight: 300;
    color: #10243D;
    margin-top: 30px;
    margin-bottom: 10px;
}

.formation-line {
    width: 40%;
    height: 0.6px;
    background-color: #10243D;
    margin: 0;
}

.formation-list {
    list-style-type: disc;
    padding-left: 20px;
    color: #10243D;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* En-tête de page */
.page-header {
    text-align: center;
    margin-top: 100px; 
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 50px;
    font-family: "HelveticaMd";
    color: #10243D;
    margin: 0;
}

.header-line-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 12%;
    margin: 0px auto 40px auto;
}

.header-line {
    flex-grow: 1;
    height: 1px;
    background-color: #CB9267;
}

.header-image {
    margin: 20px;
    height: 20px;
    width: auto;
}

/* Blocs de compétences */
.info-blocks-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 100px;
    margin-top: 30px;
    justify-content: center;
}

.info-block {
    display: flex;
    width: 60vw; 
    height: max-content;
    border: 1px solid #10243D; 
}

.info-text {
    width: 75%;
    background-color: #F4F3EE;
    padding: 30px 30px 30px 10px;
    text-align: left;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #10243D;
}

.text-at-left {
    padding: 30px 10px 30px 30px;
}

.info-text-column {
    width: 75%;
    background-color: #F4F3EE;
    padding: 30px 30px 30px 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: left;
    font-size: 16px;
    color: #10243D;
}


.info-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.info-list li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 15px;
    color: #10243D;
}

.info-separator-line {
    list-style-type: none;
    border-bottom: 1px solid #CB9267;
    margin: 15px 0 15px 30px;
    height: 0;
    width: 30% ;
}

/* Pro skills */
.full-blue-banner {
    width: 100%;
    padding: 20px 10vw;
    padding-bottom: 10vh; 
    min-height: 500px;
    background-color: #EFE8DD;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.full-blue-banner .tag-icon {
    width: 24px !important;
    height: auto !important;
    margin-top: 4px;
}

.full-blue-banner .custom-list-item {
    text-align: left;
    font-size: 24px;
    margin-bottom: 15px;
    align-items: center;
}

/* Soft skills */
.triple-colored-container {
    display:flex;
    padding: 0 10vw;
    gap: 0;
    margin: 0; 
    justify-content: center;
}

.colored-box {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    min-height: 240px;
    width: 23vw; 
    height: 27vh;
    padding: 2vh 3vw;
    color: white;
    text-align: center;
    align-items: center;   
    justify-content: center; 
    font-size: max(14px, 1.2vmin);
    font-family: "HelveticaLt";
    box-sizing: border-box;
    border-top: 1px solid #10243D;
    border-bottom: 1px solid #10243D;
}


.colored-box-second-row {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    min-height: 240px;
    width: 23vw; 
    height: 27vh;
    padding: 2vh 3vw;
    color: white;
    text-align: center;
    align-items: center;   
    justify-content: center; 
    font-size:  max(14px, 1.2vmin);
    font-size:  "HelveticaLt";
    box-sizing: border-box;
    border-bottom: 1px solid #10243D;
    border-left: 1px solid #10243D;
    border-right: 1px solid #10243D;
}

.colored-box:first-child {
    border-left: 1px solid #10243D;
    border-top: 1px solid #10243D;
    border-right: 1px solid #10243D;
}

.colored-box:nth-child(2) {
    border-top: 1px solid #10243D;
}

/* Dernière box : droite + haut/bas */
.colored-box:last-child {
    border-right: 1px solid #10243D;
    border-left: 1px solid #10243D;
}

.box-title {
    font-size: clamp(14px, 2.5vw, 40px);
    font-family: "HelveticaRm";
    margin-bottom: 1vh;
    text-wrap: balance;
}

.box-description {
    font-size: clamp(12px, 1.6vw, 18px);
    font-weight: 300;
    line-height: 1.4;
    margin: 0;
    margin-bottom: 16px;
    text-wrap: pretty;
}

.golden {
    background-color: #CB9267;
}

.cream {
    background-color: #EFE8DD;
}

.dark-blue {
    background-color: #1B2A41;
}

.text-blue {
    color: #10243D;
}




/* TEST */
.achievements-section {
    width: 100vw;
    background-color: #e7e9ec; 
    padding: 20px 0;
    padding-bottom: 10vh;
    text-align: center;
}
  
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    grid-template-rows: repeat(2, auto);  
    gap: 40px 100px;
    width: 85vw;
    margin: 0 auto;
    padding: 0;
}
  
.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
  
.achievement-number {
    font-size: 50px;
    font-family: "HelveticaRm";
    color: #CB9267;
    margin-bottom: 10px;
}
  
.achievement-item p {
    font-size: max(14px, 1.8vmin);
    font-weight: 300;
    color: #333;
    line-height: 1.4;
    width: 15vw;
    text-align: center;
}



/* =================================== */
/* Mobile Adaptation          */
/* =================================== */

@media (max-width: 768px) {

    /* --- Page Header --- */
    .page-header {
        margin-bottom: 0px; /* Reduce top spacing */
    }

    .page-header h1 {
        font-size: 36px; 
    }

    .header-line-wrapper {
        width: 50%;
        margin-bottom: 0;
    }

    /* --- About Section (Profile) --- */
    .about-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 0px; 
        margin-bottom: 10px;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        width: 80%;
        gap: 10px;
    }

    .about-image {
        flex: 0 0 30vw;
        padding: 6px;
    }
    .about-image img {
        width: 100%;
        height: auto;
    }

    .about-text {
        width: 90%;
    }

    .about-title {
        font-size: 24px;
        text-align: center;
    }

    .about-name {
        font-size: 20px;
        text-align: center;
    }

    .about-description {
        font-size: 4vw;
    }
    
    .formation-title {
        text-align: center;
    }

    .formation-line {
        width:55%;
        margin: 0 auto; /* Center the line */
    }

    .formation-list {
        padding-left: 0px;
        line-height: 1.6;
    }

    /* --- Achievements Grid --- */
    .achievements-section {
        padding-bottom: 30px;
    }

    .achievements-grid {
        margin-top: 60px;
        grid-template-columns: repeat(1, 1fr); /* 2 columns for tablets */
        gap: 15px;
        width: 90vw;
    }

    .achievement-number {
        font-size: 9vw;
        font-weight: 600;
    }

    .achievement-item p {
        width: auto; 
        font-size: 14px;
        margin:0 auto; 
    }

    /* --- Soft Skills Boxes --- */
    .triple-colored-container {
        flex-direction: column;
        padding: 0; 
    }

    .colored-box,
    .colored-box-second-row {
        width: 100%; 
        height: auto;
        min-height: 90px;
        padding: 0 10px;
        border: 0.5px solid #10243D;
        border: 0.5px solid #10243D;
    }


    .box-title {
        font-size: 20px;
    }

    .box-description {
        font-size: 15px;
    }

    .big-white-banner-about {
        padding-bottom: 0;
        margin-bottom: 0;
    }


    /* --- Professional Skills Section --- */
    .full-blue-banner {
        padding: 40px 5vw;
    }

    .custom-list {
        padding-top: 20px;
    }

    .custom-list-item-blue {
        font-size: 4vw;
        text-align: left;
        align-items: flex-start;
    }

    .custom-list-item-blue span{
        font-size: 4vw;
    }

    .full-blue-banner .tag-icon {
        margin-right: 15px;
    }
}
