
/* Imports des fonts */

@font-face {
    font-family: 'Dinot';
    src: url('../fonts/DINOT.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Dinot';
    src: url('../fonts/DINOT-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Dinot';
    src: url('../fonts/DINOT-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Dinot';
    src: url('../fonts/DINOT-Bold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Dinot';
    src: url('../fonts/DINOT-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'Dinot';
    src: url('../fonts/DINOT-Italic.ttf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Cocogoose';
    src: url('../fonts/Cocogoose.otf') format('opentype');
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body{
    overflow-x: hidden;
}
body{
    font-family: 'Dinot', sans-serif;
}
ul{
    list-style: none;
}
select{
	border-radius: 0;
}
a{
    text-decoration: none;
    color: var(--bleu);
    transition: .3s;
}
a:hover{
    color: var(--cyan);
}
img{
    max-width: 100%;
}
p{
    line-height: 1.4;
}
[id]{
    scroll-margin-top: 4rem;
}

/* Variables de couleurs */
:root {
    --bleu: #1D5570;
    --cyan: #5DAEB1;
    --blanc: #fff;
    --noir: #222221;
    --bleu-clair: rgb(93, 174, 177, .2);
    --bleu-fonce: rgb(29, 85, 112, .6);
}

/* Global */


/* Titres (h2) */
.titre{
    color: var(--bleu);
    font-family: 'Cocogoose';
    font-size: 1.5rem;
    font-weight: 400;
    position: relative;
    overflow: hidden;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.titre::after{
    position: absolute;
    content: '';
    background: url(../images/vague2.svg);
    background-repeat: no-repeat;
    background-position: left;
    background-size: contain;
    left: -6rem;
    bottom: 0;
    height: 1rem;
    width: 6rem;
    display: block;
    transition: left 1s;
}
.titre.in-viewport::after {
    left: 0; /* Déplacez la vague vers la gauche pour la faire apparaître */
}

/* Boutons */
.btn {
    padding: .5rem 1rem;
    border: solid var(--cyan) 1px;
    border-radius: 50px;
    color: var(--cyan);
    display: inline-block;
    margin: 1rem 0;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--cyan);
    color: var(--blanc);
    padding-right: 2.5rem;
}

.btn:hover::after {
    content: "\2192";
    color: var(--blanc);
    position: absolute;
    right: 1rem;
    top: 50%; 
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

/* Padding */
section, main{
    padding: 5rem 12%;
}
/* Responsive tablette */
@media screen and ( min-width:768px ) {
    section, main{
        padding: 7rem 15%;
    }
}
/* Responsive desktop */
@media screen and ( min-width:1170px ) {
    section, main{
        padding: 7rem 20%;
    }
}
/* Responsive écrans 4K */
@media screen and ( min-width:2500px ) {
    section, main{
        padding: 6rem 30%;
    }
}

/* Police pour grands écrans */
@media screen and ( min-width:2500px ) {
    *{
        font-size: 1.5rem;
    }
} 

/* Fil d'arianne */
.breadcrumb{
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}
.breadcrumb, .breadcrumb a{
    color: var(--blanc);
}


/*********
* HEADER *
*********/

.header{
    width: 100vw;
    position: fixed;
    z-index: 5;
    margin-top: 0;
    top: 0;
    display: flex;
}
.header .menu{
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 2rem;
    padding-bottom: 40vh;
}
.header .menu > a{
    text-align: center;
}
.header .menu__logo{
    width: 10rem;
    padding: 1rem;
    object-fit: contain;
}
.header .menu__container{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    width: 70%;
}
/* Enlever le checkbox */
.checkbox{
    display: none;
}

/* Responsive desktop */
@media screen and ( min-width:1170px ) {
    .header{
        width: 100vw;
        position: fixed;
        background-color: rgba(255, 255, 255, 0.9);
    }
    .header .menu__logo{
        height: 6rem;
        width: auto;
        transition: .3s height;
        filter: none;
    }
    /* Barre de navigation */
    .header .menu{
        flex-direction: row;
        min-height: initial;
        justify-content: center;
        gap: 10%;
        padding-bottom: 0;
    }
    .header .menu__container{
        flex-direction: row;
        gap: 4rem;
        width: initial;
    }
    .header .menu__lien a{
        color: var(--bleu);
        position: relative;
    }
    .header .menu__lien a:hover{
        color: var(--cyan);
    }
    .header .menu__lien.current-menu-item a::after{
        position: absolute;
        content: '';
        background: url(../images/vague.svg);
        /* background-repeat-y: no-repeat; */
        background-position: left;
        background-size: auto;
        left: 0;
        bottom: -.5rem;
        height: 3px;
        width: 100%;
        z-index: -1;
        display: block;
    }
}

/* Menu burger pour mobile et tablette */
@media screen and ( max-width:1170px ) {
    .checkbox{
        display: block;
        width: 40px;
        height: 32px;
        position: absolute;
        top: 1rem;
        left: 1rem;
        cursor: pointer;
        opacity: 0;
        z-index: 2;
        -webkit-touch-callout: none;
    }
    /* Burger style */
    .burger{
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1;
    }
    .burger span{
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;
        background: var(--cyan);
        border-radius: 3px;
        z-index: 1;
        transform-origin: 4px 0px;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    opacity 0.55s ease;
    }
    .burger span:first-child{
        transform-origin: 0% 0%;
    }
    .burger span:nth-last-child(1){
        transform-origin: 0% 100%;
    }
    /* Transformer le burger en croix */
    .header .checkbox:checked ~ .burger span{
        opacity: 1;
        transform: rotate(45deg) translate(-2.5px, -2.5px);
    }
    .header .checkbox:checked ~  .burger span:nth-last-child(2){
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }
    .header .checkbox:checked ~  .burger span:nth-last-child(1){
        transform: rotate(-45deg) translate(0, 0);
    }
    .header .menu{
        position: absolute;
        top: 0;
        left: 0;
        transform-origin: 0% 0%;
        transform: translate(-100%, 0);
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        width: 50%;
        background-color: var(--blanc);
    }
    .header .checkbox:checked ~ .menu{
        transform: none;
    }
    .header .menu__lien a{
        color: var(--bleu);
        font-weight: 200;
        position: relative;
    }
    .header .menu__container > :not(:last-child) ::after{
        position: absolute;
        content: '';
        background: url(../images/vague2.svg);
        background-repeat: no-repeat;
        background-position: left;
        background-size: contain;
        left: 0;
        bottom: -.75rem;
        height: 5px;
        width: 3rem;
        display: block;
    }
}
/* Le menu prend 100% de la taille de l'écran sur téléphone */
@media screen and ( max-width:650px ) {
    .header .menu{
        width: 100%;
    }
}





/*********
* FOOTER *
*********/

.footer{
    margin-top: 5rem;
    background-color: var(--bleu);
    padding: 5rem 15%;
    color: var(--blanc);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.footer a{
    color: var(--blanc);
    font-weight: 200;
}
.footer__logo{
    width: 50%;
    max-width: 15rem;
    object-fit: contain;
}
.footer__contact p{
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .25rem;
}
.footer__contact img{
    height: 1.5rem;
}
.footer__menu a{
    line-height: 1.5;
}

/* Responsive desktop */
@media screen and ( min-width:1170px ) {
    .footer{
        padding: 7rem 20%;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 5rem;
        position: relative;
        padding-bottom: 8rem;
    }
    .footer__logo{
        width: 11rem;
    }
    .footer__rgpd{
        position: absolute;
        bottom: 3rem;
        left: 20%;
        font-size: .875rem;
    }
    .footer__contact p{
        margin-bottom: .75rem;
    }
    .footer__contact img{
        transition: all .3s;
    }
    .footer__contact p:hover img{
        transform: rotate(10deg);
    }
    .footer a:hover{
        color: var(--cyan);
    }
}