/* RESET ET STYLES DE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
}

:root {
    --main-color: #059ba7;
    --a-color: #2eb8c2;
    --second-color: #00708e;
    --third-color: #00556d;
    --background-color: #f8f8f8;
    --my-grey: #333;
    --my-black: #111;
    --gradient-old: linear-gradient(135deg, #007c89, #009fb1);
    --gradient: linear-gradient(135deg, #007c89, #009fb1);
}

body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: var(--my-grey);
    background: var(--background-color);
}

strong {
    font-weight: bold;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* HEADER */
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 120px; /* hauteur normale */
    transition: height 0.5s ease, padding 0.5s ease;
}

.logo a {
    text-decoration: none;
    color: var(--main-color);
}

.logo strong {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.fancy-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.fancy-menu li a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--my-grey);
    transition: color 0.3s;
    position: relative;
}

.fancy-menu li a:hover {
    color: var(--second-color);
}

.language-switcher {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Boutons de langue */
.language-switcher button {
    background: none;
    border: none;
    margin-left: 0.7rem;
    padding: 0;
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Images des drapeaux */
.language-switcher button img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: block;
}

/* Effet au survol */
.language-switcher button:hover {
    transform: translateY(-5px);
}

/* Bouton actif (désactivé) */
.language-switcher button.disabled {
    cursor: default;
}

/* Supprime l’effet au survol du bouton actif */
.language-switcher button.disabled:hover {
    transform: translateY(0);
}

/* Halo parfaitement rond et centré */
.language-switcher button.disabled::before {
    content: "";
    position: absolute;
    width: 2.4rem; /* légèrement plus grand que l'image */
    height: 2.4rem;
    background-color: #d8d8d8; /* gris clair */
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

nav.fancy-menu ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: var(--second-color);
    transition: width 0.3s ease;
}

nav.fancy-menu ul li a:hover::after {
    width: 100%; /* soulignement complet au survol */
}

/* SECTIONS */
.block {
    padding: 3rem 0 3rem;
    /* min-height: 90vh; */
    display: flex;
    align-items: center;
}

.home-content {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    /* max-width: 1200px; */
    margin: 0 auto;
    gap: 10rem;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.home-content-bloc {
    padding-bottom: 0;
}

.my-personal-info {
    flex: 1;
    text-align: left;
}

.terminal-effect {
    flex: 1;
    margin: 0;
}

#home {
    background-color: var(--my-black);
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 90vh;
}

.my-personal-info {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.my-name-who .greeting {
    font-size: 1.5rem;
    color: #aaa;
}

.my-name-who .name {
    font-size: 4rem;
    font-weight: 900;
    margin: 0.5rem 0;
}

.my-name-who .subtitle {
    font-size: 1.2rem;
    color: var(--main-color);
}

.my-name-who .subtitle i {
    margin-right: 0.5rem;
}

.background-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    width: 40vw;
    max-width: 750px;
    max-height: 70vh;
    padding: 2rem 2rem;
    z-index: 0;
    object-fit: contain;
    height: auto;
}

.social-buttons {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 2rem;
    gap: 1.5rem;
    padding: 0;
}

.social-buttons li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--main-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 1000;
    position: relative;
    transition: transform 0.2s ease, background 0.3s ease;
}

.social-buttons li a:hover {
    transform: translateY(-5px);
    background: var(--my-grey);
}

.terminal-effect {
    background-color: #181818;
    color: #cdd9e5;
    padding: 0 1rem;
    font-family: "Fira Code", monospace;
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    width: 45vw;
    line-height: 1.5em;
    height: calc(1.5em * 14);
    /* margin-top: 2rem; */
    white-space: pre-wrap;
    position: relative;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    border-left: 6px solid #313132;
    display: flex;
    align-items: center;
    z-index: 10;
}

.terminal-text {
    position: relative;
    height: 100%;
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: var(--my-grey);
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    transition: background 0.3s ease, color 0.3s ease;
}

.close-btn:hover {
    background: var(--my-black);
}

.cv-link {
    margin-top: 0.5rem;
    color: #cdd9e5;
}

.cv-link a {
    color: #3cf;
    text-decoration: none;
}

.cv-link a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Centrage du QR code */
.cv-qr {
    display: block;
    margin: 1rem auto 1rem auto;
}

.command-line {
    color: var(--main-color); /* rouge clair */
}

.cursor {
    display: inline-block;
    animation: blink 1s steps(1) infinite;
    color: white;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}
/* SERVICES */

/* #portfolio h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
} */

/* Grille responsive */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Carte d’un projet */
.portfolio-item {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Image du projet */
.portfolio-image {
    overflow: hidden;
    position: relative;
}

.portfolio-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tech-list li:hover {
    background: rgba(0, 124, 137, 0.1);
    transform: translateY(-3px);
}

.portfolio-content p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-list li {
    background: #f1f1f1;
    color: #333;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.links {
    display: flex;
    gap: 1.2rem;
}

.links a {
    font-size: 0.9rem;
    color: var(--my-grey);
    text-decoration: none;
    transition: color 0.2s;
    margin-top: 0.5rem;
}

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

.links i {
    margin-right: 0.4rem;
}

/* COMPÉTENCES */
.skill {
    margin-bottom: 1.5rem;
}

.progress-bar {
    background: #e0e0e0;
    height: 10px;
    border-radius: 5px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.progress {
    background: var(--main-color);
    height: 100%;
}

/* EXPÉRIENCE */
.timeline {
    position: relative;
    margin-top: 3rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--main-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    flex-direction: row;
    text-align: left;
}

.timeline-icon {
    background: var(--main-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: absolute;
    top: 0;
    transform: translateY(0);
}

.timeline-item.left .timeline-icon {
    right: -25px;
}

.timeline-item.right .timeline-icon {
    left: -25px;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: calc(100% - 75px);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--main-color);
}

.timeline-content span {
    font-size: 0.9rem;
    color: #777;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin: 0;
    line-height: 1.5;
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 1rem;
    }
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        flex-direction: row;
        text-align: left;
    }
    .timeline-item .timeline-icon {
        left: 0;
        right: auto;
    }
    .timeline-content {
        width: calc(100% - 60px);
    }

    strong#word {
        font-size: 1.5rem;
    }
    .timeline-item.right .timeline-icon {
        left: 0;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .fancy-menu ul {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 1rem;
        list-style: none;
        width: 100%;
        background: transparent;
        transform: none;
        transition: none;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-content {
        width: calc(100% - 75px);
        margin-left: 75px;
    }
}

@media screen and (max-width: 768px) {
    /* Bouton hamburger */
    .navTrigger {
        position: fixed;
        top: 20px;
        right: 20px;
        cursor: pointer;
        z-index: 1200;

        user-select: none;
        caret-color: transparent;
    }

    .navTrigger i {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px 0;
        background-color: #000;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Transformation quand le hamburger est actif (en croix) */
    .navTrigger.active i:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navTrigger.active i:nth-child(2) {
        opacity: 0;
    }

    .navTrigger.active i:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Pour que le logo ne soit pas masqué par le bouton hamburger */
    header .logo {
        margin-right: 80px;
    }

    /* Bandeau du menu latéral avec fond (glissant depuis la droite) */
    .fancy-menu {
        position: fixed;
        top: 0;
        right: -250px; /* Masqué par défaut */
        width: 250px;
        height: 100%;
        background: #fff; /* Fond du bandeau */
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding-top: 60px; /* Espace en haut pour le contenu */
        z-index: 1100;
    }

    /* Lorsque le menu est activé, le bandeau glisse à sa place */
    .fancy-menu.active {
        right: 0;
    }

    .fancy-menu ul {
        margin: 0;
        padding: 1rem;
        list-style: none;
        width: 100%;
        background: transparent;
    }

    .fancy-menu ul li {
        display: block;
        padding: 15px 20px;
        text-align: left;
        background: none;
        opacity: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        margin: 0;
    }

    /* Lorsque le menu est actif, les items apparaissent sans décalage */
    .fancy-menu.active ul li {
        opacity: 1;
        transform: translateX(0);
    }

    .background-icon {
        width: 70vw;
        margin-top: 4rem;
    }

    .language-switcher button:first-child {
        margin-left: 0;
    }
}

.logo {
    display: flex; /* Place l'image et le lien côte à côte */
    align-items: center; /* Centre verticalement */
    gap: 10px; /* Espace entre l'image et le texte */
}

.logo img {
    width: 6rem;
}

.logo a {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
h2 {
    font-size: 1.8rem;
    color: var(--second-color);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
    color: var(--third-color);
    margin-bottom: 0.7rem;
}

a {
    /* color: var(--grey-color); */
    transition: color 0.3s ease;
    color: var(--my-grey);
}

a:hover {
    color: var(--second-color);
}

/* Section “À propos” */
.about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
}

/* Partie haute : image + texte */
.about-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.paragraph-icon {
    display: flex;
    align-items: center; /* centre verticalement l'icône avec le texte */
    gap: 10px; /* espace entre icône et texte */
    margin-bottom: 15px; /* espace entre paragraphes */
}

.paragraph-icon i {
    font-size: 1.5em; /* taille des icônes */
    color: var(--second-color); /* couleur personnalisable */
}

.about-text .paragraph-icon p {
    margin: 0;
    /* text-align: justify; */
}

/* Image */
.about-image {
    flex: 1 1 220px;
    display: flex;
    justify-content: flex-start;
}

.about-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    margin-left: 4rem;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* Texte principal */
.about-text {
    flex: 2 1 400px;
}

.about-text a.theme-btn {
    width: max-content;
    margin: 2rem auto;
    display: block;
}

.about-text h2 {
    margin: auto;
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.about-text h3 {
    color: var(--second-color);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.about-text p {
    color: var(--my-grey);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.theme-btn {
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: var(--second-color);
    transform: translateY(-2px);
    color: #fff;
}

/* Partie basse : 3 cartes */
.about-bottom {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    gap: 1.5rem;
}

.about-card {
    flex: 1 1 250px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.about-card h4 {
    color: var(--second-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

/* --- Grille principale --- */
.about-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* --- Carte principale --- */
.about-card {
    background: #fff;
    border-radius: 1.2rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card h4 {
    margin: 0;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* --- En-tête des cartes --- */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--main-color);
}

.card-header i {
    background: var(--main-color);
    color: #fff;
    padding: 0.8rem;
    border-radius: 12px;
    font-size: 1rem;
}

/* --- Liste générique --- */
.card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #f6f9fa;
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    color: #333;
    transition: background 0.3s;
}

.card-list li:hover {
    background: rgba(0, 124, 137, 0.1);
}

.gradient .card-list li:hover {
    background: rgba(255, 255, 255, 0.8) !important;
}

.card-list i {
    color: var(--main-color);
    font-size: 1rem;
}

.about-card .card-list li i,
.about-card .card-list li .list-icon {
    transition: transform 0.3s ease;
}

.about-card .card-list li:hover i {
    transform: rotate(25deg) scale(1.1);
}

.objectives li {
    align-items: center;
}

.objectives .list-icon {
    /* background: var(--main-color); */
    /* color: #fff; */
    /* border-radius: 10px; */
    /* padding: 0.7rem; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.objectives .list-icon i {
    color: white;
}

.card-list i {
    font-size: 1.3rem;
}

.card-header i {
    font-size: 1.4rem;
}

.objectives .list-text strong {
    color: var(--main-color);
    font-size: 1rem;
}

.gradient h4 {
    color: white;
}

.objectives .list-text p {
    font-size: 0.85rem;
    color: #555;
    margin: 0.2rem 0 0;
}

/* --- Carte dégradée (centres d’intérêt) --- */
.about-card.gradient {
    background: var(--gradient);
    color: #fff;
}

.about-card.gradient .card-header i {
    background: rgba(255, 255, 255, 0.15);
}

.about-card.gradient .card-list li {
    background: rgba(255, 255, 255, 0.9);
    color: #00454e;
}

.about-card.gradient .card-list li i,
.objectives i {
    background: var(--main-color);
    color: #fff;
    border-radius: 10px;
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .about-top {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .about-bottom {
        flex-direction: column;
        align-items: stretch;
    }
}

.resume-header.shrink {
    height: 70px; /* hauteur réduite au scroll */
    padding: 0.5rem 5%; /* padding réduit pour effet fluide */
}

.profile-img {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.resume-header.shrink .profile-img {
    opacity: 0; /* image disparaît */
    transform: scale(0.5); /* image rétrécie un peu */
    /* width: garder la largeur pour ne pas faire sauter le header */
}

.skills {
    /* padding: 4rem 5%; */
    padding: 1rem 5%;
    background-color: #f8f8f8;
    text-align: left; /* aligne le contenu à gauche */
}

/* .skills h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #222;
} */

.skills-group {
    margin-bottom: 2.5rem;
}

/* .skills-group h3 {
    font-size: 1.3rem;
    color: #444;
    margin-bottom: 1rem;
} */

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* aligne les logos à gauche */
    gap: 1.5rem;
}

.skill {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.skill img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.skill span {
    font-weight: 500;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .skills-grid {
        justify-content: center;
    }
    .skill {
        width: 80px;
        padding: 0.8rem;
    }
}

#contact {
    padding: 4rem 5%;
    background-color: var(--my-black);
}

#contact h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--main-color);
    text-align: left;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: white;
}

.contact-info i {
    color: var(--main-color);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--main-color);
}

.network-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.network-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: transform 0.2s ease, background 0.3s ease;
    text-decoration: none;
}

.network-list li a:hover {
    transform: translateY(-5px);
    background: var(--my-grey);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: flex-start; /* tout le contenu aligné à gauche */
        text-align: left;
    }

    .contact-left,
    .contact-right {
        flex: unset;
        width: 100%;
    }

    .contact-right {
        margin-top: 2rem;
        display: flex;
        justify-content: center; /* logo centré */
    }

    /* Mes réseaux */
    .network h3 {
        text-align: left; /* titre aligné à gauche */
    }

    .network-list {
        justify-content: center; /* logos centrés */
    }
}

.contact-container {
    display: flex;
    align-items: center; /* centre verticalement */
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap; /* bascule sur mobile */
    padding: 4rem 5%;
    background-color: var(--my-black);
}

.contact-left {
    flex: 1 1 400px; /* prend de la place mais garde un minimum */
}

.contact-right {
    flex: 0 0 270px; /* largeur fixe du logo */
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-right img {
    max-width: 100%;
    height: auto; /* conserve le ratio */
    border-radius: 30px;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

.network h3 {
    color: var(--main-color);
}

@media (max-width: 768px) {
    .background-icon {
        width: 95vw;
        margin-top: 0;
    }

    .home-content {
        margin-top: 9rem;
        margin-bottom: 5rem;
        gap: 7rem;
    }

    .cv-qr {
        margin: 0;
    }

    div .cv-qr {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 1rem auto;
    }

    .terminal-effect {
        height: 23rem;
    }
    section#skills.block {
        padding-bottom: 0;
    }
}

/* ================= MODAL ================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* cachée par défaut */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Contenu de la popup */
.modal-content {
    background: #fff;
    border-radius: 1rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: fadeIn 0.3s ease;
}

/* Bouton X */
.close-btn-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #969696;
    transition: color 0.3s ease;
}

.close-btn-popup:hover {
    color: var(--second-color);
}

/* Image */
.modal-image img {
    width: 100%;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    display: block;
}

/* Corps de la popup */
.modal-body {
    padding: 1.5rem 2rem;
}

.modal-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body p {
    color: var(--my-grey);
    margin-bottom: 1rem;
}

.project-description p {
    margin-bottom: 1rem;
}

/* Réutilisation de tes styles */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0;
    list-style: none;
}

.tech-list li {
    background: #f1f1f1;
    color: #333;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
}

.links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.links i {
    margin-right: 0.4rem;
}

/* Animation d’apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll doux et responsive */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.report-download,
.visual-website {
    text-align: center;
    margin: 1rem;
}

.report-download a,
.visual-website a {
    display: inline-block;
    background: var(--second-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.report-download a:hover,
.visual-website a:hover {
    background: var(--main-color);
    transform: translateY(-2px);
    color: #fff;
}

hr {
    border: none;
    height: 2px;
    background-color: #5f5f5f;
    margin: 20px 0;
}

div.video {
    text-align: center;
    padding: 2rem;
}

/* Rend la vidéo responsive */
div.video video {
    width: 100%;
    height: auto;
    max-width: 800px; /* limite la largeur sur grands écrans */
    border-radius: 12px; /* optionnel : pour un effet plus soigné */
    display: block;
    margin: 0 auto;
}

.in-dev {
    font-size: 0.9em;
    color: #ff6600;
    font-weight: bold;
    margin-top: 0.5rem;
}

.portfolio-content h3 a {
    all: inherit;
}

.portfolio-content h3 a:hover {
    color: var(--main-color);
    cursor: pointer;
}

em {
    font-style: italic;
}
