@import url('https://fonts.googleapis.com/css2?family=Abel&family=Aboreto&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Abel', sans-serif;
    background-color: #F6EEE4;
    color: #3A1F14;
    
}


header {
    background-color: #3A1F14;
    padding: 20px 40px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 20px;
}

header nav .logo {
    width: 50px;    
    height: auto;   
    filter: invert(1); 
}

header nav a {
    color: #F6EEE4;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 20px;
    transition: all 0.3s;
}

header nav a:hover {
    background-color: rgba(245, 243, 240, 0.1);
    border-radius: 5px;
}

header h1 {
    font-family: 'Aboreto', cursive;
    font-size: 48px;
    color: #F6EEE4;
    text-align: center;
    letter-spacing: 4px;
}


section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px;
}

h2 {
    font-family: 'Aboreto', cursive;
    font-size: 36px;
    color: #3A1F14;
    margin-bottom: 30px;
}


.apropos {
    display: flex;
    gap: 50px;
    align-items: center;
    background-color: #F6EEE4;
    padding: 60px;
}

.apropos img {
    width: 350px;
    height: 450px;
    object-fit: cover;
    border: 4px solid #3A1F14;
    border-radius: 8px;
}

.apropos-description {
    flex: 1;
}

.apropos-description h2 {
    color: #3A1F14;
    margin-bottom: 20px;
}

.apropos-description p {
    font-size: 17px;
    color: #3A1F14;
    line-height: 1.8;
    margin-bottom: 15px;
}


.projets {
    background-color: #3A1F14;
    padding: 60px;
}

.projets-contenu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.projets-carte {
    background-color: #6B4423;
    padding: 25px;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s;
}

.projets-carte:hover {
    transform: translateY(-5px);
}

.projets-carte img:first-of-type {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.projets-carte h3 {
    font-family: 'Abel', sans-serif;
    font-size: 22px;
    color: #F6EEE4;
    text-align: center;
    margin-top: 10px;
}

.projets-carte .petit-logo {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #F6EEE4;
    padding: 8px;
    border-radius: 50%;
}


.competences {
    background-color: #F6EEE4;
    padding: 60px;
    text-align: center;
}

.competences h2 {
    font-size: 48px;
    color: #3A1F14;
    margin-bottom: 40px;
}

.competences-boutons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.bouton {
    background-color: #3A1F14;
    color: #F6EEE4;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.3s;
}

.bouton:hover {
    background-color: #6B4423;
}


.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup:target {
    display: flex;
}

.boite-popup {
    background-color: #F6EEE4;
    padding: 50px;
    border-radius: 10px;
    border: 3px solid #3A1F14;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.fermer {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    color: #3A1F14;
    text-decoration: none;
}

.fermer:hover {
    color: #6B4423;
}

.boite-popup h3 {
    font-family: 'Aboreto', cursive;
    font-size: 32px;
    color: #3A1F14;
    text-align: center;
    margin-bottom: 30px;
}


.softskills-contenu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rond {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #6B4423;
    color: #F6EEE4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-align: center;
    padding: 15px;
    margin: 0 auto;
    transition: all 0.3s;
}

.rond:hover {
    background-color: #3A1F14;
    transform: scale(1.1);
}


.outils-contenu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
}

.outils-contenu img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s;
}

.outils-contenu img:hover {
    transform: scale(1.15);
}


.capacites-contenu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.carte {
    background-color: #3A1F14;
    color: #F6EEE4;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s;
}

.carte:hover {
    background-color: #6B4423;
    transform: scale(1.03);
}

.carte h4 {
    font-family: 'Abel', sans-serif;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.carte ul {
    list-style: none;
    padding: 0;
    font-size: 14px;
}

.carte li {
    margin-bottom: 5px;
}

.carte li::before {
    content: "• ";
    font-weight: bold;
}


.contact {
    background-color: #3A1F14;
    padding: 60px;
}

.contact h2 {
    font-family: 'Aboreto', cursive;
    font-size: 42px;
    color: #F6EEE4;
    text-align: center;
    margin-bottom: 40px;
}

.contact form {
    background-color: #D4C4B7;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.champ {
    margin-bottom: 20px;
}

.champ label {
    display: block;
    color: #3A1F14;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 15px;
}

.champ input,
.champ textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #3A1F14;
    border-radius: 5px;
    background-color: #F6EEE4;
    color: #3A1F14;
    font-size: 15px;
    font-family: 'Abel', sans-serif;
}

.champ textarea {
    resize: vertical;
    min-height: 100px;
}

button[type="submit"] {
    width: 100%;
    background-color: #3A1F14;
    color: #F6EEE4;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Abel', sans-serif;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

button[type="submit"]:hover {
    background-color: #6B4423;
}


footer {
    background-color: #3A1F14;
    padding: 30px;
    text-align: center;
}

footer p {
    font-size: 14px;
    color: #F6EEE4;
    margin: 5px 0;
}


.bouton-retour {
    display: inline-block;
    background-color: #3A1F14;
    color: #F6EEE4;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    margin: 30px 60px;
    transition: all 0.3s;
}

.bouton-retour:hover {
    background-color: #6B4423;
}

.bloc-projet {
    display: flex;
    gap: 50px;
    align-items: center;
    background-color: #F6EEE4;
    padding: 60px;
    margin-bottom: 0;
}

.bloc-projet.droite {
    flex-direction: row-reverse;
}

.bloc-projet.centre {
    flex-direction: column;
    text-align: center;
}

.bloc-projet img {
    width: 45%;
    border: 4px solid #3A1F14;
    border-radius: 8px;
}

.bloc-projet.centre img {
    width: 60%;
}

.texte h2 {
    font-family: 'Aboreto', cursive;
    font-size: 28px;
    color: #3A1F14;
    margin-bottom: 20px;
}

.texte p {
    font-size: 16px;
    color: #3A1F14;
    line-height: 1.8;
}


.bloc-codage {
    background-color: #F6EEE4;
    padding: 60px;
    text-align: center;
}

.bloc-codage h2 {
    font-family: 'Aboreto', cursive;
    font-size: 32px;
    color: #3A1F14;
    margin-bottom: 20px;
}

.bloc-codage p {
    font-size: 17px;
    color: #3A1F14;
    max-width: 800px;
    margin: 0 auto 40px;
}

.code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.image-resultat {
    width: 70%;
    max-width: 850px;
    height: auto;
    border: 8px solid #3A1F14;
    border-radius: 25px;
    display: block;
}

.contact-info {
    text-align: center;
    margin-bottom: 30px;
    background-color: #F6EEE4;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.contact-info p {
    color: #3A1F14;
    font-size: 17px;
    margin: 10px 0;
}

.contact-info a {
    color: #6B4423;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

.intro-projet {
    background-color: #6B4423;
    padding: 50px;
    text-align: center;
    color: #F6EEE4;
    margin-bottom: 0;
}

.intro-projet h2 {
    color: #F6EEE4;
    font-size: 42px;
    margin-bottom: 15px;
}

.intro-projet p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #F6EEE4;
}

.details-projet {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #6B4423;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.details-projet span {
    background-color: #D4C4B7;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #3A1F14;
}



@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}


.bouton {
    animation: 
        float 3s ease-in-out infinite,
        glow 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.bouton-pulse {
     
    animation: pulse 2s ease infinite;
}


@media (max-width: 1024px) {
    header h1 {
        font-size: 36px;
    }
    
    .apropos {
        flex-direction: column;
        padding: 40px;
    }
    
    .apropos img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
    
    .projets-contenu {
        grid-template-columns: 1fr;
    }
    
    .bloc-projet {
        flex-direction: column;
        padding: 40px;
    }
    
    .bloc-projet img {
        width: 100%;
        max-width: 500px;
    }
    
    .code {
        flex-direction: column;
    }
    
    .image-code,
    .image-resultat {
        max-width: 100%;
    }
}


@media (max-width: 768px) {
    header {
        padding: 15px;
    }
    
    header nav {
        flex-direction: column;
        gap: 10px;
    }
    
    header nav .logo {
        width: 40px;
    }
    
    header nav a {
        font-size: 16px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    section {
        padding: 20px;
        margin: 30px auto;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .apropos {
        padding: 20px;
        gap: 30px;
    }
    
    .apropos img {
        max-width: 100%;
    }
    
    .apropos-description p {
        font-size: 16px;
    }
    
    .projets,
    .competences,
    .contact {
        padding: 30px 15px;
    }
    
    .competences h2 {
        font-size: 32px;
    }
    
    .projets-carte {
        padding: 20px;
    }
    
    .projets-carte img:first-of-type {
        height: 200px;
    }
    
    .bouton {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .boite-popup {
        width: 90%;
        padding: 25px;
        margin: 20px;
    }
    
    .boite-popup h3 {
        font-size: 26px;
    }
    
    .fermer {
        font-size: 28px;
    }
    
    .softskills-contenu {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rond {
        width: 100px;
        height: 100px;
        font-size: 12px;
    }
    
    .outils-contenu {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .outils-contenu img {
        width: 60px;
        height: 60px;
    }
    
    .capacites-contenu {
        grid-template-columns: 1fr;
    }
    
    .contact h2 {
        font-size: 32px;
    }
    
    .contact form {
        padding: 25px;
    }
    
    .contact-info {
        margin: 0 15px 25px;
        padding: 15px;
    }
    
    footer {
        padding: 20px;
    }
    
    .bouton-retour {
        margin: 20px;
    }
    
    .bloc-projet {
        padding: 25px 20px;
    }
    
    .texte h2 {
        font-size: 24px;
    }
    
    .texte p {
        font-size: 15px;
    }
    
    .bloc-codage {
        padding: 30px 15px;
    }
    
    .bloc-codage h2 {
        font-size: 26px;
    }
    
    .bloc-codage p {
        font-size: 15px;
    }
    
    img.fleche {
        max-width: 60px;
    }
    
    .intro-projet {
        padding: 30px 15px;
    }
    
    .intro-projet h2 {
        font-size: 28px;
    }
    
    .intro-projet p {
        font-size: 16px;
    }
    
    .details-projet span {
        font-size: 12px;
    }
}