:root {
    --title-color-main: #1E1926;
    --text-color-second: #3D344C;
    --bg-color: #F9F9F9;
    --brand-color: #0600FF;
}

body {
    color: var(--text-color-main);
    background-color: var(--bg-color);
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.section {
    display: grid;
    column-gap: 32px;
    grid-template-columns: repeat(12, 1fr);
    margin-inline: 160px;
}

.align-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bold {
    font-weight: 700;
}

h1,h2,h3,h4,p{
    margin: 0;
}

h1{
    font-size: 3rem;
    line-height: 54px;
    font-weight: 600;
}

h2{
    font-size: 2.5rem;
    font-weight: 600;
}

h3{
    font-size: 2rem;
    font-weight: 600;
}

h4{
    font-size: 1.5rem;
    font-weight: 600;
}

p{
    font-size: 1rem;
    color: var(--text-color-second);
}

.subtitle{
    font-size: 0.75rem;
}

.brand-color {
    color: var(--brand-color);
}

#title{
    cursor: pointer;
    color: var(--title-color-main);
}

header {
    padding-inline: 24px;
    padding-block: 20px;
    background-color: white;
    box-shadow: 0px 1px 2px #00000020;
    border-radius: 24px;
    justify-content: space-between;
    position: fixed;
    top: 30px;
    left: 80px;
    right: 80px;
    z-index: 100;
    box-sizing: border-box;
}

header, header > div {
    display: flex;
    flex-direction: row;
    height: fit-content;
    align-items: center;
    gap: 45px;
}

#header-background{
    width: 100%;
    height: 80px;
    background-color: var(--bg-color);
    position: fixed;
    justify-self: center;
    top: 0;
    z-index: 99;
}

button{
    border: none;
    outline: none;
    background-color: var(--brand-color);
    border-radius: 12px;
    color: white;
    padding-inline: 24px;
    padding-block: 16px;
    font-size: 14px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    transition: all 150ms ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

button.small{
    padding-inline: 16px;
    padding-block: 8px;
    font-size: 14px;
    border-radius: 10px;
}

button:hover{
    background-color: #0806CD;
    transform: translateY(-1px);
}

button:active{
    background-color: #0B0A5C;
    transform: translateY(0px);
}

button.secondary{
    background-color: white;
    color: var(--text-color);
    box-shadow: 0px 1px 2px #00000020;
}

button.secondary:hover{
    background-color: #F9F9F9;
}

button.secondary:active{
    background-color: #D1D1D1;
}

a{
    border: none;
    outline: none;
    text-decoration: none;
}

.link {
    font-size: 14px;
    cursor: pointer;
    color: #1E1926;
    transition: all 150ms;
}

.link:hover {
    cursor: pointer;
    color: #5b5663;
    transform: translateY(-1px);
}

.link:active {
    cursor: pointer;
    color: #1E1926;
    transform: translateY(0px);
}

.link.brand-color {
    font-size: 14px;
    cursor: pointer;
    color: var(--brand-color);
    transition: all 150ms;
}

.link:hover.brand-color {
    cursor: pointer;
    color: #0806CD;
    transform: translateY(-1px);
}

.link:active.brand-color {
    cursor: pointer;
    color: var(--brand-color);
    transform: translateY(0px);
}

#landing-context {
    grid-column: 1 / 7;
}

.caroussel{
    display: flex;
    border-radius: 32px;
    overflow: hidden;
    position: relative;

    grid-column: 8 / 13;
}

.caroussel > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.4s ease;
}

.caroussel > img:hover{
    transform: scale(1.1);
    cursor: pointer;
}

.profile-pic{
    width: 350px;
    height: 350px;
    border-radius: 100%;
}

/* Animation fade-in vers le haut */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Délais progressifs - appliquez ces classes pour créer un effet de cascade */
.fade-in-up.delay-1 { transition-delay: 0.15s; }
.fade-in-up.delay-2 { transition-delay: 0.3s; }
.fade-in-up.delay-3 { transition-delay: 0.45s; }
.fade-in-up.delay-4 { transition-delay: 0.6s; }
.fade-in-up.delay-5 { transition-delay: 0.75s; }
.fade-in-up.delay-6 { transition-delay: 0.9s; }
.fade-in-up.delay-7 { transition-delay: 1.05s; }
.fade-in-up.delay-8 { transition-delay: 1.2s; }

/* Délai automatique pour les enfants directs d'un conteneur */
.fade-in-up-container > .fade-in-up:nth-child(1) { transition-delay: 0s; }
.fade-in-up-container > .fade-in-up:nth-child(2) { transition-delay: 0.15s; }
.fade-in-up-container > .fade-in-up:nth-child(3) { transition-delay: 0.3s; }
.fade-in-up-container > .fade-in-up:nth-child(4) { transition-delay: 0.45s; }
.fade-in-up-container > .fade-in-up:nth-child(5) { transition-delay: 0.6s; }
.fade-in-up-container > .fade-in-up:nth-child(6) { transition-delay: 0.75s; }
.fade-in-up-container > .fade-in-up:nth-child(7) { transition-delay: 0.9s; }
.fade-in-up-container > .fade-in-up:nth-child(8) { transition-delay: 1.05s; }
.fade-in-up-container > .fade-in-up:nth-child(n+9) { transition-delay: 1.2s; }