/* Styles généraux */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

:root {
    --couleurPrincipale: #222222;
    --couleurSecondaire: #fbfbfb;
    --couleurTexte: #454545;
    --couleurAccent: #1B019B;
    --policeTitrePrincipal: "Fira Sans", sans-serif;
    --policeTitreSecondaire: "Fira Sans", sans-serif;
    --policeTexte: "roboto", sans-serif;
}

h1 {
    font-family: var(--policeTitrePrincipal);
    font-weight: 700;
    font-size: 60px;
    color: var(--couleurPrincipale);
    margin: 0;
    text-transform: uppercase;
    letter-spacing : 5px;
}

h2 {
    font-family: var(--policeTitreSecondaire);
    font-weight: 400;
    font-size: 18px;
    color: var(--couleurTexte);
    margin: 10px 0;
}

h3 {
    font-family: var(--policeTitreSecondaire);
    font-weight: 500;
    font-size: 22px;
    color: var(--couleurPrincipale);
    margin: 0;
}

h4 {
    font-family: var(--policeTitreSecondaire);
    font-weight: 500;
    font-size: 16px;
    color: var(--couleurPrincipale);
    margin: 0;
}

p {
    font-family: var(--policeTexte);
    font-size: 14px;
    color: var(--couleurTexte);
    margin: 0;
}

.bouton {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--couleurAccent);
    color: var(--couleurSecondaire);
    text-decoration: none;
    font-family: var(--policeTitreSecondaire);
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    box-shadow: 4px 4px 6px rgba(36, 68, 92, 0.3);
    transition: transform 0.25s ease;
}

.bouton:hover {
    transform: translateY(-2px) scale(1.03);
}

/* En-tête */
.hero-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    z-index: 1;
}

header {
    background-color: #fff;
    padding: 20px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    align-items: center;
    border-bottom: 1px solid rgba(36, 68, 92, 0.15);
}

header > :nth-child(1) {
    justify-self: start;
}

header > :nth-child(2) {
    justify-self: center;
}

header > :nth-child(3) {
    justify-self: end;
}

.logo a {
    text-decoration: none;
    font-size: 20px;
    color: #222222;
    font-family: "Kalam", cursive;
    font-weight: 700;
    letter-spacing : 7px;
}

.logo img {
    max-height: 30px; 
    width: auto;
    border-radius: 50%;
}

nav {
    display: flex;
    gap: 80px;
}

nav a {
    color: #222222;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    font-family: var(--policeTitreSecondaire);
    text-transform: uppercase;
}

nav a:hover, nav a.active {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icons i {
    font-size: 12px;
    color: var(--couleurSecondaire);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color:var(--couleurAccent);
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

/* Menu burger */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 32px;
    height: 23px;
    justify-content: space-between;
    z-index: 200;
    position: relative;
}

.burger span {
    background: var(--couleurPrincipale);
    height: 3px;
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
    left: 0;
}

.social-icons.mobile {
    display: none;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.burger span:nth-child(3) {
    bottom: 0;
}

/* Bloc 1 */
.bloc1 {
    position: relative;
    min-height: 220px;
}

.bloc1-media {
    height: 220px;
    overflow: hidden;
}

.bloc1-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bloc1-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    padding: 0 150px;
}
/*
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 30, 0.3);
    z-index: 1;
}
*/
/* Bloc 2 */
.parallax {
    position: relative;
    z-index: 2;
    background: #fff;
    margin-top: 250px;
    padding: 40px 0;
    transition: margin-top 0.2s ease-out;
}

/* Responsive */
@media screen and (max-width: 980px) {
    header {
        grid-template-columns: 1fr auto;
        padding: 20px 30px;
    }
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 30px 0;
        display: none;
        transition: 0.3s;
    }
    nav.active {
        display: flex;
        z-index: 100;
    }
    .social-icons {
        display: none; 
    }
    .burger {
        display: flex;
    }
    .social-icons.mobile {
        display: flex;
        gap: 25px;
        margin: 10px 0;
    }
    .social-icons.mobile a {
        text-decoration: none;
    }
    .burger.open span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }   
    .burger.open span:nth-child(2) {
        opacity: 0;
    }   
    .burger.open span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    .hero-wrapper {
        position: relative;
    }
    .parallax {
        margin-top: 0;
        padding: 0;
    }
    .bloc1-content {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 38px;
    }
    h2 {
        font-size: 14px;
    }
    h3 {
        font-size: 18px;
    }
    h4 {
        font-size: 15px;
    }
    .bloc1 {
        min-height: 180px;
    }
    .bloc1-media {
        height: 180px;
    }
    .bloc1-content {
        padding: 0 30px;
    }
}

/* Pied de page */
footer {
    padding: 15px 20px 10px 20px;
}

footer p {
    width: 100%;
    text-align: center;
    font-size: 10px;
}

footer a {
    color: var(--couleurTexte);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}