/* =========================================
   VARIABLES
========================================= */

:root {
    --wine: #440E03;
    --wine-light: #641c0e;
    --cream: #F5E1C2;
    --cream-dark: #e7cda7;

    --font-gothic: "UnifrakturCook", cursive;
    --font-body: "Cormorant Garamond", Georgia, serif;
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--wine);

    font-family: var(--font-body);

    line-height: 1.6;

    min-height: 100vh;
}


/* =========================================
   DECORATION GENERALE
========================================= */

body::before {
    content: "";

    position: fixed;
    inset: 18px;

    border: 1px solid var(--wine);

    pointer-events: none;

    opacity: 0.45;

    z-index: 100;
}

.page {
    width: min(1200px, 90%);
    margin: auto;
}


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

.header {
    min-height: 110px;

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

    border-bottom: 2px solid var(--wine);

    padding: 20px 0;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-symbol {
    font-size: 34px;
}

.logo h1 {
    font-family: var(--font-gothic);

    font-size: 42px;
    font-weight: 700;

    letter-spacing: 1px;
}


/* NAVIGATION */

.navigation {
    display: flex;
    gap: 35px;
}

.navigation a {
    color: var(--wine);

    text-decoration: none;

    font-size: 18px;
    font-weight: 600;

    position: relative;

    transition: 0.25s ease;
}

.navigation a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 1px;

    background-color: var(--wine);

    transition: width 0.25s ease;
}

.navigation a:hover::after {
    width: 100%;
}

.navigation a:hover {
    letter-spacing: 1px;
}


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

.hero {
    min-height: 550px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;

    position: relative;
}


/* ornament */

.hero-decoration {
    font-size: 55px;

    margin-bottom: 20px;

    opacity: 0.8;
}

.subtitle {
    text-transform: uppercase;

    letter-spacing: 5px;

    font-size: 15px;

    margin-bottom: 20px;
}

.hero h2 {
    font-family: var(--font-gothic);

    font-size: clamp(65px, 10vw, 120px);

    line-height: 0.9;

    font-weight: 700;

    margin-bottom: 35px;
}

.hero h2 span {
    font-size: 0.8em;
}

.hero-text {
    max-width: 650px;

    font-size: 20px;

    margin-bottom: 40px;
}


/* BOUTON */

.main-button {
    display: inline-block;

    padding: 14px 30px;

    background-color: var(--wine);
    color: var(--cream);

    border: 1px solid var(--wine);

    text-decoration: none;

    font-size: 18px;
    font-weight: 600;

    transition: 0.3s ease;
}

.main-button:hover {
    background-color: transparent;
    color: var(--wine);

    box-shadow: 6px 6px 0 var(--wine);
}


/* =========================================
   CONTENT GRID
========================================= */

.content-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 35px;

    margin-bottom: 100px;
}


/* =========================================
   CARD
========================================= */

.card {
    border: 2px solid var(--wine);

    padding: 40px;

    position: relative;

    background-color: rgba(245, 225, 194, 0.5);

    box-shadow: 8px 8px 0 var(--wine);
}


/* coins décoratifs */

.card::before,
.card::after {
    content: "✦";

    position: absolute;

    font-size: 18px;
}

.card::before {
    top: 10px;
    left: 15px;
}

.card::after {
    bottom: 10px;
    right: 15px;
}


/* HEADER CARD */

.card-header {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    margin-bottom: 8px;
}

.card-header h3 {
    font-family: var(--font-gothic);

    font-size: 42px;

    font-weight: 700;
}

.card-header span {
    font-size: 16px;
}


/* CHAPITRE */

.chapter {
    text-align: center;

    text-transform: uppercase;

    letter-spacing: 4px;

    font-size: 13px;

    margin-bottom: 30px;

    opacity: 0.8;
}


/* TEXTE PRESENTATION */

.presentation > p:not(.chapter) {
    font-size: 18px;

    margin-bottom: 20px;

    text-align: justify;
}

.presentation em {
    font-weight: 700;
}


/* SIGNATURE */

.signature {
    text-align: right;

    font-family: var(--font-gothic);

    font-size: 35px;

    margin-top: 30px;
}


/* =========================================
   LOGBOOK
========================================= */

.log-entry {
    display: grid;

    grid-template-columns: 75px 1fr;

    gap: 20px;

    padding: 20px 0;

    border-top: 1px solid var(--wine);
}

.log-entry:last-child {
    border-bottom: 1px solid var(--wine);
}


/* DATE */

.log-date {
    border-right: 1px solid var(--wine);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}

.log-date span {
    font-family: var(--font-gothic);

    font-size: 35px;

    line-height: 1;
}

.log-date small {
    font-size: 11px;

    letter-spacing: 1px;
}


/* LOG CONTENT */

.log-content h4 {
    font-size: 22px;

    margin-bottom: 5px;
}

.log-content p {
    font-size: 17px;
}


/* =========================================
   LINKS
========================================= */

.links-section {
    margin-bottom: 100px;
}


/* TITRE SECTION */

.section-title {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 20px;

    margin-bottom: 45px;
}

.section-title h3 {
    font-family: var(--font-gothic);

    font-size: 48px;
}

.section-title span {
    font-size: 25px;
}


/* GRILLE */

.links-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}


/* LINK CARD */

.link-card {
    display: grid;

    grid-template-columns: 60px 1fr 30px;

    align-items: center;

    gap: 20px;

    padding: 25px;

    border: 1px solid var(--wine);

    color: var(--wine);

    text-decoration: none;

    transition: 0.3s ease;
}

.link-card:hover {
    background-color: var(--wine);

    color: var(--cream);

    transform: translateY(-4px);

    box-shadow: 6px 6px 0 rgba(68, 14, 3, 0.25);
}


/* ICONE */

.link-icon {
    font-size: 30px;

    text-align: center;
}

.link-card h4 {
    font-size: 23px;

    margin-bottom: 3px;
}

.link-card p {
    font-size: 16px;
}

.arrow {
    font-size: 25px;

    text-align: center;
}


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

.footer {
    text-align: center;

    padding: 40px 0 70px;
}

.footer-line {
    height: 1px;

    width: 100%;

    background-color: var(--wine);

    margin-bottom: 25px;
}

.footer p {
    font-size: 18px;

    margin-bottom: 10px;
}

.footer small {
    font-size: 14px;

    opacity: 0.75;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 800px) {

    body::before {
        inset: 8px;
    }

    .header {
        flex-direction: column;

        gap: 20px;

        padding: 25px 0;
    }

    .logo h1 {
        font-size: 35px;
    }

    .navigation {
        gap: 20px;
    }

    .hero {
        min-height: 500px;

        padding: 60px 10px;
    }

    .hero h2 {
        font-size: 70px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}


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

@media (max-width: 500px) {

    .page {
        width: 84%;
    }

    .navigation {
        flex-wrap: wrap;

        justify-content: center;
    }

    .hero h2 {
        font-size: 55px;
    }

    .hero-text {
        font-size: 18px;
    }

    .card {
        padding: 25px;

        box-shadow: 5px 5px 0 var(--wine);
    }

    .card-header h3 {
        font-size: 35px;
    }

    .links-grid {
        gap: 15px;
    }

    .link-card {
        grid-template-columns: 45px 1fr 20px;

        padding: 18px;

        gap: 12px;
    }

    .link-card h4 {
        font-size: 20px;
    }

    .link-card p {
        font-size: 14px;
    }
}