@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root{
    --blue-night:#17263B;
    --blue:#243B5A;
    --gold:#D7B77A;
    --ivory:#F7F3EA;
    --text:#455367;
}

/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Inter",sans-serif;
    background:var(--ivory);
    color:var(--text);
    line-height:1.9;
}

img{
    display:block;
    width:100%;
}

.container{
    width:min(1062px,92%);
    margin:auto;
}

/* PAGE */

#remerciements-page{
    padding:126px 0 45px;
}

/* HEADER */

.page-header{
    text-align:center;
    margin-bottom:63px;
}

.page-header h1{
    margin:19.8px 0;
    font-family:"Cormorant Garamond",serif;
    font-size:clamp(2.52rem,5vw,4.05rem);
    font-weight:600;
    color:var(--blue-night);
}

.intro{
    max-width:648px;
    margin:0 auto 22.5px;
    font-size:0.972rem;
    color:var(--text);
}

.title-divider{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16.2px;
}

.title-divider span:first-child,
.title-divider span:last-child{
    width:90px;
    height:0.9px;
    background:rgba(215,183,122,.55);
}

.ornament{
    color:var(--gold);
}

/* CAROUSEL */

.partners{
    margin-bottom:90px;
}

.carousel{
    display:flex;
    overflow:hidden;
    padding:18px 0;
}

.group{
    display:flex;
    align-items:center;
    gap:3.6rem;
    flex-shrink:0;
    animation:scroll 28s linear infinite;
}

.card{
    width:153px;
    height:81px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.card img{
    width:100%;
    height:100%;
    object-fit:contain;
    opacity:.75;
    transition:.35s;
}

.card img:hover{
    opacity:1;
    transform:scale(1.05);
}

/* REMERCIEMENTS */

.thanks{
    max-width:810px;
}

.section-title{
    text-align:center;
    margin-bottom:63px;
}

.separator{
    display:block;
    width:54px;
    height:1.8px;
    background:var(--gold);
    margin:0 auto 21.6px;
}

.section-title h2{
    font-family:"Cormorant Garamond",serif;
    font-size:2.52rem;
    font-weight:600;
    color:var(--blue-night);
}

.thanks-list{
    list-style:none;
    columns:2;
    column-gap:81px;
}

.thanks-list li{
    break-inside:avoid;
    position:relative;
    padding-left:25.2px;
    margin-bottom:21.6px;
    color:var(--text);
}

.thanks-list li::before{
    content:"✦";
    position:absolute;
    left:0;
    color:var(--gold);
    font-size:0.72rem;
}

/* ANIMATION */

.page-header,
.partners,
.thanks{
    animation:fadeUp .8s ease both;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(31.5px);
    }

    to{
        opacity:1;
        transform:none;
    }

}

@keyframes scroll{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-100%);
    }

}

/* RESPONSIVE */

@media(max-width:810px){

    #remerciements-page{
        padding:108px 0 81px;
    }

    .thanks-list{
        columns:1;
    }

    .group{
        gap:2.25rem;
        animation-duration:22s;
    }

    .card{
        width:126px;
        height:72px;
    }

}

@media(max-width:540px){

    .page-header{
        margin-bottom:54px;
    }

    .page-header h1{
        font-size:2.07rem;
    }

    .intro{
        font-size:0.9rem;
    }

    .section-title h2{
        font-size:1.8rem;
    }

}