/* =======================
   Variables & Base
   ======================= */
* {
    box-sizing: border-box;
}
:root {
    --bilan-gradient: linear-gradient(to bottom right, #f16868 0%, #ffbf5e 40%, #a9ff62 100%);
}
html, body {
    min-height: 100vh;
    height: 100%;
    background: var(--bilan-gradient);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
body {
    padding-left: 75px;
}

@media (max-width: 900px) {
    body {
        padding-left: 0;
    }
}

/* =======================
   Présentation
   ======================= */
.HRnormal {
    color: black;
    margin: 0;
    padding: 0;
    border: 1px solid rgb(0, 0, 0);
    background-color: black;
}
.Presentation, .Presentation2 {
    padding-top: 10%;
    padding-bottom: 10%;
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    flex-direction: row;
    justify-content: center;
}
@media (max-height: 800px) {
    .Presentation {
        padding-bottom: 5%;
    }
}
.DescriptionPersonnel {
    background: linear-gradient(to right, #67B3E4 -30%, #95A3E0 100%);
}
.Description {
    padding-left: 0%;
}
@media (max-width: 1400px) {
    .Description {
        padding-left: 0;
    }
}
.TitrePresentation {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    align-content: center;
    text-align: center;
    flex-direction: row;
    justify-content: center;
    font-size: x-large;
    padding-top: 2%;
}
.TitrePresentation h1 {
    line-height: 150%;
    font-weight: bold;
    font-size: xx-large;
    text-align: center;
    padding: 0;
    padding-top: 4%;
}
.TitrePresentation hr {
    border: 1px solid black;
    background-color: black;
    width: 100px;
    justify-content: center;
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    margin: 0;
    padding-top: 0;
}
.TitrePresentation p {
    padding-top: 2%;
    line-height: 170%;
}

/* =======================
   Pop-up
   ======================= */
#content {
    position: absolute;
    top: 200%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    text-align: center;
    background-color: #e8eae6;
    box-sizing: border-box;
    border-radius: 10px;
    padding: 10px;
    z-index: 100;
    display: none;
}
#content > h1 {
    padding: 2%;
}
#content > button {
    margin: 2%;
    padding: 1%;
}

/* =======================
   Memory Game
   ======================= */
.wrap {
    position: relative;
    height: 100%;
    min-height: 500px;
    padding-bottom: 20px;
}
.game {
    transform-style: preserve-3d;
    perspective: 500px;
    min-height: 100%;
    height: 100%;
}
@-webkit-keyframes matchAnim {
    0% { background: #bcffcc; }
    100% { background: white; }
}
@keyframes matchAnim {
    0% { background: #bcffcc; }
    100% { background: white; }
}
.card {
    float: left;
    width: 25%;
    height: 25%;
    padding: 5px;
    text-align: center;
    display: block;
    perspective: 500px;
    position: relative;
    cursor: pointer;
    z-index: 50;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@media (max-width: 800px) {
    .card {
        width: 25%;
        height: 16.666%;
    }
}
.card .inside {
    width: 100%;
    height: 100%;
    display: block;
    transform-style: preserve-3d;
    transition: 0.4s ease-in-out;
    background: white;
}
.card .inside.picked,
.card .inside.matched {
    transform: rotateY(180deg);
}
.card .inside.matched {
    -webkit-animation: 1s matchAnim ease-in-out;
    animation: 1s matchAnim ease-in-out;
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}
.card .front,
.card .back {
    border: 1px solid black;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
}
.card .front img,
.card .back img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    max-height: 100%;
}
.card .front {
    transform: rotateY(-180deg);
}
@media (max-width: 800px) {
    .card .front {
        padding: 5px;
    }
}
.card .back {
    transform: rotateX(0);
}
@media (max-width: 800px) {
    .card .back {
        padding: 10px;
    }
}

/* =======================
   Modale (popup de victoire)
   ======================= */
.modal-overlay {
    display: none;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.modal {
    display: none;
    position: relative;
    width: 500px;
    height: 500px;
    max-height: 90%;
    max-width: 90%;
    min-height: 380px;
    margin: 0 auto;
    background: white;
    top: 50%;
    transform: translateY(-50%);
    padding: 30px 10px;
}
.modal .winner {
    font-size: 80px;
    text-align: center;
    font-family: "Anton", sans-serif;
    color: #4d4d4d;
    text-shadow: 0px 3px 0 black;
}
@media (max-width: 480px) {
    .modal .winner {
        font-size: 60px;
    }
}
.modal .restart {
    font-family: "Anton", sans-serif;
    margin: 30px auto;
    padding: 20px 30px;
    display: block;
    font-size: 30px;
    border: none;
    background: #4d4d4d;
    background: linear-gradient(#4d4d4d, #222);
    border: 1px solid #222;
    border-radius: 5px;
    color: white;
    text-shadow: 0px 1px 0 black;
    cursor: pointer;
}
.modal .restart:hover {
    background: linear-gradient(#222, black);
}
.modal .message {
    text-align: center;
}
.modal .message a {
    text-decoration: none;
    color: #28afe6;
    font-weight: bold;
}
.modal .message a:hover {
    color: #56c0eb;
    border-bottom: 1px dotted #56c0eb;
}
.modal .share-text {
    text-align: center;
    margin: 10px auto;
}
.modal .social {
    margin: 20px auto;
    text-align: center;
}
.modal .social li {
    display: inline-block;
    height: 50px;
    width: 50px;
    margin-right: 10px;
}
.modal .social li:last-child {
    margin-right: 0;
}
.modal .social li a {
    display: block;
    line-height: 50px;
    font-size: 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.modal .social li a.facebook {
    background: #3b5998;
}
.modal .social li a.facebook:hover {
    background: #4c70ba;
}
.modal .social li a.google {
    background: #D34836;
}
.modal .social li a.google:hover {
    background: #dc6e60;
}
.modal .social li a.twitter {
    background: #4099FF;
}
.modal .social li a.twitter:hover {
    background: #73b4ff;
}
.CodePen {
    height: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 0;
}
.CodePen .disclaimer {
    line-height: 20px;
    font-size: 12px;
    color: #727272;
    text-align: center;
}
@media (max-width: 767px) {
    .CodePen .disclaimer {
        font-size: 8px;
    }
}

/* =======================
   Icônes
   ======================= */
.icon img {
    display: inline-block;
    vertical-align: middle;
}
.icon-home img           { width: 33px; height: 28px; }
.icon-entreprise img     { width: 37px; height: 32px; }
.icon-realisationpro img { width: 37px; height: 35px; }
.icon-veilletechno img   { width: 37px; height: 36px; }
.icon-skills img         { width: 37px; height: 35px; }
.icon-outils img         { width: 40px; height: 37px; }

/* =======================
   Carousel Compétences
   ======================= */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 0 auto;
    max-width: 1100px;
    width: 80vw;
    background: url('/images/Bilan/fondcaroucelle.jpg') center/cover no-repeat;
    border-radius: 34px 20px 24px 24px;
    box-shadow: 0 8px 32px rgba(103,179,228,0.10), 0 2px 8px rgba(34,34,34,0.07);
    padding: 40px 24px 32px 24px;
    position: relative;
    min-height: 500px;
    margin-top: 80px;
    transition: all 0.3s;
}
/* Responsive : adapte la marge si la navbar change de place */
@media (max-width: 768px) {
    .carousel-container {
        margin-top: 70px; /* Ajuste selon la hauteur de la navbar mobile */
    }
}
.carousel-btn {
    background: #fff;
    border: none;
    color: #67B3E4;
    font-size: 3.5rem;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    box-shadow: 0 2px 8px rgba(103,179,228,0.10);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.carousel-btn.prev { left: 24px; }
.carousel-btn.next { right: 24px; }
.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 420px;
}
.carousel-slide {
    display: none;
    justify-content: center;
    align-items: center;
}
.carousel-slide.active {
    display: flex;
}
.flip-card {
    background: transparent;
    width: 90vw;           /* Largeur relative */
    max-width: 520px;      /* Largeur max */
    min-width: 220px;
    height: 340px;
    perspective: 1200px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 600px) {
    .flip-card {
        width: 98vw;
        height: 220px;
        min-width: 0;
        max-width: 100vw;
    }
    .carousel-container {
        padding: 12px 0;
        min-height: 220px;
    }
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(.4,2,.6,1);
    transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 36px 32px;
    font-size: 1.5em;
    box-sizing: border-box;
    overflow: visible;
    text-align: center;
}
.flip-card-front {
    background: #fff;
    color: #222;
    font-weight: bold;
    font-size: 2.2em;
    justify-content: center;
}
.flip-card-back {
    background: #67B3E4;
    color: #fff;
    transform: rotateY(180deg);
    font-size: 1.1em;
    justify-content: flex-start;
}
.flip-card-back img {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.flip-card-back p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* =======================
   Compétences linguistiques & prog
   ======================= */
.lang-skills {
    max-width: 500px;
    margin: 40px auto 0 auto;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.lang-skills h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}
.lang-bar {
    margin-bottom: 18px;
}
.lang-label {
    display: inline-block;
    width: 90px;
    font-weight: 600;
    color: #222;
}
.progress-bar {
    display: inline-block;
    vertical-align: middle;
    width: 65%;
    height: 22px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-left: 10px;
}
.progress {
    height: 100%;
    line-height: 22px;
    color: #fff;
    font-weight: 600;
    text-align: right;
    padding-right: 10px;
    border-radius: 12px 0 0 12px;
    transition: width 1s;
}