/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.mg-r-10 {
    margin-right: 10px;
}

.mg-l-10 {
    margin-left: 10px;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 50px;
}

.header-main {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding-bottom: 5px;
}

header a {
    font-size: 30px;
    font-weight: bold;
    background-color: rgb(233, 230, 227);
    color: black;
    border: none;
    cursor: pointer;
    padding: 5px 5px 5px 5px;
    border-radius: 10px;
    transition: background 0.3s;
    text-decoration: none;
}
header a:hover {
    background-color: rgb(219, 217, 214);
}

/* Contenu principal page Home*/
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

/* Section Bienvenue */
.welcomeSection {
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    padding: 20px 0;
}

.welcomeSection h1 {
    font-size: 100px;
    margin: 0;
    color: #333;
}

/* Layout pour les sections gauche et droite */
.content-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    min-height: 610px;
}

.leftSection, .rigthSection {
    width: 48%;
    padding: 20px;
}

.leftSection {
    text-align: left;
}

.leftSection h1 {
    font-size: 40px;
}

.leftSection p {
    font-size: 20px;
}

.leftSection a {
    background-color: rgb(233, 230, 227);
    color: black;
    font-weight: bold;
    font-size: 20px;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.leftSection a:hover {
    background-color: rgb(219, 217, 214);
}

.rigthSection {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rigthSection img {
    max-width: 100%;
    border-radius: 10px;
}

button {
    background-color: rgb(233, 230, 227);
    color: black;
    font-weight: bold;
    font-size: 20px;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: rgb(219, 217, 214);
}

.mainAbout {
    min-height: 950px;
}

/* Section À propos avec image */
.about-header {
    position: relative;
    width: 100%;
    max-width: 50%;
    margin: 30px auto 0 auto;
    text-align: center;
}

.about-header img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.about-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    font-size: 50px;
    font-weight: bold;
    border-radius: 10px;
    color: #333;
}

/* Contenu de la page À propos */
.about-content {
    max-width: 50%;
    margin: 40px auto;
    padding: 0 10px;
    text-align: justify;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-content p {
    font-size: 20px;
    line-height: 1.6;
}

/* page CV */
.cv-section {
    width: 40%;
}

.cv-title {
    font-size: 50px;
    text-align: center;
    margin-bottom: 15px;
    margin-top: 20px;
}

.cv-image {
    width: 100%;
}

.cv-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.pdf-icon {
    width: 50px;
}

/* page portfolio */
/* Header Portfolio */
.header-p {
    height: 90px;
}

.header-main-p {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 5px;
}

.header-p .header-a {
    font-size: 30px;
    font-weight: bold;
    background-color: rgb(233, 230, 227);
    color: black;
    border: none;
    cursor: pointer;
    padding: 5px 5px 5px 5px;
    border-radius: 10px;
    transition: background 0.3s;
    text-decoration: none;
}
.header-p .header-a:hover {
    background-color: rgb(219, 217, 214);
}

/* Section Portfolio alignée à droite */
.header-portfolio-p {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    right: 50px;
    top: 10px;
}

/* Boutons du portfolio en 2 lignes */
.portfolio-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 5px;
}

/* Boutons du Portfolio */
.portfolio-item-header {
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
}

.portfolio-item-header:hover {
    background: #555;
}

/* Section d'introduction */
.portfolio-intro {
    background-color: #d4e7c5;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    margin-top: 40px;
}

.portfolio-intro h1 {
    font-size: 50px;
    margin-bottom: 10px;
    margin-top: 0;
}

.portfolio-intro div {
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-intro div p {
    font-size: 20px;
}

/* Arborescence des projets */
.portfolio-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    min-height: 530px;
    padding: 25px 0;
}

.semester {
    text-align: center;
    margin-bottom: 0;
}

.semester h2 {
    font-size: 45px;
    margin-bottom: 10px;
}

.portfolio-item {
    display: inline-block;
    background: #333;
    color: white;
    padding: 10px 15px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 35px;
    font-weight: bold;
}

.portfolio-item:hover {
    background: #555;
}

/* Détails des projets */
.project-detail {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px 20px 20px;;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-detail h2 {
    font-size: 30px;
    background-color: #d4e7c5;
    padding: 5px;
}

.project-detail p {
    font-size: 18px;
    line-height: 1.6;
}

.project-semester {
    width: 900px;
    margin: 0 auto;
    padding: 0 20px 0 20px;;
    background: #d4e7c5;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-semester h1 {
    font-size: 50px;
    padding: 5px;
    margin: 0 auto;
}

.div-flex {
    margin: 30px 0 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-parts {
    background-color: rgb(233, 230, 227);
    border-radius: 20px;
    padding: 0 10px 10px 10px;
    flex: 1 1 calc(33.333% - 40px);
    min-width: 250px;
    max-width: 100%;
    text-align: left;
}

.project-parts p {
    color: #1367b6;
    font-weight: bold;
    margin: 5px 0 0 0;
}

.project-parts li {
    font-weight: bold;
}

.project-parts-img {
    border-radius: 20px;
    padding: 0 10px 10px 10px;
    flex: 1 1 calc(66.666% - 40px);
}

.project-parts-2img {
    border-radius: 20px;
    padding: 0 10px 10px 10px;
    flex: 1 1 calc(33.333% - 40px);
}

.flex-100 {
    flex: 1 1 calc(100% - 40px);
}

.project-parts-p {
    color: black !important;;
    font-weight: normal !important;
    font-size: 16px !important;
}

.mg-b-10 {
    margin-bottom: 10px;
}

.project-detail img {
    max-width: 100%;
    border-radius: 10px;
}

.project-detail h3 {
    color: #1367b6;
    padding: 0;
    margin: 5px 0 0 0;
}

.project-detail .comp {
    padding: 0;
    margin: 5px 0 15px 0;
}

.project-detail ul {
    padding: 0;
    margin: 5px 0 0 30px;
}

.project-detail ul li {
    font-weight: bold;
}

/* Footer */
footer {
    background-color: white;
    color: #333;
    text-align: center;
    padding: 10px;
    bottom: 0;
    width: 100%;
}

footer a {  
    font-size: 18px;
    font-weight: bold;
    margin-top: -15px;
    align-items: center;
    text-decoration: underline; 
    color: black;
}
footer .mail {
    display: flex;
    align-items: center;
    justify-content: center;
}

footer img {
    width: 40px;
}

footer .mailImg {
    width: 60px;
    margin-top: -20px;
}

@media screen and (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
        margin-left: 10px;
    }
    .leftSection, .rigthSection {
        width: 100%;
    }
    .rigthSection img {
        max-width: 90%;
        margin-left: -20px;
    }
}

/* Page Portfolio 2 */
/* ===== Blocs de compétences (style “carte” comme l’image) ===== */
.competence-switcher {
    margin: 0;
    width: 100%;
    padding: 0;

    position: sticky;
    top: var(--header-height, 70px); /* hauteur du header */
    z-index: 1000;
    background-color: none;
}

.competence-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: 100%;
  text-align: center;
}

@media (max-width: 1100px) { .competence-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .competence-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .competence-grid { grid-template-columns: 1fr; } }

.bloc-card {
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* Boutons du haut (titres des blocs) */
.bloc-header {
  font-weight: 700;
  text-transform: none;
  padding: 14px 0;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
  font-size: 1.1rem;
  border-radius: 0;
}
.bloc-header:active { transform: translateY(1px); }

/* Panneau (Niveau + Objectif) */
.bloc-panel {
  padding: 20px 10px;
  text-align: center;
  display: grid;
  place-items: center;
  min-height: 130px;
  border-top: 2px solid rgba(255,255,255,0.2);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.bloc-panel .panel-link {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  width: 100%;
}
.bloc-panel .niveau {
  font-weight: 700;
  font-size: 1.05rem;
}
.bloc-panel .objectif {
  line-height: 1.3;
  font-size: 0.95rem;
}

.bloc-panel[hidden] {
  display: none !important;
}

/* Couleurs des blocs (bandeau + panneau) */
.bloc-admin .bloc-header { background:#8f0b0b; }
.bloc-admin .bloc-panel { background:#b31212; }

.bloc-connecter .bloc-header{ background:#cc764b; }
.bloc-connecter .bloc-panel { background:#e2905f; }

.bloc-programmer .bloc-header{ background:#c59a00; }
.bloc-programmer .bloc-panel { background:#e2b105; }

.bloc-securiser .bloc-header{ background:#6aa94a; }
.bloc-securiser .bloc-panel { background:#8bc34a; }

.bloc-surveiller .bloc-header{ background:#0f275b; }
.bloc-surveiller .bloc-panel { background:#173773; }


.bloc-panel .panel-link:hover {
  text-decoration: underline;
}

.bloc-container {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 100%; 
    margin: 40px auto;
}

.project-detail2 {
    width: 100%;
    max-width: 900px;

    display: flex;
    flex-direction: column;

    padding: 0 20px 20px 20px;
    margin: 20px auto;

    background: white;
    border-left: 12px solid;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.project-detail2 h2 {
    font-size: 30px;
    background-color: #d4e7c5;
    padding: 5px;
    border-radius: 4px;
}

.project-detail2 p {
    font-size: 18px;
    line-height: 1.6;
}

.project-detail2 h3,
.project-detail2 h4,
.project-detail2 h5 {
    margin-top: 10px;
    margin-bottom: 6px;
    font-weight: bold;
}

.project-detail2 h5 {
    font-size: 18px;
    color: #1367b6;
}

.project-detail2 ul {
    padding: 0;
    margin: 5px 0 0 30px;
    list-style-type: none;
}

.project-detail2 ul li {
  font-weight: normal;
  margin-bottom: 5px;
  line-height: 1.4;
}

.bloc-admin2 {border-left-color: #b31212;}
.bloc-connecter2 {border-left-color: #e2905f;}
.bloc-programmer2 {border-left-color: #e2b105;}
.bloc-securiser2 {border-left-color: #8bc34a;}
.bloc-surveiller2 {border-left-color: #173773;}

.ac-toggle {
    width: 100%;
    background: #f4f4f4;
    border: none;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    margin-bottom: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ac-toggle:hover {
    background: #e9e9e9;
}

.ac-text {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-weight: normal;
    font-weight: bold;
}

.ac-toggle b {
    font-weight: bold;
}

.ac-toggle::after {
    content: "▼";
    font-size: 14px;
    margin-left: 10px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.ac-toggle.open::after {
    transform: rotate(180deg);
}

.ac-toggle.active::after {
    transform: rotate(-180deg);
}

/* AC content */
.ac-content {
    display: none;
    padding: 15px 18px;
    background: #fafafa;
    border-left: 4px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;

    animation: fadeIn 0.2s ease;
}

/* Visible */
.ac-content.show {
    display: block;
}

/* --- Animation douce --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- LIENS PDF --- */
.ac-content a {
    font-weight: bold;
    color: #1367b6;
    text-decoration: none;
}

.ac-content a:hover {
    text-decoration: underline;
}

/* --- LISTES INTERNES --- */
.ac-content ul {
    margin-left: 10px;
    padding-left: 15px;
}

.ac-content ul li {
    list-style-type: disc;
    margin-bottom: 5px;
}