@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

ol, ul {
    list-style: none;
}

*, ::before, ::after {
    box-sizing: border-box;
}

sup {
    font-size: 0.5em;
    vertical-align: super;
    line-height: 0;
}

html, body {
    height: 100%;
    font-family: "Roboto", sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    width: 70%;
    margin: 0 auto;
    background-color: #FEFFFB;
    min-height: 100vh;
    justify-content: space-between;
}

main {
    display: flex; 
    gap: 4rem;
    justify-content: space-between;
    padding-top: 2rem;
    padding-bottom: 2rem;
    flex: 1;
    align-items: center;
}

.content{
    display: flex;
    gap: 2rem;
    margin-inline: auto;
}

header img {
    width: 45px;
}

.header__img{
    width: 180px;
    margin-left: 0.8rem;
}

.card {
    background-color: white;
    box-shadow: 0px 4px 32px 0px rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: slideFromLeft 0.6s ease-out forwards;
    flex: 2;

}

.card-header {
    position: relative;
    width: 100%;
    z-index: 10;
}

.card-header img {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.img-mobile {
    display: none !important;
}

.card-header-text {
    color: #363636;
    position: absolute;
    top: 80%;
    width: 100%;
    font-size: 1rem;
}

.card-header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0D0D0D;
    text-align: center;
}

.card-header-text p {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-wrap: balance;
}

.card-footer {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.compteur-container {
    display: flex;
    align-items: center;
    justify-content: space-around;  
    gap: clamp(0.5rem, 2vw, 1.5rem);
    background-color: #EFEFEF;
    padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem);
    border-radius: 80px 10px 80px 10px;
    width: 100%;
    position: relative;
    margin-top: 2rem;
}

.feuille-deco {
    position: absolute;
    width: 35px;
    height: auto;
    z-index: 10;
    top: -2px;
    left: 1px;
    transform: rotate(5deg);
    opacity: 0;
    animation: fallingLeaf 3.5s ease-in-out 0.5s forwards;
}

/* --- ANIMATION DE LA FEUILLE --- */

@keyframes fallingLeaf {
    0% {
        opacity: 0;
        transform: translate(80px, -200px) rotate(-50deg); 
    }
    15% {
        opacity: 1;
    }
    40% {
        transform: translate(-70px, -80px) rotate(35deg);
    }
    75% {
        transform: translate(50px, -30px) rotate(-25deg);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(5deg); 
    }
}

.bloc-temps {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- ANIMATIONS ROULEAU --- */

.chiffre {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: bold;
    color: #111;
    display: flex;
    justify-content: center;
}

.digit-container {
    display: inline-block;
    position: relative;
    height: 1.2em;
    line-height: 1.2em;
    overflow: hidden;
    width: 1ch;
    text-align: center;
}

.digit-container span {
    display: block;
    width: 100%;
    text-align: center;
}

.static-val {
    display: block;
}

.old-val {
    animation: slideOutUp 0.4s ease-in-out forwards;
}

.new-val {
    position: absolute;
    top: 0;
    left: 0;
    animation: slideInUp 0.4s ease-in-out forwards;
}

@keyframes slideOutUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

@keyframes slideInUp {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.label {
    font-size: clamp(0.5rem, 1.5vw, 0.8rem);
    text-transform: uppercase;
    color: #555;
    margin-top: 0.5rem;
}

.separateur {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: bold;
    padding-bottom: 1.5rem;
}

.animate-pop {
    animation: pop 0.3s ease-out;
    display: inline-block;
}

.calendar-card {
    background-color: white;
    box-shadow: 0px 4px 32px 0px rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-top: 1rem solid #5E6F2A;
    animation: slideFromRight 0.6s ease-out forwards;
    flex: 1;
}

.calendar-card img{
        width: 30px;
}

.icon-container {
    display: flex;
    justify-content: center;
    padding: 0.6rem 0.8rem;
    background-color: #E6E6E6;
    border-radius: 0.5rem;
    margin-top: 3rem;
}

.icon-container img{
    width: 40px;
}

.calendar-card a {
    text-decoration: none;
    background-color: #E9355A;
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    gap: 1rem;
    color: white;
    font-size: 0.8rem;
    align-items: center;
    width: 100%;
    justify-content: center;
}

/* --- HOVER DU BOUTON (Effet rouleau comme le compteur) --- */

.texte-rouleau {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.texte-base, 
.texte-nouveau {
    display: block;
    transition: transform 0.3s ease-in-out;
}

.texte-nouveau {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

.calendar-card a:hover .texte-base, 
.btn-mobile:hover .texte-base {
    transform: translateY(-100%);
}

.calendar-card a:hover .texte-nouveau, 
.btn-mobile:hover .texte-nouveau {
    transform: translateY(-100%);
}

.calendar-card-text h1, p {
    text-align: center;
}

.calendar-card-text h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0D0D0D;
}

.calendar-card-text p {
    color: #363636;
    font-size: 0.8rem;
    padding-top: 1rem;
    margin: 0 auto;
}

footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-content: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

footer a {
    text-decoration: none;
    color: #363636;
    font-size: 0.8rem;
}

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

footer p, img {
    color: #363636;
}

footer p {
    font-size: 0.8rem;
}

footer img {
    width: 70%;
}

footer div {
    gap: 1.5rem;
    display: flex;
}

/* --- ANIMATIONS D'ENTRÉE --- */

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- MENTIONS LEGALES --- */

.mentions-legales-page{
    width: 80%;
    margin: 0 auto;}

.mentions-legales-container {
    display: block;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.mentions-legales-container p {
    margin-bottom: 1rem;
    text-align: left;
}

.mentions-legales-container a {
    color: #2980b9;
    text-decoration: underline;
}

.mentions-legales-container h1 {
    color: #0D0D0D;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
}

.mentions-legales-container h2 {
    color: #0D0D0D;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 5px solid #0D0D0D;
    padding-left: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.mentions-legales-container h3 {
    color: #363636;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.mentions-legales-container h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

.mentions-legales-container ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.mentions-legales-container ul li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.mentions-legales-container ul li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #2980b9;
}

.mentions-legales-container .version {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.mentions-legales-container hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 40px 0;
}

.mentions-legales-container .btn-retour {
    font-family: Montserrat;
    display: inline-block;
    margin-bottom: 2rem;
    color: #363636;
    text-decoration: none;
    font-weight: bold;
}

.mentions-legales-container .btn-retour:hover {
    text-decoration: underline;
}


/* --- RESPONSIF --- */

.btn-mobile {
    display: none;
    text-decoration: none;
    background-color: #E9355A;
    padding: 1rem;
    border-radius: 1rem;
    gap: 1rem;
    color: white;
    font-size: 0.8rem;
    align-items: center;
    width: 100%;
    justify-content: center;
}

@media screen and (max-width: 1024px) {
    
    body {
        max-width: 740px;
        width: 90%;
    }

    main {
        flex-direction: column;
        gap: 1.5rem;
    }

    .card {
        max-width: 100%;
        box-shadow: none; 
        background-color: transparent; 
        border-radius: 0;
    }

    .img-pc {
        display: none !important;
    }

    .img-mobile {
        display: block !important;
        border-radius: 1rem;
    }

    .card-header-text {
        position: static;
        margin-top: 1.5rem;
    }

    .card-header h1{
        text-wrap: balance;
    }
    
    .card-header-text p {
        font-size: 1rem;
    }

    .card-footer {
        padding: 1.5rem 0 0 0; 
    }

    .feuille-deco {
        top: 5px;
        left: 10px;
        width: 20px;
    }

    .calendar-card {
        display: none;
    }

    .btn-mobile {
        display: flex;
        font-size: 1rem;
    }

    .btn-mobile img{
        width: 30px;
    }

    footer {
        flex-direction: column;
        align-content: flex-start;
        gap: 1rem;
        padding-bottom: 2rem;
    }
}

@media screen and (max-width: 768px) {

    header img {
        width: 30px;
    }

    .header__img{
        width: 120px;
        margin-left: 0.4rem;
    }
}

header, footer {
    width: 100%;
    max-width: 1518px;
    margin: 0 auto;
}