/*======Sommaire=========*/
/*
    0- RESET CSS
    1- Header
    2- Présentation (bloc 1)
    3- Sections (Bloc 2/3)
        3-1 Compétences 
        3-2 Projets
    4- Footer
    5- scroll-to-top (Java)
    6- Responsive
*/

/*==========RESET CSS============*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ================================== */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #615555;
}

/* Header */
header {
    background-color: #333;
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-contenu {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2.4rem;
}

header h2{
    display: inline;
    color: white;
    font-size: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}


nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    background-color: #585a5a;
}

nav ul li a:hover {
    background-color: #007bff;
}

/* Présentation */
#presentation {
    padding: 40px 20px;
    background-color: #D8CFC4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    max-width: 1200px;
    margin: 40px auto;
}

.bold {
    font-weight: bold; 
    color: black;
}

.presentation-contenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.presentation-texte {
    flex: 1;
    text-align: center;
}

.presentation-texte h2 {
    font-size: 2.2rem;
    color: #9B1B30;
}

.presentation-texte p {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #000000d2;
}

.presentation-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portrait {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.contact-info p {
    margin: 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.button {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 50px;
}

.button a {
    color: white;
    text-decoration: none;
}

.button:hover{
    background-color: #007bff;
}

/* Sections */
section {
    padding: 40px 20px;
    margin: 20px 0;
    background-color: #C4BBAF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    max-width: 1200px;
    margin: 20px auto;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #9B1B30;
}

/* Compétences */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skill {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    width: calc(33.333% - 20px);
    border-radius: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.skill:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.skill h3 {
    margin-bottom: 10px;
    color: #4B3D3A;
}

.skill-image {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.softskill {
    background-color: #D8B4A0;
}


.hardskill1 {
    background-color: #A7B49C;
}

.hardskill2 {
    background-color: #D9C7B5;
}

/* Projets */
.projets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.projet {
    background-color: #ece3e3;
    border: 1px solid #ddd;
    padding: 20px;
    width: calc(33.333% - 20px);
    border-radius: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.projet:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.projet h3 {
    margin-bottom: 10px;
    color: #4B3D3A;
}

.projet-image {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.footer-contenu {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    margin: 10px 0;
    display: inline;
}

footer a {
    color: white;
}

/* scroll-to-top */

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    color: white;
    width: 46px; /* Largeur */
    height: 46px; /* Hauteur */
    border: none;
    border-radius: 50%; /* Pour rendre le bouton rond */
    display: none; /* Cacher le bouton par défaut */
    justify-content: center; /* Centrer le texte horizontalement */
    align-items: center; /* Centrer le texte verticalement */
    text-align: center; /* Centrer le texte */
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 24px; /* Taille de la flèche */
}

.scroll-to-top:hover {
    background-color: #0056b3;
}


/* Responsive */
@media (max-width: 768px) {
    .skill, .project {
        width: 100%;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header h2 {
        font-size: 0.8rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li a {
        font-size: 1rem;
    }

    .presentation-contenu {
        flex-direction: column;
        text-align: center;
    }

    .presentation-contact {
        margin-top: 20px;
    }
}