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

:root {
    --green: #74a77b;
    --green-dark: #4e7d59;

    --dark: #181818;
    --grey: #6d6d6d;
    --light-grey: #f4f4f1;

    --white: #ffffff;

    --container: 1180px;
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--dark);
    background: var(--white);

    line-height: 1.7;

    overflow-x: hidden;
}

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

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

.container {
    width: min(var(--container), calc(100% - 60px));
    margin: auto;
}


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

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(12px);

    box-shadow:
        0 5px 30px rgba(0, 0, 0, 0.06);
}

.header-inner {
    height: 100px;

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


/* LOGO */

.logo {
    display: inline-flex;
    align-items: center;

    font-size: 24px;

    letter-spacing: 1px;
}

.logo-ben {
    font-weight: 800;
}

.logo-robin {
    color: var(--green);
    font-weight: 300;

    margin-left: 5px;
}


/* NAV */

nav {
    display: flex;
    gap: 36px;

    font-size: 14px;
}

nav a {
    position: relative;
}

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 1px;

    background: var(--green);

    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}


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

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-top: 100px;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #ffffff 0%,
            #ffffff 60%,
            #f1f4ef 60%,
            #f1f4ef 100%
        );
}

.hero-grid {
    display: grid;

    grid-template-columns:
        1.2fr
        0.8fr;

    gap: 80px;

    align-items: center;
}

.eyebrow {
    color: var(--green-dark);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 25px;
}

.hero h1 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(50px, 6vw, 82px);

    line-height: 1.06;

    font-weight: 400;

    max-width: 850px;
}

.hero h1 span {
    color: var(--green-dark);

    display: block;
}

.hero-description {
    color: var(--grey);

    max-width: 620px;

    font-size: 18px;

    margin-top: 35px;
}

.hero-actions {
    display: flex;

    gap: 15px;

    margin-top: 40px;
}


/* =========================
   BOUTONS
========================= */

.btn {
    display: inline-flex;

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

    min-height: 54px;

    padding: 0 28px;

    font-weight: 600;

    font-size: 14px;

    transition: 0.25s ease;
}

.btn-primary {
    background: var(--dark);

    color: white;
}

.btn-primary:hover {
    background: var(--green-dark);

    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    border-color: var(--dark);
}


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

.hero-visual {
    display: flex;

    justify-content: center;

    position: relative;
}

.book-wrapper {
    position: relative;

    width: 310px;

    perspective: 1200px;
}

.book-cover {
    position: relative;

    z-index: 2;

    width: 100%;

    box-shadow:
        -16px 24px 50px rgba(0, 0, 0, 0.22);

    transform:
        rotateY(-8deg)
        rotateX(2deg);

    transition: transform 0.5s ease;
}

.book-wrapper:hover .book-cover {
    transform:
        rotateY(0)
        rotateX(0)
        translateY(-8px);
}

.book-shadow {
    position: absolute;

    width: 90%;
    height: 25px;

    left: 15px;
    bottom: -25px;

    background:
        rgba(0, 0, 0, 0.18);

    filter: blur(20px);
}


/* =========================
   SCROLL INDICATOR
========================= */

.scroll-indicator {
    position: absolute;

    bottom: 30px;

    left: 50%;

    transform: translateX(-50%);

    height: 50px;
}

.scroll-indicator span {
    display: block;

    width: 1px;
    height: 40px;

    background: #aaa;

    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {

    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}


/* =========================
   CITATION
========================= */

.quote-section {
    padding: 130px 0;

    background: var(--dark);

    color: white;
}

.quote-container {
    max-width: 920px;

    position: relative;
}

.quote-mark {
    font-family: Georgia, serif;

    color: var(--green);

    font-size: 130px;

    height: 80px;

    line-height: 1;
}

blockquote {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.35;

    font-weight: 400;
}

blockquote strong {
    color: var(--green);

    font-weight: 400;
}


/* =========================
   LIVRE
========================= */

.book-section {
    padding: 150px 0;
}

.book-grid {
    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    gap: 120px;

    align-items: center;
}

.book-image {
    position: relative;

    display: flex;

    justify-content: center;
}

.book-image img {
    width: 330px;

    position: relative;

    z-index: 2;

    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.2);
}

.book-background {
    position: absolute;

    width: 370px;
    height: 430px;

    background: var(--light-grey);

    top: 70px;

    transform: translateX(-50px);
}

.book-content h2,
.author-content h2,
.contact-section h2 {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(42px, 5vw, 65px);

    line-height: 1.1;

    font-weight: 400;
}

.subtitle {
    font-family: Georgia, serif;

    color: var(--green-dark);

    font-style: italic;

    font-size: 20px;

    margin:
        10px
        0
        35px;
}

.book-content > p:not(.eyebrow):not(.subtitle) {
    color: #555;

    margin-bottom: 18px;

    max-width: 650px;
}

.book-meta {
    display: flex;

    gap: 60px;

    margin:
        35px
        0;
}

.book-meta div {
    display: flex;

    flex-direction: column;
}

.book-meta span {
    color: #999;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 2px;
}

.book-meta strong {
    font-size: 14px;
}

.btn-amazon {
    background: #ff9900;

    color: #111;

    gap: 10px;
}

.btn-amazon:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(255, 153, 0, 0.25);
}

.amazon-logo {
    font-family: Georgia, serif;

    font-weight: bold;

    font-size: 25px;
}


/* =========================
   STATEMENT
========================= */

.statement {
    background: var(--green-dark);

    padding: 130px 0;
}

.statement p {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color: rgba(255, 255, 255, 0.7);

    font-size: clamp(38px, 6vw, 75px);

    line-height: 1.15;
}

.statement span {
    color: white;
}


/* =========================
   AUTEUR
========================= */

.author-section {
    padding: 150px 0;
    background: #f6f6f3;
}

.author-grid-no-photo {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 120px;
    align-items: start;
}

.author-title {
    position: sticky;
    top: 150px;
}

.author-title h2 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(52px, 6vw, 80px);
    line-height: 1;
    font-weight: 400;
}

.author-content {
    padding-top: 35px;
    max-width: 680px;
}

.author-content .lead {
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 1.5;

    color: var(--dark);

    margin-bottom: 40px;
}

.author-content > p:not(.lead) {
    color: #666;
    font-size: 17px;
    margin-bottom: 22px;
}

.author-signature {
    margin-top: 60px;

    display: flex;
    align-items: center;

    font-size: 30px;
    letter-spacing: 1px;
}

.author-signature strong {
    font-weight: 800;
}

.author-signature span {
    color: var(--green);
    font-weight: 300;
    margin-left: 6px;
}


/* MOBILE */

@media (max-width: 900px) {

    .author-grid-no-photo {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .author-title {
        position: static;
    }

    .author-content {
        padding-top: 0;
    }

}

/* PHOTO */

.author-photo-wrapper {
    position: relative;
}

.author-photo {
    position: relative;

    z-index: 2;

    width: 420px;

    height: 520px;

    object-fit: cover;

    filter: grayscale(20%);
}

.photo-shape {
    position: absolute;

    width: 400px;
    height: 500px;

    background: var(--green);

    right: -35px;
    top: 40px;
}


/* =========================
   CONTACT
========================= */

.contact-section {
    padding: 150px 0;

    text-align: center;
}

.contact-inner {
    max-width: 800px;
}

.contact-section p:not(.eyebrow) {
    color: #777;

    margin-top: 25px;
}

.contact-email {
    display: inline-flex;

    align-items: center;

    gap: 20px;

    margin-top: 35px;

    font-size: clamp(20px, 3vw, 30px);

    border-bottom: 1px solid #ccc;

    padding-bottom: 8px;
}

.contact-email span {
    color: var(--green);

    transition: 0.3s;
}

.contact-email:hover span {
    transform: translateX(8px);
}


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

footer {
    border-top: 1px solid #eee;

    padding: 40px 0;
}

.footer-inner {
    display: flex;

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

    gap: 30px;

    color: #888;

    font-size: 12px;
}

.footer-logo {
    font-size: 19px;
}


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

.menu-toggle {
    display: none;

    background: none;
    border: none;

    cursor: pointer;

    width: 30px;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    background: var(--dark);

    margin: 6px 0;
}


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

@media (max-width: 900px) {

    .container {
        width: min(100% - 40px, var(--container));
    }


    /* HEADER */

    .header-inner {
        height: 80px;
    }

    .menu-toggle {
        display: block;

        z-index: 1001;
    }

    nav {
        position: fixed;

        top: 0;
        right: -100%;

        width: min(340px, 85%);
        height: 100vh;

        background: white;

        flex-direction: column;

        justify-content: center;

        padding: 50px;

        gap: 30px;

        font-size: 20px;

        box-shadow:
            -20px 0 50px rgba(0, 0, 0, 0.1);

        transition: right 0.35s ease;
    }

    nav.open {
        right: 0;
    }


    /* HERO */

    .hero {
        min-height: auto;

        padding:
            140px
            0
            90px;

        background: white;
    }

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

        gap: 70px;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero h1 {
        font-size: clamp(44px, 12vw, 68px);
    }


    /* BOOK */

    .book-grid,
    .author-grid {
        grid-template-columns: 1fr;

        gap: 80px;
    }

    .book-section,
    .author-section {
        padding:
            100px
            0;
    }

    .book-background {
        transform: translateX(-30px);
    }


    /* AUTEUR */

    .author-photo-wrapper {
        max-width: 420px;

        margin: auto;
    }


    /* FOOTER */

    .footer-inner {
        flex-direction: column;

        text-align: center;
    }
}


@media (max-width: 600px) {

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .quote-section,
    .statement {
        padding:
            90px
            0;
    }

    .book-meta {
        gap: 30px;

        flex-direction: column;
    }

    .book-image img {
        width: 260px;
    }

    .book-background {
        width: 290px;
        height: 340px;
    }

    .author-photo {
        height: 450px;
    }

    .photo-shape {
        width: calc(100% - 20px);
        height: 430px;
    }
}