:root {
    --background-color: #F8F9FA;
    --text-color: #333;
    --title-color: #444;
    --card-background: white;
    --card-border: #E0E0E0;
    --card-shadow-dark: rgba(0, 0, 0, 0.1);
    --card-shadow-light: rgba(255, 255, 255, 0.8);
    --card-hover-shadow-dark: rgba(0, 0, 0, 0.15);
    --card-hover-shadow-light: rgba(255, 255, 255, 0.9);
    --link-color: #007BFF;
    --link-hover-color: #0056b3;
    --diplome-bg-color: #d4b0f4;
    --wip: #ff9900;
    --wip-light: #ffd9a1;
    --done: #28a745;
    --done-light: #7cd98c;
    --highlight-accent: #f59e0b;
    --highlight-accent-soft: #ffedd5;
    --rubalise-height: 32px;
}

/* Style général */
body {
    background-color: var(--background-color);
    font-family: 'OpenSans', sans-serif;
    color: var(--text-color);
    text-align: center;
    padding: 24px 20px 20px 20px;
    overflow-x: hidden;
}

.has-rubalise {
    padding-top: calc(24px + var(--rubalise-height));
}

/* Rubalise (page en developpement) */
.rubalise {
    background: repeating-linear-gradient(-45deg,
            #f6d32d 0,
            #f6d32d 18px,
            #111 18px,
            #111 36px);
    background-size: 200% 100%;
    animation: rubalise-slide 50s linear infinite;
    border-radius: 0;
    box-shadow: rgb(152, 152, 152) 0 4px 0px 0px, #5d5d5d 0 3px 3px 0px;
    margin: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: var(--rubalise-height);
    padding: 0 12px;
    position: fixed;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rubalise--top {
    top: 0;
    left: 0;
    z-index: 1000;
}

.rubalise-text {
    display: inline-block;
    background: rgba(17, 17, 17, 0.85);
    color: #fff;
    padding: 3px 12px;
    border-radius: 6px;
    font-weight: bold;
    letter-spacing: 0.40em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

@keyframes rubalise-slide {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

@media screen and (max-width: 550px) {

    /* Rubalise (page en developpement) */
    .rubalise {
        background: repeating-linear-gradient(-45deg,
                #f6d32d 0,
                #f6d32d 18px,
                #111 18px,
                #111 36px);
        background-size: 200% 100%;
        animation: rubalise-slide 50s linear infinite;
        border-radius: 0;
        box-shadow: rgb(152, 152, 152) 0 4px 0px 0px, #5d5d5d 0 3px 3px 0px;
        margin: 0;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        height: var(--rubalise-height);
        padding: 0 12px;
        position: fixed;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body {
        padding: 24px 10px 20px 10px;
    }

    .card-border {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .rubalise-text {
        display: inline-block;
        background: rgba(17, 17, 17, 0.85);
        color: #fff;
        padding: 3px 12px;
        border-radius: 6px;
        font-weight: bold;
        letter-spacing: 0.40em;
        text-transform: uppercase;
        font-size: 0.62rem;
    }

    @keyframes rubalise-slide {
        0% {
            background-position: 100% 0;
        }

        100% {
            background-position: 0 0;
        }
    }
}

/* Importation de la police OpenSans */
@font-face {
    font-family: 'OpenSans';
    src: url('res/font/Open_Sans/OpenSans.ttf') format('truetype');
}

p {
    font-family: 'OpenSans';
    margin: 0px;
}

/* Styles pour les cartes */
.card-border {
    background: var(--card-background);
    border-radius: 6px;
    background-color: #f0f0f0;
    box-shadow: rgb(152, 152, 152) 0 5px 0px 0px, #5d5d5d 0 4px 4px 0px;
    transition: box-shadow 0.15s, transform 0.15s;
}

/* Styles pour les images avec bordure */
.img-border {
    background: var(--card-background);
    border-radius: 6px;
    box-shadow: rgb(128, 128, 128) 0 3px 0px 0px, #3f3f3f 0 3px 2px 0px;
    transition: box-shadow 0.15s, transform 0.15s;
}

/* ========== Banner Styles ========== */
.banner {
    background-color: #f0f0f0;
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    max-width: fit-content;
    width: 650px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 768px) {
    .banner {
        flex-direction: row;
        gap: 12px;
        padding: 12px;
    }
}

/* Style du texte de la bannière */
.banner-text {
    text-align: justify;
    line-height: 1.6;
    font-size: 0.98rem;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .banner-text {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media screen and (max-width: 550px) {
    .banner-text {
        font-size: 12px;
        text-align: left;
    }
}

.panneau {
    background-color: var(--diplome-bg-color);
    box-shadow: rgb(128, 128, 128) 0 3px 0px 0px, #3f3f3f 0 3px 2px 0px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 6px;
    line-height: 28px;
    margin-top: 10px;
    padding: 0 12px;
    display: block;
    width: 200px;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .panneau {
        font-size: 10px;
        border-radius: 3px;
        line-height: 14px;
        margin-top: 10px;
        padding: 0 12px;
        display: block;
        width: 120px;
    }
}

.banner img {
    width: 200px;
    height: auto;
    display: block;
}

@media screen and (max-width: 768px) {
    .banner img {
        width: 120px;
        height: auto;
        display: block;
    }
}

/* Titre principal */
.title {
    font-size: 30px;
    color: var(--title-color);
    margin-bottom: 20px;
}

/* Responsive pour le titre principal */
@media screen and (max-width: 550px) {
    .title {
        font-size: 24px;
        margin-bottom: 10px;
    }
}

/*###################################################*/
/*################ Style des projets ################*/
/*###################################################*/

/* Conteneur des projets */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Styles principaux pour main et sections */
main {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

section {
    margin: 20px 0;
    width: 100%;
}

section.activities {
    max-width: 100%;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* Cartes de projet */
.project-card2 {
    position: relative;
    background: var(--card-background);
    padding: 20px;
    padding-top: 50px;
    border-radius: 6px;
    width: 350px;
    height: fit-content;
    min-height: fit-content;
    background-color: #f0f0f0;
    box-shadow: rgb(152, 152, 152) 0 5px 0px 0px, #5d5d5d 0 4px 4px 0px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Titre des cartes de projet */
.project-card2 h3 {
    color: var(--link-color);
    margin: 0px;
}

/* Description des cartes de projet */
.project-card2 .card-text {
    position: relative;
    line-height: 1.4em;
    min-height: calc(1.4em * 4);
    max-height: calc(1.4em * 4);
    /* hauteur pour 4 lignes de texte */
    overflow: hidden;
    transition: 0.45s ease;
    flex: 0 0 auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Expansion de la description au survol */
.project-card2:hover .card-text {
    max-height: calc(1.4em * 20);
}

/* Effet au survol des cartes */
.project-card2:hover {
    box-shadow: rgb(152, 152, 152) 0 8px 0px 0px, #5d5d5d 0 8px 8px 0px;
    transform: translateY(-5px);
}

/* Effet au clic sur les cartes */
.project-card2:active {
    box-shadow: rgb(152, 152, 152) 0 2px 0px 0px, #5d5d5d 0 2px 2px 0px;
    transform: translateY(2px);
}

/* Bandeau Terminé */
.project-card2:not(.wip)::before {
    content: "Terminé";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-image: radial-gradient(100% 100% at 100% 0, var(--done-light) 0, var(--done) 100%);
    font-family: "OpenSans", monospace;
    font-weight: bold;
    z-index: 3;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    box-shadow: rgba(58, 65, 111, 0.08) 0 2px 0 inset;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
}

/* Bandeau WIP */
.project-card2.wip::before {
    content: "WIP";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-image: radial-gradient(100% 100% at 100% 0, var(--wip-light) 0, var(--wip) 100%);
    font-family: "OpenSans", monospace;
    font-weight: bold;
    z-index: 3;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    box-shadow: rgba(58, 65, 111, 0.08) 0 2px 0 inset;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
}

/* Responsive pour les cartes de projet */
@media screen and (max-width: 550px) {

    /* Cartes de projet */
    .project-card2 {
        position: relative;
        background: var(--card-background);
        padding: 10px;
        padding-top: 40px;
        border-radius: 6px;
        width: 350px;
        height: fit-content;
        min-height: fit-content;
        background-color: #f0f0f0;
        box-shadow: rgb(152, 152, 152) 0 5px 0px 0px, #5d5d5d 0 4px 4px 0px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* Titre des cartes de projet */
    .project-card2 h3 {
        font-size: 16px;
        color: var(--link-color);
        margin: 0px;
    }

    /* Description des cartes de projet */
    .project-card2 .card-text {
        position: relative;
        font-size: 14px;
        line-height: 1.4em;
        min-height: calc(1.4em * 4);
        max-height: fit-content;
        /* hauteur pour 4 lignes de texte */
        flex: 0 0 auto;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    /* Effet au survol des cartes */
    .project-card2:hover {
        box-shadow: rgb(152, 152, 152) 0 8px 0px 0px, #5d5d5d 0 8px 8px 0px;
        transform: translateY(-5px);
    }

    /* Effet au clic sur les cartes */
    .project-card2:active {
        box-shadow: rgb(152, 152, 152) 0 2px 0px 0px, #5d5d5d 0 2px 2px 0px;
        transform: translateY(2px);
    }

    /* Bandeau Terminé */
    .project-card2:not(.wip)::before {
        content: "Terminé";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background-image: radial-gradient(100% 100% at 100% 0, var(--done-light) 0, var(--done) 100%);
        font-family: "OpenSans", monospace;
        font-weight: bold;
        z-index: 3;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        box-shadow: rgba(58, 65, 111, 0.08) 0 2px 0 inset;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 0.95rem;
    }

    /* Bandeau WIP */
    .project-card2.wip::before {
        content: "WIP";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background-image: radial-gradient(100% 100% at 100% 0, var(--wip-light) 0, var(--wip) 100%);
        font-family: "OpenSans", monospace;
        font-weight: bold;
        z-index: 3;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        box-shadow: rgba(58, 65, 111, 0.08) 0 2px 0 inset;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 0.95rem;
    }

    .project-card2 {
        display: flex;
        flex-direction: column;
    }

    .project-card2 .button-29 {
        margin-top: auto;
        align-self: center;
        /* utiliser flex-start ou stretch si vous voulez l'aligner autrement */
    }
    
    /* Si plusieurs boutons on ajoute une marge pour les espacer */
    .project-card2 .button-29 + .button-29 {
        margin-top: 10px;
    }

}

/*###################################################*/
/*################ Style des boutons ################*/
/*###################################################*/
/* https://getcssscan.com/css-buttons-examples */
.button-29 {
    align-items: center;
    appearance: none;
    background-image: radial-gradient(100% 100% at 100% 0, #5adaff 0, #5468ff 100%);
    border: 0;
    border-radius: 6px;
    box-shadow: rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, rgba(58, 65, 111, .5) 0 -3px 0 inset;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: "OpenSans", monospace;
    font-weight: bold;
    height: 48px;
    justify-content: center;
    line-height: 1;
    list-style: none;
    overflow: hidden;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    text-align: left;
    text-decoration: none;
    transition: box-shadow .15s, transform .15s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    will-change: box-shadow, transform;
    font-size: 18px;
}

.button-29:focus {
    box-shadow: #3c4fe0 0 0 0 1.5px inset, rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset;
}

.button-29:hover {
    box-shadow: rgba(45, 35, 66, .4) 0 4px 8px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset;
    transform: translateY(-2px);
}

.button-29:active {
    box-shadow: #3c4fe0 0 3px 7px inset;
    transform: translateY(2px);
}

.inactive {
    opacity: 0.5;
    pointer-events: none;
}

/*###################################################*/
/*################ Style de la navbar ###############*/
/*###################################################*/
.navbar {
    background: var(--card-background);
    padding: 15px 30px;
    margin-bottom: 30px;
    border-radius: 6px;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,
        rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
        rgba(58, 65, 111, 0.5) 0 -3px 0 inset;
    transition: box-shadow 0.15s, transform 0.15s;
}

.navbar:hover {
    box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px,
        rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
        rgba(58, 65, 111, 0.5) 0 -3px 0 inset;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.brand-text {
    font-family: 'OpenSans', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.brand-link:hover .brand-text {
    color: var(--link-color);
}

.navbar-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-button {
    height: 42px !important;
    font-size: 16px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/*###################################################*/
/*############### Style du menu hamburger ###########*/
/*###################################################*/
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.navbar-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/*###################################################*/
/*########### Style responsive de la navbar #########*/
/*###################################################*/
@media screen and (max-width: 550px) {
    .navbar {
        padding: 15px 20px;
    }

    .brand-text {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-links {
        position: absolute;
        top: 75px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: 90%;
        max-width: 400px;
        background: var(--card-background);
        flex-direction: column;
        padding: 20px;
        border-radius: 6px;
        box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px,
            rgba(45, 35, 66, 0.3) 0 7px 13px -3px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 999;
    }

    .navbar-links.active {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: all;
    }

    .nav-button {
        width: 100%;
        text-align: center;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .navbar-logo {
        height: 35px;
    }
}

/*###################################################*/
/*################# Style du footer #################*/
/*###################################################*/
#footer-container {
    width: 100%;
    display: block;
}

.footer {
    background: var(--card-background);
    color: var(--text-color);
    padding: 14px 20px;
    /* moins de padding vertical et horizontal */
    font-family: 'OpenSans', Arial, sans-serif;
    border-radius: 6px;
    max-width: 1200px;
    margin: 30px auto 30px auto;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,
        rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
        rgba(58, 65, 111, 0.5) 0 -3px 0 inset;
    transition: box-shadow 0.15s, transform 0.15s;
}

.footer:hover {
    box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px,
        rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
        rgba(58, 65, 111, 0.5) 0 -3px 0 inset;
    transform: translateY(-2px);
}

/* Disposition principale du footer */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* aligne verticalement au centre */
    gap: 12px;
    /* réduit l'espace entre colonnes */
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

.footer-message {
    font-size: 0.9rem;
    /* même taille que le texte côté droit */
    color: var(--text-color);
    margin: 0 0 0px 0;
    /* aucun espace inutile */
    line-height: 1.5;
    font-weight: 400;
    /* aligné avec le texte de droite */
    font-family: 'OpenSans', Arial, sans-serif;
}

.footer-links {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    /* garder sur une seule ligne en desktop */
    white-space: nowrap;
    gap: 10px;
    /* un peu moins d'espace pour réduire la hauteur visuelle */
    line-height: 1.1;
}

.footer-links a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--link-hover-color);
}

.footer-links a i {
    margin-right: 6px;
}

.footer-right p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 400;
    /* aligné avec le message de gauche */
    line-height: 1.5;
    font-family: 'OpenSans', Arial, sans-serif;
}

/*##################################################*/
/*########### Style responsive du footer ###########*/
/*##################################################*/
@media screen and (max-width: 600px) {
    .footer-row {
        flex-direction: column;
        gap: 0px;
        align-items: stretch;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        /* autoriser le retour à la ligne sur mobile */
        white-space: normal;
        justify-content: center;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    .footer-right p {
        font-size: 10px;
    }

    .footer-left p {
        font-size: 14px;
    }
}

/*#########################################################*/
/*############### Style de la page À propos ###############*/
/*#########################################################*/

/*##########################*/
/* Bannière d'introduction #*/
/*##########################*/
.about-intro {
    margin-bottom: 40px;
}

.intro-card {
    padding: 20px;
    background-color: #f0f0f0;
}

.intro-text h2 {
    color: var(--title-color);
    font-size: 2em;
    margin-bottom: 20px;
    margin-top: 0px;
}

.intro-text p {
    text-align: justify;
    line-height: 1.5;
    font-size: 16px;
    color: #444;
}

/*##########################*/
/*#Responsive de la bannière*/
/*##########################*/
@media screen and (max-width: 550px) {
    .about-intro {
        margin-bottom: 20px;
    }

    .intro-card {
        padding: 10px;
        background-color: #f0f0f0;
    }

    .intro-text h2 {
        color: var(--title-color);
        font-size: 22px;
        margin-bottom: 10px;
        margin-top: 0px;
    }

    .intro-text p {
        text-align: center;
        line-height: 1.5;
        font-size: 14px;
        color: #444;
    }
}

/*##########################*/
/*#### Carte de section ####*/
/*##########################*/
/* Style des colonnes */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.section-card {
    padding: 20px;
    background-color: #f0f0f0;
    height: 100%;
}

/* Titre Formations / Expériences */
.section-card h2 {
    margin-top: 0px;
    color: var(--title-color);
    font-size: 28px;
}

.section-card h2 i {
    color: var(--link-color);
}

/*##########################*/
/*## Liste de formations ###*/
/*##########################*/
.education-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.year-badge {
    display: inline-block;
    background: var(--link-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.education-item h3 {
    color: var(--title-color);
    font-size: 1.3em;
    margin-bottom: 8px;
    margin-top: 5px;
}

/*##########################*/
/*# Style de l'institution #*/
/*##########################*/
.institution {
    color: #666;
    font-style: italic;
    margin-bottom: 8px;
    font-size: 12px;
}

.details {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 16px;
}

/*##########################*/
/*###Liste d'expériences####*/
/*##########################*/
.experience-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-header {
    align-items: center;
    margin-bottom: 10px;
}

.experience-header .year-badge {
    margin-bottom: 5px;
    flex-shrink: 0;
    align-self: center;
    line-height: 1.3em;
}

.experience-item h3 {
    color: var(--title-color);
    font-size: 1.3em;
    margin-bottom: 0;
    margin-top: 0;
    flex: 0 1 auto;
    line-height: 1.3em;
    white-space: nowrap;
}

.company {
    color: var(--link-color);
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.location {
    color: #666;
    font-style: italic;
    margin-bottom: 8px;
    font-size: 12px;
}

.description {
    text-align: justify;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.experience-list {
    margin: 8px 0 12px 20px;
    padding: 0;
    color: #555;
}

/* Liste des responsabilités ou réalisations */
.experience-list li {
    line-height: 1.6;
    margin-bottom: 6px;
    text-align: left;
}

/* Style d'affichage des tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Style des tags */
.tag {
    background: var(--link-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
}

/*############################*/
/*# Responsive des sections  #*/
/*############################*/
@media screen and (max-width: 550px) {

    /* Style des colonnes */
    .two-columns {
        grid-template-columns: 1fr;
    }

    .section-card {
        padding: 10px;
        height: fit-content;
    }

    /* Titre Formations / Expériences */
    .section-card h2 {
        font-size: 22px;
    }

    /*##########################*/
    /*## Liste de formations ###*/
    /*##########################*/
    .education-item {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .year-badge {
        padding: 3px 8px;
        font-size: 14px;
    }

    .education-item h3 {
        font-size: 16px;
        margin-bottom: 0px;
        margin-top: 5px;
    }

    /*##########################*/
    /*# Style de l'institution #*/
    /*##########################*/
    .institution {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .details {
        font-size: 14px;
    }

    /*##########################*/
    /*###Liste d'expériences####*/
    /*##########################*/
    .experience-item {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .experience-header {
        align-items: center;
        margin-bottom: 10px;
    }

    .experience-header .year-badge {
        margin-bottom: 5px;
        flex-shrink: 0;
        align-self: center;
        line-height: 1.3em;
    }

    .experience-item h3 {
        color: var(--title-color);
        font-size: 16px;
    }

    .company {
        margin-bottom: 0px;
        font-size: 12px;
    }

    .location {
        margin-bottom: 0px;
        font-size: 10px;
    }

    .description {
        text-align: justify;
        line-height: 1.6;
        color: #555;
        margin-bottom: 10px;
        font-size: 14px;
    }

    .experience-list {
        margin: 8px 0 12px 20px;
        padding: 0;
        color: #555;
        font-size: 14px;
    }

    .experience-list li {
        margin-bottom: 0px;
    }

    /* Style d'affichage des tags */
    .tags {
        gap: 4px;
    }

    /* Style des tags */
    .tag {
        padding: 2px 6px;
        font-size: 12px;
    }
}

/*##########################*/
/*# Section de compétences #*/
/*##########################*/

/* Skills Section */
.skills-section {
    margin-top: 120px;
    margin-bottom: 40px;
}

/* Titre de la section */
.section-title {
    color: var(--title-color);
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-title i {
    color: var(--link-color);
}

/* Conteneur des compétences */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Carte de compétence */
.skill-card {
    padding: 30px;
    background-color: #f0f0f0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet au survol de la carte de compétence */
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: rgb(152, 152, 152) 0 8px 0px 0px, #5d5d5d 0 8px 8px 0px !important;
}

/* Icône de compétence */
.skill-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

/* Titre de la compétence */
.skill-card h3 {
    color: var(--title-color);
    font-size: 1.3em;
    margin-bottom: 15px;
}

/* Style de liste des tags de compétence */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Style des tags de compétence */
.skill-tag {
    background: white;
    color: var(--text-color);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.9em;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

/* Effet au survol des tags de compétence */
.skill-tag:hover {
    background: var(--link-color);
    color: white;
    border-color: var(--link-color);
}

/* Interests Section */
.interests-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.interest-card {
    padding: 30px;
    background-color: #f0f0f0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-5px);
    box-shadow: rgb(152, 152, 152) 0 8px 0px 0px, #5d5d5d 0 8px 8px 0px !important;
}

.interest-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.interest-card h3 {
    color: var(--title-color);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.interest-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Contact Section */
.contact-section {
    margin-top: 60px;
    padding: 40px;
    background-color: #f0f0f0;
    text-align: center;
}

.contact-section h2 {
    color: var(--title-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-section h2 i {
    color: var(--link-color);
}

.contact-text {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-buttons .button-29 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media screen and (max-width: 600px) {
    .interests-grid {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-buttons .button-29 {
        width: 200px;
    }
}

/*#########################################################*/
/*################# Style de la page BAFA #################*/
/*#########################################################*/

/*##########################*/
/*###### Expériences #######*/
/*##########################*/
/* Style du container */

.experiences-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.experiences-container h2 {
    font-size: 14px;
    margin: 0;
}

.experiences-container p {
    font-size: 10px;
}

.experiences-container .card-border {
    padding: 12px;
    width: 350px;
    max-width: 200px;
}

/* Responsive - Tablet */
@media screen and (max-width: 768px) {
    .experiences-container {
        gap: 15px;
    }

    .experiences-container .card-border {
        width: 45%;
        max-width: none;
    }
}

/* Responsive - Mobile */
@media screen and (max-width: 550px) {
    .experiences-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .experiences-container h2 {
        font-size: 14px;
    }

    .experiences-container p {
        font-size: 10px;
    }

    .experiences-container .card-border {
        width: 100%;
        max-width: none;
        padding: 12px;
    }
}

/* Responsive - Mobile très petit */
@media screen and (max-width: 380px) {
    .experiences-container {
        gap: 10px;
    }

    .experiences-container .card-border {
        padding: 10px;
    }

    .experiences-container h2 {
        font-size: 13px;
    }

    .experiences-container p {
        font-size: 9px;
    }
}

.activities-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px auto;
    max-width: 100%;
}

.activities-container.single-category-view {
    grid-template-columns: minmax(0, 1fr);
}

.activities-container.single-category-view .activity-category-panel {
    grid-column: 1 / -1;
}

/* Responsive - Large Tablet */
@media screen and (max-width: 968px) {
    .activities-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin: 16px auto;
    }
}

/* Responsive - Tablet/Mobile */
@media screen and (max-width: 640px) {
    .activities-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 16px auto;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-items: center;
    }

    .activities-container .activity-category-panel {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
}

.activities-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
    padding: 14px 18px;
    background: white;
}

.activities-filter label {
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
}

.activities-filter select {
    min-width: 240px;
    padding: 8px 12px;
    border: 1px solid #d3d7de;
    border-radius: 6px;
    background: #fff;
    color: var(--text-color);
    font-size: 0.95em;
}

/* Responsive - Tablet */
@media screen and (max-width: 768px) {
    .activities-filter {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
        margin: 16px auto;
        width: 100%;
        box-sizing: border-box;
    }

    .activities-filter label {
        margin-bottom: 8px;
        font-size: 0.95em;
    }

    .activities-filter select {
        width: 100%;
        min-width: none;
    }
}

/* Responsive - Mobile */
@media screen and (max-width: 550px) {
    .activities-filter {
        align-items: flex-start;
        padding: 12px;
        margin: 12px auto;
        width: 100%;
        box-sizing: border-box;
    }

    .activities-filter label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.92em;
    }

    .activities-filter select {
        width: 100%;
        min-width: 0;
        font-size: 16px;
        padding: 10px 12px;
    }
}

/* Responsive - Mobile très petit */
@media screen and (max-width: 380px) {
    .activities-filter {
        padding: 10px;
        margin: 10px 0;
    }

    .activities-filter label {
        font-size: 0.88em;
        margin-bottom: 6px;
    }

    .activities-filter select {
        font-size: 16px;
        padding: 10px 10px;
    }
}

.activities-container .activity-category-panel.is-hidden,
.activities-container .activity-category-panel[hidden] {
    display: none;
}

.activities-container .activity-category-panel {
    margin-left: auto;
    margin-right: auto;
}

.activities-container h3 {
    margin: 0 0 15px 0;
    color: var(--link-color);
    font-size: 1.3em;
    text-align: center;
}

.activities-container .card-border {
    padding: 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    background: white;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive - Mobile */
@media screen and (max-width: 550px) {
    .activities-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 16px auto;
        justify-content: center;
    }

    .activities-container h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .activities-container .card-border {
        padding: 14px;
        min-height: auto;
        width: 100%;
    }
}

/* Responsive - Mobile très petit */
@media screen and (max-width: 380px) {
    .activities-container h3 {
        font-size: 1em;
    }

    .activities-container .card-border {
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .activities-container {
        margin: 12px auto;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }
}

/* Carte d'activité BAFA */
.activity-card {
    position: relative;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 4px solid var(--link-color);
    transition: all 0.3s ease;
}

.activity-card:hover {
    box-shadow: rgba(45, 35, 66, 0.15) 0 4px 12px;
    transform: translateX(3px);
    background: white;
}

.activity-card:active {
    background: #f0f0f0;
}

.activity-card-highlighted {
    border-left-color: var(--highlight-accent);
    background: linear-gradient(180deg, var(--highlight-accent-soft) 0%, #fff 100%);
}

.activity-badge-highlighted {
    display: inline-block;
    margin: 0 0 8px 0;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--highlight-accent);
    color: #fff;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.activity-card h4 {
    margin: 0 0 8px 0;
    color: var(--link-color);
    font-size: 1.1em;
    font-weight: 600;
    word-break: break-word;
}

.activity-card p {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
    word-break: break-word;
}

/* Bouton PDF pour les activités BAFA */
.activity-link {
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    margin-top: 10px;
    min-height: 44px;
    touch-action: manipulation;
}

/* Responsive - Tablet */
@media screen and (max-width: 768px) {
    .activity-card {
        padding: 12px;
        margin-bottom: 10px;
    }

    .activity-card h4 {
        font-size: 1.05em;
        margin-bottom: 6px;
    }

    .activity-card p {
        font-size: 0.92em;
        margin-bottom: 8px;
    }

    .activity-link {
        padding: 0 16px;
        font-size: 13px;
        height: 36px;
        min-height: 40px;
    }
}

/* Responsive - Mobile */
@media screen and (max-width: 550px) {
    .activity-card {
        padding: 12px;
        margin-bottom: 10px;
    }

    .activity-card h4 {
        font-size: 1em;
    }

    .activity-card p {
        font-size: 0.9em;
    }

    .activity-link {
        padding: 8px 14px;
        font-size: 0.9em;
        height: auto;
        min-height: 40px;
    }
}

/* Responsive - Mobile très petit */
@media screen and (max-width: 380px) {
    .activity-card {
        padding: 10px;
        margin-bottom: 10px;
    }

    .activity-card h4 {
        font-size: 0.95em;
        margin-bottom: 6px;
    }

    .activity-card p {
        font-size: 0.85em;
        margin-bottom: 8px;
    }

    .activity-link {
        padding: 8px 12px;
        font-size: 0.85em;
        height: auto;
    }
}

