:root{
    --background:#0F0F0F;
    --gold:#C6A664;
    --cream:#F5F1E8;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background-color:var(--background);
    color:var(--cream);
    font-family:Garamond, Helvetica ;
    min-height:100vh;
}


header{
    display:flex;
    align-items: center;
    border-bottom:1px solid var(--gold);
    position:relative;
    min-height:120px;
}

.logo-header{
    width: 90%;
    max-width: 140px;
    height:auto;
    margin-left:110px;
}

.coin{
    width: 90%;
    max-width: 140px;
    height:140px;
    perspective: 1000px;
    overflow: hidden;
}

.coin-inner{
    position: relative;
    width: 90%;
    max-width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style:preserve-3d;
    cursor:pointer;
}

.coin:hover .coin-inner{
    transform: rotateY(180deg);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap : 10px;
    padding-right: 100px;
}

.language-switcher img {
    width: 90%;
    max-width: 40px;
    height: auto;
    cursor: pointer;
    border: 1px solid var (var(--gold));
}

.language-switcher img:hover {
    transform: scale(1.1);
}

.face{
    position: absolute;
    width: 90%;
    max-width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.verso{
    transform:rotateY(180deg);
}

.face img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

nav{
    position:relative;
    justify-content:center;
    display:flex;
    gap:80px;
    padding-left: 50px;
    padding-right: 50px;
    flex:1;
}

nav a{
    text-decoration:none;
    color:var(--gold);
    border:1px solid var(--gold);
    padding:10px 20px;
    border-radius:6px;
    transition:0.3s;
    max-width: 200px;
    flex: 1 1 0;
    min-width: 0px;
    display:flex;
    justify-content: center;
    font-size:20px;
}

nav a:hover{
    background-color:var(--gold);
    color:var(--background);
}

main{
    position:relative;
    min-height:calc(100vh - 160px);
    padding:120px;
}

.texte{
    position:relative;
    width:55%;
    max-width:900px;
}

.texte p{
    margin-bottom:20px;
    line-height:1.8;
    text-align: justify;
}

span{
    display:inline;
}

h1,
h2{
    color:var(--gold);
    margin-bottom:30px;
    font-weight:normal;
}

h1{
    font-size:3rem;
}

h2{
    font-size:2.5rem;
    margin-top: 80px;
}

.gold{
    color:var(--gold);
    font-size:1.2rem;
    font-weight:500;
    margin-top:25px;
    margin-bottom:10px;
}

.image{
    position:absolute;
    top:0;
    right:0;
    width:45%;
    height:100%;
    z-index: -1;
}

.image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:left;
}

.image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to left,
        rgba(15,15,15,0) 0%,
        rgba(15,15,15,1) 100%
    ),
    linear-gradient(
        to bottom,
        rgba(15,15,15,0) 0%,
        rgba(15,15,15,1) 100%
    );
}

.cta{
    display:inline-block;
    margin-top:40px;
    margin: bottom 80px;
    padding:12px 30px;
    text-decoration:none;
    color:var(--gold);
    border:1px solid var(--gold);
    border-radius:8px;
    transition:0.3s;
}

.cta:hover{
    background-color:var(--gold);
    color:var(--background);
}

footer{
    position:relative;
    z-index:10;
    border-top:1px solid #C6A664;
    padding:50px 30px;
    background-color:#0F0F0F;
    display: flex;
    align-items: center;
}

.logo-footer{
    width:140px;
    height:auto;
}

.texte-footer{
    left:50%;
    transform: translateX(-50%);
    position: absolute;
}

a:link{
    color:#C6A664
}

@media (max-width:1024px){

    .logo-header{
        margin-left:30px;
    }

    nav{
        gap:30px;
        padding-left:20px;
        padding-right:20px;
    }

    nav a{
        font-size:18px;
    }

    main{
        padding:60px;
    }

    .texte{
        width:65%;
    }

    .image{
        width:35%;
    }

    h1{
        font-size:2.5rem;
    }

    h2{
        font-size:2rem;
    }
}

@media (max-width:768px){

    header{
        flex-direction:column;
        padding:20px;
        gap:20px;
    }

    .logo-header{
        margin-left:0;
    }

    nav{
        flex-direction:column;
        width:100%;
        gap:15px;
        padding:0;
    }

    nav a{
        width:100%;
        max-width:none;
        font-size:18px;
    }

    main{
        padding:30px;
    }

    .texte{
        width:100%;
        max-width:none;
    }

    .image{
        display:none;
    }

    h1{
        font-size:2rem;
    }

    h2{
        font-size:1.5rem;
    }

    footer{
        flex-direction:column;
        text-align:center;
        gap:20px;
    }

    .texte-footer{
        position:static;
        transform:none;
    }

    .language-switcher{
        padding-right:0;
    }
}