body {
    margin: 0;
    padding: 0;
    font-family: 'Fredoka', Arial, sans-serif;
    background-color: #fef1df;
    color: #3d3d3d;
    min-height: 100vh;
    position: relative;
}

.container {
    margin: 0 auto;
    padding: 40px 0px;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.container2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap:wrap;
}

.profile-pic {
    border: 20px solid #ffa0c5;
    border-radius: 40px;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    background-size: contain;
    background-repeat: repeat;
    position: relative;
    overflow: hidden;
}
.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width:200px;
}

.intro {
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width:600px;
}
.intro h1 {
    font-size: 32px;
    color: #ffa0c5;
    text-shadow: 1px 1px 0 #E26291;
    margin-top: 30px;
    font-family: 'Bagel Fat One';
}
.intro p {
    font-size: 18px;
    margin: 5px 0;
}
.cv-link {
    display: block;
    margin: 20px 0;
    color: #E26291;
    text-decoration: none;
    font-family: 'Bagel Fat One';
}
.buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

/* --- Boutons génériques --- */
.btn {
    background-color: #ffa0c5;
    color: white;
    padding: 12px 28px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 2px 2px 0 #f47cb0;
    font-size: 1.1em;
    border: none;
    margin: 10px 5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    text-align: center;
}
.btn:hover {
    background-color: #f47cb0;
    color: #fff0f6;
}

/* Boutons responsives : rétrécissent sur petits écrans */
.btn, .btn1, .projet-card .btn {
    font-size: 1.1em;
    padding: 12px 28px;
    min-width: 120px;
    max-width: 100%;
    box-sizing: border-box;
    transition: font-size 0.2s, padding 0.2s, min-width 0.2s;
}

@media (max-width: 900px) {
    .btn, .btn1, .projet-card .btn {
        font-size: 1em;
        padding: 10px 18px;
        min-width: 90px;
    }
}

@media (max-width: 600px) {
    .btn, .btn1, .projet-card .btn {
        font-size: 0.95em;
        padding: 8px 6px;
        min-width: 60px;
        width: 100%;
        margin: 4px 0;
        max-width: 200px;
    }
    .btn-accueil {
        min-width: 80px;
        padding: 0;
    }
}

/* --- Réseaux sociaux --- */
.socials {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    position: static;
    margin-bottom: 18px;
}
.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.2s;
}
.social-icon:hover {
    transform: scale(1.15);
}

/* --- Mes projets / Galerie --- */
.mes-projets {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 10px;
}
h1 {
    color: #ffa0c5;
    text-align: left;
    margin-top: 90px;
    font-size: 2.5em;
    letter-spacing: 2px;
    font-family: 'Bagel Fat One', 'Fredoka', Arial, sans-serif;
    text-shadow: 1px 1px 0 #E26291;
    margin-left: 20px;
}
.top-buttons {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    gap: 15px;
    z-index: 10;
}
.galerie-projets {
    min-height: 300px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 20px;
    padding-bottom: 80px;
}
.projet-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(231, 84, 128, 0.10);
    width: 300px;
    padding: 24px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 3px solid #ffa0c5;
    position: relative;
}
.projet-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(231, 84, 128, 0.18);
    border-color: #f47cb0;
}
.projet-card img,
.images img,
.container-projets img {
    object-fit: cover;
    width: 100%;
    height: 220px;
    display: block;
    cursor: zoom-in;
}
.projet-card h2 {
    color: #ffa0c5;
    font-size: 1.3em;
    margin: 10px 0 8px 0;
    text-align: center;
    font-family: 'lexend';
}
.projet-card p {
    color: #3d3d3d;
    font-size: 1em;
    text-align: center;
    margin-bottom: 12px;
}
.projet-card .btn {
    width: 160px; 		/* largeur fixe, ajuste selon ton design */
    min-width: 120px;
    max-width: 100%;
    display: inline-block;
    text-align: center;
    margin: 10px auto 0 auto;
    box-sizing: border-box;
}

/* Pastille "favori" sur la carte projet */
.badge-fav{
    position:absolute;
    top:10px;
    right:10px;
    width:36px;
    height:36px;
    background-image: url('../img/coeur.png'); /* placer img/logos/heart.png */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background-color: transparent;
    z-index:20;
}
@media (max-width:600px) {
    .badge-fav { top:8px; right:8px; width:28px; height:28px; }
}

/* --- Formulaire de filtre/tri --- */
form[method="GET"] {
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
form[method="GET"] select,
form[method="GET"] button {
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 1em;
    padding: 10px 18px;
    border-radius: 16px;
    border: 2px solid #ffa0c5;
    background: #fff0f6;
    color: #E26291;
    margin-bottom: 10px;
}
form[method="GET"] button {
    background: #ffa0c5;
    color: #fff;
    border: none;
    font-weight: bold;
    box-shadow: 2px 2px 0 #f47cb0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
form[method="GET"] button:hover {
    background: #f47cb0;
    color: #fff0f6;
}
select[multiple] {
    border-radius: 12px;
    border: 2px solid #ffa0c5;
    background: #fff0f6;
    color: #E26291;
    padding: 8px;
    font-size: 1em;
}

/* --- Bloc commentaire harmonisé --- */
.commentaire-bloc {
    width: 100%;
    max-width: 600px;
    margin: 40px auto ;
    background: #fff0f6;
    border-radius: 18px;
    border: 2px solid #ffa0c5;
    box-shadow: 0 2px 12px rgba(231, 84, 128, 0.07);
    padding: 28px 24px 18px 24px;
}
.commentaire-bloc h3 {
    color: #E26291;
    text-align: center;
    margin-bottom: 18px;
    font-family: 'Bagel Fat One', 'Fredoka', Arial, sans-serif;
}
.commentaire-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.commentaire-form textarea {
    resize: vertical;
    min-height: 60px;
    border-radius: 10px;
    border: 1.5px solid #ffa0c5;
    padding: 8px;
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 1em;
    background: #fff;
    color: #3d3d3d;
}
.commentaire-form .btn {
    width: fit-content;
    align-self: flex-end;
    padding: 8px 22px;
    font-size: 1em;
}
.commentaire-liste {
    margin-top: 10px;
}
.commentaire-item {
    background: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px #ffe0ef;
}
.commentaire-entete {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.commentaire-entete strong {
    color: #E26291;
    font-size: 1.05em;
}
.commentaire-date {
    color: #aaa;
    font-size: 0.95em;
}
.btn.btn-suppr {
    background: #e75480;
    font-size: 0.9em;
    padding: 4px 14px;
    margin-left: auto;
    margin-top: 0;
}
.btn.btn-suppr:hover {
    background: #c92a5c;
}

/* --- Détail projet --- */
.detail-projet {
    display: block;
}
.container-projets {
    max-width: 800px;
    margin: 40px auto ;
    padding: 32px 28px 24px 28px;
    text-align: center;
}
.container-projets img {
    display: block;
    margin: 30px auto 20px auto;
}
.images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* --- Table admin et gestion projets --- */
.table-wrapper {
    max-width: 1100px;
    margin: 0 auto 30px auto;
    overflow-x: auto;
    background: transparent;
}
.admin-table,
.gestion-projets-table {
    width: 100%;
    min-width: 600px;
    max-width: 100%;
    margin: 0 auto;
}
.admin-table,
.gestion-projets-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    background: #fef1df;
    box-shadow: 0 2px 8px #eee;
    border: solid 5px #ffa0c5;
    border-radius: 20px;
    overflow: hidden;
    font-size: 1em;
}
.admin-table th, .admin-table td,
.gestion-projets-table th, .gestion-projets-table td {
    border: 1px solid #e26291;
    padding: 10px 8px;
    text-align: left;
}
.admin-table th, .gestion-projets-table th {
    background: #fef1df;
    color: #e26291;
    font-weight: bold;
}
.admin-table tr:nth-child(even),
.gestion-projets-table tr:nth-child(even) {
    background: #fef1df;
}
.admin-table th:first-child, .admin-table td:first-child,
.gestion-projets-table th:first-child, .gestion-projets-table td:first-child {
    border-left: none;
}
.admin-table th:last-child, .admin-table td:last-child,
.gestion-projets-table th:last-child, .gestion-projets-table td:last-child {
    border-right: none;
}
.admin-table tr:first-child th,
.gestion-projets-table tr:first-child th {
    border-top: none;
}
.admin-table tr:last-child td,
.gestion-projets-table tr:last-child td {
    border-bottom: none;
}
.gestion-projets-table th:first-child {
    border-top-left-radius: 20px;
}
.gestion-projets-table th:last-child {
    border-top-right-radius: 20px;
}
.gestion-projets-table tr:last-child td:first-child {
    border-bottom-left-radius: 20px;
}
.gestion-projets-table tr:last-child td:last-child {
    border-bottom-right-radius: 20px;
}
.ajouter-projet-container {
    border: 3px solid #ffa0c5;
    border-radius: 20px;
    width: 100%;
    margin-top: 20px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

/* --- Connexion / Inscription (ex-se_connecter.css) --- */
.login-container {
    background-color: #ff78b4;
    border-radius: 20px;
    padding: 40px 60px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    color: #000;
    margin: 60px auto 0 auto;
}
.login-container h1 {
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 0 #d12b69;
    font-size: 28px;
    margin-bottom: 30px;
}
label {
    display: block;
    text-align: left;
    font-size: 18px;
    margin: 10px 0 5px;
}
input[type="text"],
input[type="password"] {
    width: 94%;
    padding: 15px;
    border: none;
    border-radius: 20px;
    background-color: #ffc4de;
    font-size: 16px;
    margin-bottom: 10px;
}
.forgot {
    display: block;
    text-align: left;
    font-size: 12px;
    margin-top: -5px;
    margin-bottom: 20px;
    color: #000;
    text-decoration: none;
}
.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.bloc-rose {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    height: auto;
    top: 10px;
    left: 10px;
    padding: 20px;
}
.bloc-rose h1 {
    font-size: 20px;
    color: #fff;
    text-shadow: 2px 2px 0 #d12b69;
    margin-bottom: 10px;
    text-align: center;
}
.fleur {
    width: 100px;
    height: auto;
}
.fleur-gauche {
    padding-right: 30px;
}
.fleur-droite {
    padding-left: 30px;
}

/* --- Style PDF projet (détail projet prof) --- */
.pdf-projet {
    margin: 30px 0 20px 0;
    text-align: center;
    padding: 24px 0;
}
.pdf-projet a.btn {
    margin-bottom: 18px;
    background: #ffa0c5;
    color: #fff;
    border-radius: 18px;
    font-size: 1.1em;
    padding: 10px 28px;
    box-shadow: 2px 2px 0 #f47cb0;
    display: inline-block;
}
.pdf-projet a.btn:hover {
    background: #f47cb0;
    color: #fff0f6;
}

@media (max-width: 900px) {
    .pdf-projet iframe {
        width: 98vw;
        height: 60vw;
        min-height: 300px;
        max-width: 99vw;
    }
}

/* --- Responsive --- */
@media (max-width: 700px) {
    .admin-table, .admin-table th, .admin-table td {
        font-size: 0.85em;
        padding: 4px;
    }
    .admin-container {
        padding: 0 5px;
    }
    .ajouter-projet-container {
        padding: 0 5px;
    }
}
@media (max-width: 600px) {
    .admin-container {
        padding: 0 5px;
    }
    .admin-table, .ajouter-projet-container {
        width: 100%;
        font-size: 0.95em;
    }
    .btn {
        width: 100%;
        margin: 5px 0;
        font-size: 1em;
    }
    .login-container {
        padding: 20px 5px;
    }
}
@media (max-width: 700px) {
    .table-wrapper {
        max-width: 100vw;
        padding: 0 2vw;
    }
    .admin-table,
    .gestion-projets-table {
        min-width: 400px;
    }
}
@media (max-width: 500px) {
    .projet-card {
        width: 98vw;
        min-width: unset;
        padding: 10px 2vw;
    }
    .container-projets {
        padding: 10px 2vw;
    }
    .galerie-projets {
        gap: 12px;
        padding: 10px 0 40px 0;
    }
}
.header-projets {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    gap: 30px;
}
.titre-projets {
    flex: 1;
    text-align: left;
    margin-left: 0px;
}
.btn-accueil {
    position: absolute;
    top: 30px;
    right: 40px;
    text-align: right;
    min-width: 120px;
    margin: 0;
    z-index: 100;
}
.filtre-projets {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: left;
    
}
.filtre-projets form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    text-align: center;
    margin: 0 auto;
}
.filtre-projets select,
.filtre-projets button {
    display: block;
    margin: 0;
    text-align: center;
}
@media (max-width: 600px) {
    .filtre-projets form {
        flex-direction: column;
        gap: 10px;
    }
}
@media (max-width: 700px) {
    .header-projets {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 2vw;
    }
    .btn-accueil {
        top: 10px;
        right: 10px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .filtre-projets {
        text-align: left;
    }
}
.main-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
.projets-list {
    margin-top: 30px;
}
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="date"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    border-radius: 12px;
    border: 1.5px solid #ffa0c5;
    padding: 8px;
    margin-bottom: 10px;
    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 1em;
    background: #fff0f6;
    color: #E26291;
}
.admin-form label {
    font-weight: bold;
    color: #E26291;
}
.checkbox-group label {
    margin-right: 16px;
    font-weight: normal;
}



.btn-edit {
    background: #E26291;
    color: #eee;
    margin-right: 5px;
}
.btn-edit:hover {
    background: #E26291;
}

/* Mettre les labels des infos de projet en rose #E26291 */
.desc-projet strong,
.meta-key {
    color: #E26291;
    font-weight: 800;
    text-indent: 0; /* Annule l'indentation pour le titre */
    display: inline-block;
}

/* Images dans la galerie des projets */
.galerie-projets .image-container img,
.projet-card img {
    width: 100%;
    max-width: 320px;
    max-height: 220px;
    height: auto;
    object-fit: contain; /* Affiche toute l'image sans la couper */
    border-radius: 16px;
    margin: 0 auto 12px auto;
    background: #fff;
    box-shadow: 0 2px 12px #ffd6e7;
    display: block;
}
.galerie-projets .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 230px; /* Pour aligner les cartes même si les images sont de tailles différentes */
    margin-bottom: 8px;
    background: #fff0f6;
    border-radius: 16px;
    overflow: hidden;
}

/* variantes de rose pour formater_description (si tu veux utiliser des classes à la place) */
.formatted-desc { color:inherit; line-height:1 }
.formatted-desc strong { color:#E26291; font-weight:800; }
.formatted-desc .rose { color:#E26291; }
.formatted-desc .rose-fonce { color:#E75480; }
.formatted-desc .rose-2 { color:#d94b85; }

.desc-projet {
    text-align: left;
    line-height: 1.7; /* Améliore la lisibilité */
    margin-bottom: 1.5em;
}

/* Conteneur images du détail — vignettes petites et visibles en entier */
.images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Vignette carrée mais sans crop : entire image visible */
.project-image-square {
    width: 110px; 			/* taille desktop : ajuste si nécessaire */
    height: 110px;
    object-fit: contain; 	/* affiche toute l'image (pas de recadrage) */
    display: block;
    border-radius: 8px;
    background: #fafafa;
    padding: 6px; 			/* espace intérieur pour voir les bords */
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Tailles responsives */
@media (max-width: 900px) {
    .project-image-square { width: 90px; height: 90px; }
}
@media (max-width: 600px) {
    .project-image-square { width: 70px; height: 70px; }
}
@media (max-width: 700px) {
    .galerie-projets .image-container img,
    .projet-card img {
        max-width: 98vw;
        max-height: 180px;
    }
    .galerie-projets .image-container {
        height: 180px;
    }
}
.projet-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (max-width: 768px) {
    .container2 {
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
        border-width: 12px;
    }

    .intro h1 {
        font-size: 24px;
        text-align: center;
        margin-top: 20px;
    }

    .intro p {
        font-size: 16px;
        text-align: center;
        padding: 0 10px;
    }

    .buttons {
        flex-direction: column;
        gap: 12px;
    }

    .top-buttons {
        top: 10px;
        right: 10px;
        flex-direction: column;
        gap: 10px;
    }
}
@media (max-width: 768px) {
    .login-container {
        padding: 20px 15px;
        margin: 20px auto;
        width:80%;
    }
    .bloc-rose {
        flex-direction: column;
        padding: 10px;
    }
    .fleur {
        width: 60px;
        margin: 5px 0;
    }
    .bloc-rose h1 {
        font-size: 22px;
    }
    label, input[type="text"], input[type="password"] {
        font-size: 16px;
        width:90%;
    }
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 15px;
    }
    .bloc-rose h1 {
        font-size: 18px;
    }
    input[type="text"], input[type="password"] {
        padding: 12px;
    }
    .btn {
        width: 100%;
        font-size: 1em;
        padding: 10px;
    }
    .btn-group a.btn, .btn-group button.btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    .socials {
        gap: 20px;
    }
}
html, body {
    overflow-x: hidden;
    margin:0 25px 25px 25px;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 600px) {
    .container2 {
        flex-direction: column;
        gap: 16px;
        padding: 0 5vw;
        align-items: center;
    }
    .profile-pic {
        width: 120px;
        height: 120px;
        border-width: 8px;
    }
}
@media (max-width: 500px) {
    .projet-card {
        width: 96vw;
        padding: 8px 2vw;
    }
    .galerie-projets {
        gap: 8px;
        padding: 8px 0 24px 0;
    }
}
@media (max-width: 400px) {
    body, .intro h1, h1, h2, h3, p {
        font-size: 90%;
        word-break: break-word;
    }
    .btn, .btn1, .projet-card .btn {
        font-size: 0.9em;
        padding: 7px 0;
        min-width: 40px;
        width: 90vw;
        box-sizing: border-box;
    }
    .container, .main-content, .intro {
        padding-left: 2vw;
        padding-right: 2vw;
    }
}
.homepage {
    background: linear-gradient(120deg, #fff0f6 0%, #fef1df 100%);
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(255,160,197,0.08), 0 1.5px 8px #e2629127;
    padding: 32px 0 48px 0;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-pic.enhanced-shadow {
    box-shadow: 0 8px 32px rgba(255,160,197,0.20), 0 2px 8px #e2629130;
    border: 8px solid #ffa0c5;
    border-radius: 36px;
    width: 210px;
    height: 210px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #fff0f6;
}

.intro {
    max-width: 700px;
    padding: 28px 32px 22px 32px;
    font-size: 18px;
    line-height: 1.7;
}

.intro h1 {
    color: #ffa0c5;
    font-family: 'Bagel Fat One', cursive;
    font-size: 2.2em;
    margin: 0 0 20px 0;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 #E26291;
}

.intro .highlight {
    color: #E26291;
    font-weight: bold;
    border-radius: 6px;
    padding: 0 4px;
}

.intro strong {
    color: #ffa0c5;
    font-weight: bold;
}

.cv-btn {
    display: inline-block;
    margin-top: 22px;
    background: linear-gradient(90deg, #ffa0c5 80%, #f47cb0 100%);
    box-shadow: 0 3px 10px #ffd6e7aa;
    font-size: 1.1em;
    padding: 12px 36px;
    border-radius: 30px;
    border: none;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.2s;
}
.cv-btn:hover {
    background: linear-gradient(90deg, #f47cb0 60%, #ffa0c5 100%);
    transform: translateY(-2px) scale(1.04);
    color: #fff0f6;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin: 36px 0 18px 0;
}

.btn {
    background-color: #ffa0c5;
    color: white;
    padding: 12px 28px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 2px 2px 0 #f47cb0;
    font-size: 1.08em;
    border: none;
    margin: 10px 5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: inline-block;
    text-align: center;
}


.socials {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.social-icon {
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px #ffd6e7;
    transition: transform 0.2s, box-shadow 0.2s;
}
.social-icon:hover {
    transform: scale(1.17) rotate(-6deg);
    box-shadow: 0 6px 18px #f47cb0aa;
}

/* Responsive */
@media (max-width: 900px) {
    .profile-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 18px;
    }
    .intro {
        max-width: 99vw;
        padding: 18px 7vw;
    }
}
@media (max-width: 600px) {
    .homepage {
        padding: 12px 0 18px 0;
    }
    .intro {
        font-size: 1em;
        padding: 12px 4vw;
    }
    .profile-pic.enhanced-shadow {
        width: 120px;
        height: 120px;
        border-width: 5px;
    }
    .buttons {
        flex-direction: column;
        gap: 10px;
    }
    .socials {
        gap: 18px;
    }
}

/* --- Logos partenaires --- */
.logos-list {
    display: flex;
    gap: 4px;
    /* MODIFIÉ POUR ALIGNEMENT GAUCHE */
    justify-content: flex-start;
    align-items: center; 
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 20px; /* Ajout d'une petite marge en bas */
}

.logos-list img,
.logos-list .logo-fallback {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.logos-list .logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    font-size: 11px;
    padding: 4px;
    text-align: center;
}

/* 1. Conteneur des images dans la page de détail */
.container-projets .images {
    /* Permet aux cartes d'image de s'aligner côte à côte et de passer à la ligne */
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
    
    /* MODIFICATION ICI : Aligner les éléments au début du conteneur (à gauche) */
    justify-content: flex-start; 
    /* Ancien : justify-content: center; */
    
    margin-bottom: 30px;
}



/* 2. Style de la "carte" qui entoure l'image */
.image-card {
    /* Style du cadre externe */
    background-color: #F0F0F0; /* Fond clair de la carte */
    border: 1px solid #FFCCCC; /* Bordure rose très pâle comme dans l'exemple */
    border-radius: 15px; /* Coins arrondis */
    padding: 12px; /* Marge intérieure entre la bordure et l'image */
    
    /* Optionnel: Ombre légère pour effet de profondeur */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    
    /* Assurez-vous que la carte ne devienne pas trop grande */
    max-width: 100%;
    height: auto;
    
    /* Force les cartes à être centrées si le .images est en display: flex */
    flex-grow: 0;
    
}


/* 3. Style de l'image à l'intérieur de la carte */
.image-card .project-image {
    /* S'assure que l'image reste dans les limites de la carte */
    max-width: 100%; 
    height: auto; /* Maintient le ratio pour images horizontales ou verticales */
    display: block; /* Supprime l'espace sous l'image */
    border-radius: 10px; /* Légers coins arrondis pour l'image elle-même */
    
    /* Optionnel: S'assurer que l'image ne devienne pas excessivement grande sur les écrans larges */
    max-height: 150px; /* Limite la hauteur maximale de l'image si besoin */
    width: auto;
}

/* petit tag sous le titre */
.project-tag{
    display:inline-block;
    background: linear-gradient(180deg,#ffd6e7,#ffeef6);
    border:1px solid #f3a7c5;
    color:#ffa0c5;
    padding:6px 10px;
    border-radius:8px;
    font-size:0.85rem;
    margin:8px 0;
    max-width:100%;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
@media(max-width:600px){
    .project-tag{font-size:0.8rem;padding:5px 8px}
}

.chef-badge-card{
    color: #E26291 ;

}

/* Aligner tout le contenu du détail projet à gauche et aligner le tag / role */
.project-content.project-layout .right-col,
.project-content.project-layout .right-col * {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Titre, tag et badge alignés sur la même colonne */
.project-content.project-layout .right-col h1 {
    margin: 0 0 8px 0;
    padding: 0;
}
.project-content.project-layout .right-col .project-tag {
    align-self: flex-start;
    text-align: left;
    white-space: normal; /* permet retour si le tag est long */
    max-width: 100%;
    margin: 6px 0 12px 0;
    display: inline-block;
}
.project-content.project-layout .right-col .chef-badge {
    display: inline-block;
    margin: 0 0 8px 0;
}

/* Grille clé/valeur — même alignement pour toutes les lignes */
.meta-projet {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 12px;
}
.meta-projet .meta-key {
    width: 160px;
    flex: 0 0 160px;
    text-align: left;
}
.meta-projet .meta-value {
    flex: 1 1 auto;
    text-align: left;
}

/* Description formatée à gauche */
.formatted-desc {
    text-align: left;
    margin: 0 30px;
    padding: 0;
line-height: normal;
}



/* Sur petits écrans, garder une colonne mais alignée à gauche */
@media (max-width: 900px) {
    .project-content.project-layout { flex-direction: column; }
    .project-content.project-layout .left-col { width: 100%; flex: unset; }
    .meta-projet .meta-key { width: 140px; flex: 0 0 140px; }
}


/* Cache l'icône de burger sur desktop/tablette */
.top-buttons .burger-icon {
    display: none;
    /* Assurez-vous d'avoir une image ou un style CSS pour cette icône */
}

/* Les boutons à masquer sur mobile (doivent avoir une classe, ex: .nav-buttons) */
.top-buttons .btn {
    /* Garde les styles existants pour desktop */
}

/* Media Query pour les petits écrans (max-width: 700px ou moins, selon vos breakpoints) */
@media (max-width: 700px) {
    /* 1. Cache les boutons de navigation classiques */
    .top-buttons .btn {
        display: none !important; /* Force la masquage des boutons */
    }

    /* 2. Affiche l'icône de burger */
    .top-buttons .burger-icon {
        display: block; /* Affiche l'icône de burger */
        top: 31px; /* Aligné avec votre positionnement initial */
        right: 40px;
        z-index: 1000; /* Assurez-vous qu'elle est au-dessus de tout */
        cursor: pointer;
    }

    /* 3. Simplifie le conteneur top-buttons */
    .top-buttons {
        gap: 0;
        right: 0;
        top: 0;
    }

    /* Le menu déroulant (que vous devrez gérer en JS) */
    .top-buttons.active .btn {
        display: block !important;
        /* Ajoutez des styles pour que les boutons s'affichent en colonne */
        width: 150px;
        margin: 5px auto;
        text-align: center;
    }
}


/* --- Style de l'icône de Burger (à ajouter à votre CSS) --- */
.burger-icon {
    width: 30px;
    height: 25px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #E26291; /* Votre couleur de texte/bouton */
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger-icon span:nth-child(1) {
    top: 0px;
}

.burger-icon span:nth-child(2) {
    top: 11px;
}

.burger-icon span:nth-child(3) {
    top: 22px;
}

/* Styles pour l'état actif (si vous voulez une croix) */
.burger-icon.open span:nth-child(1) {
    top: 11px;
    transform: rotate(135deg);
}

.burger-icon.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.burger-icon.open span:nth-child(3) {
    top: 11px;
    transform: rotate(-135deg);
}