:root {
    --primary-color: #24292e;
    --accent-color: #0366d6;
    --background-color: #f6f8fa;
    --border-radius: 6px;
    --transition-speed: 0.2s;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
    font-size: 1.125rem;
    margin: 0;
    padding: 0;
}

body,
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
    display: none;
}


/* Carrousel plein écran */
.carousel {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.carousel-slide p {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Boutons indicateurs du carrousel */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #777;
}

/* Contenu principal */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(27, 31, 35, 0.12), 0 1px 2px rgba(27, 31, 35, 0.12);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(27, 31, 35, 0.2);
}

img.icon {
    width: 24px;
}

h1,
h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    color: var(--accent-color);
}

section {
    margin-bottom: 2rem;
}

p,
li {
    margin-bottom: 0.5rem;
}

ul {
    list-style: disc;
    margin-left: 2rem;
}

/* Style pour les projets */
.project {
    border: 1px solid #e1e4e8;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: transform var(--transition-speed) ease;
}

.project:hover {
    transform: translateX(5px);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

/* Effet d'apparition progressive */
.fade-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-item.visible {
    opacity: 1;
    transform: none;
}

.text-boxgrad,
.text-couleurlineargrad {
    background: linear-gradient(288deg, #ff8000, #f0c 53.24%, #04f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: rgb-wave 6s ease infinite;
}

@keyframes rgb-wave {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Mise en page responsive pour compétences et projets */
@media (min-width: 768px) {

    #skills ul,
    #projects {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}