/* global */
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root{
    --bg: #101214;
    --bg-card: #181b1f;
    --border: #262a30;
    --text: #9a9da3;
    --text-strong: #fff;
    --accent: #d4a017;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

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

h1, h2, h3, .white{
    color: var(--text-strong);
}

a{
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover{
    color: var(--text-strong);
}

.grid-2{
    display: grid;
    grid-template-columns: 2fr 3fr;
    min-height: 100vh;
}

/* section 1 : panneau fixe */
.section-1{
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-right: 1px solid var(--border);
}

.section-1 h1{
    font-size: 2rem;
    margin: 1.5rem 0 0.5rem;
    min-height: 2.6rem;
}

.section-1 p{
    font-size: 1.1rem;
    margin: 0 0 2rem;
}

.menu{
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.menu a{
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* section 2 : contenu */
.section-2{
    padding: 4rem 6vw 3rem;
    max-width: 900px;
}

.section-2 section{
    margin-bottom: 3.5rem;
}

.section-2 h2{
    font-size: 1.8rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.section-2 p{
    font-size: 1.1rem;
    margin: 0 0 0.6rem;
}

.section-2 p i{
    color: var(--accent);
    width: 1.4rem;
}

/* cartes de services */
.service{
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.2rem;
    transition: border-color 0.2s, transform 0.2s;
}

.service:hover{
    border-color: var(--accent);
    transform: translateY(-2px);
}

.service h3{
    font-size: 1.25rem;
    margin: 0 0 0.8rem;
}

.service h3 i{
    color: var(--accent);
    margin-right: 0.6rem;
}

.service ul{
    margin: 0;
    padding-left: 1.3rem;
}

.service li{
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.service li::marker{
    color: var(--accent);
}

footer{
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    font-size: 0.95rem;
}

/* media queries */
@media (max-width: 780px){
    .grid-2{
        grid-template-columns: 1fr;
    }
    .section-1{
        position: static;
        height: auto;
        padding: 4rem 1.5rem 2.5rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .menu{
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.2rem;
    }
    .section-2{
        padding: 2.5rem 1.25rem 2rem;
    }
    .section-2 h2{
        font-size: 1.5rem;
    }
}
