/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #fff;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
   CONTAINER GENERAL
===================================================== */

.header-nav,
.hero-container,
.concept-container,
.notice-container,
.updates-container,
.comments-container,
.footer-container {
    width: min(100% - 40px, 1000px);
    margin: 0 auto;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #fff;
    border-bottom: 1px solid #eee;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-nav {
    min-height: 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    font-size: 1.3rem;
    font-weight: bold;
}

.header-links {
    display: flex;
    gap: 25px;
}

.header-links a:hover {
    color: #555;
}

.header-logo {
    width: 55px;
    height: 55px;

    max-width: 55px;
    max-height: 55px;

    object-fit: contain;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    padding: 100px 0;

    background: #f7f7f7;

    scroll-margin-top: 65px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;
}

.hero-text {
    /* Personnalisation de la partie texte HERO */
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-description {
    margin-bottom: 30px;
    color: #555;
}

.hero-button {
    display: inline-block;

    padding: 12px 22px;

    border-radius: 6px;

    background: #222;
    color: #fff;
}

.hero-button:hover {
    background: #444;
}

.hero-image-container {
    display: flex;
    justify-content: center;
}

.hero-image {
    max-height: 550px;

    border-radius: 15px;
}


/* =====================================================
   CONCEPT
===================================================== */

.concept {
    padding: 100px 0;

    background: #fff;

    scroll-margin-top: 65px;
}

.concept-container {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;
}

.concept-text {
    /* Personnalisation de la partie texte CONCEPT */
}

.concept-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.concept-description {
    margin-bottom: 30px;
    color: #555;
}

.concept-button {
    display: inline-block;

    padding: 12px 22px;

    border-radius: 6px;

    background: #222;
    color: #fff;
}

.concept-button:hover {
    background: #444;
}

.concept-image-container {
    display: flex;
    justify-content: center;
}

.concept-image {
    max-height: 550px;

    border-radius: 15px;
}


/* =====================================================
   NOTICE
===================================================== */

.notice {
    padding: 100px 0;

    background: #f7f7f7;

    scroll-margin-top: 65px;
}

.notice-container {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;
}

.notice-text {
    /* Personnalisation de la partie texte CONCEPT */
}

.notice-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.notice-description {
    margin-bottom: 30px;
    color: #555;
}

.notice-button {
    display: inline-block;

    padding: 12px 22px;

    border-radius: 6px;

    background: #222;
    color: #fff;
}

.notice-button:hover {
    background: #444;
}

.notice-image-container {
    display: flex;
    justify-content: center;
}

.notice-image {
    max-height: 550px;

    border-radius: 15px;
}

/* =====================================================
   UPDATES
===================================================== */

.updates {
    padding: 80px 0;

    background: #fff;

    scroll-margin-top: 65px;
}

.updates-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.updates-description {
    color: #666;
    margin-bottom: 40px;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.updates-loading {
    color: #666;
}


/* Carte APK */

.update {
    padding: 25px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.update h3 {
    margin-bottom: 5px;
}

.update small {
    color: #888;
}

.update p {
    margin-top: 10px;
}

.update .button {
    display: inline-block;

    padding: 12px 22px;

    border-radius: 6px;

    background: #222;
    color: #fff;
}

.update .button:hover {
    background: #444;
}


/* =====================================================
   COMMENTS
===================================================== */

.comments {
    padding: 80px 0;

    background: #f7f7f7;

    scroll-margin-top: 65px;
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.comments-description {
    color: #666;
    margin-bottom: 40px;
}

.comments-form {
    max-width: 700px;

    margin-bottom: 50px;
}

.comments-field {
    margin-bottom: 20px;
}

.comments-field label {
    display: block;

    margin-bottom: 7px;

    font-weight: bold;
}

.comments-field input,
.comments-field textarea {
    width: 100%;

    padding: 12px;

    border: 1px solid #ccc;
    border-radius: 5px;

    font: inherit;
}

.comments-field textarea {
    resize: vertical;
}

.comments-button {
    display: inline-block;

    padding: 12px 22px;

    border: 0;
    border-radius: 6px;

    background: #222;
    color: #fff;

    cursor: pointer;

    font-size: 1rem;
}

.comments-button:hover {
    background: #444;
}

.comments-message {
    margin-top: 15px;
}


/* Commentaire individuel */

.comments-list {
    max-width: 700px;
}

.comment {
    padding: 20px;

    margin-bottom: 15px;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 8px;
}

.comment-author {
    font-weight: bold;
}

.comment-date {
    color: #888;
    font-size: 0.85rem;
}

.comment-text {
    margin-top: 10px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    padding: 30px 0;

    background: #f7f7f7;

    color: #888;

    text-align: center;
}

.footer-text {
    margin: 0;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    /* HEADER */

    .header-links {
        display: none;
    }


    /* HERO */

    .hero {
        padding: 60px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }


    /* CONCEPT */

    .concept {
        padding: 60px 0;
    }

    .concept-container {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .concept-title {
        font-size: 2.2rem;
    }

    /* CONCEPT */

    .notice {
        padding: 60px 0;
    }

    .notice-container {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .notice-title {
        font-size: 2.2rem;
    }

    /* UPDATES */

    .updates {
        padding: 60px 0;
    }

    .update {
        flex-direction: column;

        align-items: flex-start;
    }


    /* COMMENTS */

    .comments {
        padding: 60px 0;
    }

}
