:root {
    --primary-color: #39d7e2;
    --secondary-color: #333;
    --text-color: #f0f0f0;
    --font-family: system-ui, 'Arial', sans-serif;
    --font-size-title: 2.5em;
    --font-size: 16px;
    --header-height: 100vh;
    --background-color: #222222;
    --border-color: #444;
    --clients-background-color: #222222;
    --about-background-color: #174553;
    --about-text-color: #ccc;
    --footer-background-color: #1a1a1a;
    --nav-background-left: #78bace;
    --nav-shadow-color: #78bace;
    --nav-ico-color: white;
    --nav-text-color: white;
    --color-tipsy: #39d7e2;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    background: linear-gradient(to right, var(--background-color), var(--secondary-color));
    color: var(--text-color);
    margin: 0;
    padding: 0; max-width: 100vw; overflow-x: hidden;
}
main, header { padding: 0; }
a { color: var(--nav-text-color); text-decoration: none; }
a:hover { color: var(--primary-color); }

.bloc-height { min-height: var(--header-height); }

.flexcontainer {
    display: flex;
    flex-flow: row wrap; position: relative;
}
.flexcenter { justify-content: center; }
.flexaligncenter { align-content: center; }
.flexalignitemcenter { align-items: center; }
.flexcolumn { display: flex; flex-direction: column; }
.flexstart{ align-content: flex-start; }
.flexeven{ align-content: space-evenly; }

.shadow {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.border {
    border: 1px solid var(--border-color);
}

.border-radius {
    border-radius: 5px;
}

.header {
    padding: 20px;
    text-align: center;
}
h1, h2 { width: 100%; text-align: center; }
h3 { font-size: 18px; }

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: var(--text-color);
    
}

section {
    padding: 10vh 5vw; 
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: var(--footer-background-color);
}

/* MENU LEFT SWIFT */

.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    background: var(--nav-background-left);
    padding: 10px;
    height: 100vh;
    width: 42px; z-index: 9999;
}

.side-nav ul {
    list-style: none; padding: 0; margin: 0;
}

.side-nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.side-nav a:hover {
    color: white;
}

.side-nav i {
    font-size: 1.1rem; padding: 10px 0;
    text-align: center;
    color: var(--nav-ico-color); display: flex; justify-content: center; align-items: center;
}

.side-nav span {
    opacity: 0;
    visibility: hidden;
    margin-left: 0.5rem;
    transform: translateX(-1rem);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.side-nav a:hover { padding: 20px 20px 20px 0; }

.side-nav a:hover span {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    padding-left: 20px; text-shadow: 0px 0px 10px var(--nav-shadow-color);
}

.side-nav a:hover i {
    transform: scale(1.5);
    background: var(--nav-background-left);
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    width: 60px; height: 50px;
}


/* Animation lettre par lettre */
.animate-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(1em);
}

.animate-text.visible span {
    animation: revealLetter 0.5s forwards;
}

@keyframes revealLetter {
    from {
        opacity: 0;
        transform: translateY(1em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délai pour chaque lettre */
.animate-text.visible span:nth-child(1) { animation-delay: 0.1s; }
.animate-text.visible span:nth-child(2) { animation-delay: 0.2s; }
.animate-text.visible span:nth-child(3) { animation-delay: 0.3s; }
.animate-text.visible span:nth-child(4) { animation-delay: 0.4s; }
.animate-text.visible span:nth-child(5) { animation-delay: 0.5s; }
.animate-text.visible span:nth-child(6) { animation-delay: 0.6s; }
.animate-text.visible span:nth-child(7) { animation-delay: 0.7s; }
.animate-text.visible span:nth-child(8) { animation-delay: 0.8s; }
.animate-text.visible span:nth-child(9) { animation-delay: 0.9s; }
.animate-text.visible span:nth-child(10) { animation-delay: 1.0s; }
.animate-text.visible span:nth-child(11) { animation-delay: 1.1s; }
.animate-text.visible span:nth-child(12) { animation-delay: 1.2s; }
.animate-text.visible span:nth-child(13) { animation-delay: 1.3s; }
.animate-text.visible span:nth-child(14) { animation-delay: 1.4s; }
.animate-text.visible span:nth-child(15) { animation-delay: 1.5s; }
.animate-text.visible span:nth-child(16) { animation-delay: 1.6s; }
.animate-text.visible span:nth-child(17) { animation-delay: 1.7s; }
.animate-text.visible span:nth-child(18) { animation-delay: 1.8s; }
.animate-text.visible span:nth-child(19) { animation-delay: 1.9s; }
.animate-text.visible span:nth-child(20) { animation-delay: 2.0s; }
.animate-text.visible span:nth-child(21) { animation-delay: 2.1s; }
.animate-text.visible span:nth-child(22) { animation-delay: 2.2s; }
.animate-text.visible span:nth-child(23) { animation-delay: 2.3s; }
.animate-text.visible span:nth-child(24) { animation-delay: 2.4s; }
.animate-text.visible span:nth-child(25) { animation-delay: 2.5s; }
.animate-text.visible span:nth-child(26) { animation-delay: 2.6s; }
.animate-text.visible span:nth-child(27) { animation-delay: 2.7s; }
.animate-text.visible span:nth-child(28) { animation-delay: 2.8s; }
.animate-text.visible span:nth-child(29) { animation-delay: 2.9s; }
.animate-text.visible span:nth-child(30) { animation-delay: 3.0s; }
.animate-text.visible span:nth-child(31) { animation-delay: 3.1s; }
.animate-text.visible span:nth-child(32) { animation-delay: 3.2s; }
.animate-text.visible span:nth-child(33) { animation-delay: 3.3s; }
.animate-text.visible span:nth-child(34) { animation-delay: 3.4s; }
.animate-text.visible span:nth-child(35) { animation-delay: 3.5s; }