:root {
    --encre-900: #172033;
    --encre-700: #2f3c52;
    --ivoire-50: #fbf8f1;
    --papier: #ffffff;
    --turquoise-700: #176b68;
    --turquoise-100: #d8efec;
    --ambre-500: #d9952f;
    --ambre-100: #f8e8c8;
    --texte-secondaire: #53606f;
    --bordure: #d8dde5;
    --bordure-forte: #aeb7c4;
    --focus: #0b6bcb;
    --ombre: 0 18px 50px rgba(23, 32, 51, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--encre-900);
    background: var(--ivoire-50);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: var(--turquoise-700);
    text-underline-offset: 0.18em;
}

a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    font-family: Literata, Georgia, serif;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

.skip-link {
    position: absolute;
    top: -5rem;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: #fff;
    background: var(--encre-900);
}

.skip-link:focus {
    top: 1rem;
}

.container,
.header-inner {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--bordure);
    background: rgba(255, 255, 255, 0.97);
}

.header-inner {
    min-height: 78px;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    display: block;
    width: 270px;
    max-width: 48vw;
    height: auto;
}




.button {
    min-height: 44px;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 750;
    text-decoration: none;
}

.button-primary {
    color: #fff !important;
    background: var(--turquoise-700);
}

.button-primary:hover {
    background: #105b58;
}

.button-secondary {
    color: var(--encre-900);
    border-color: var(--bordure-forte);
    background: #fff;
}

.button-light {
    color: var(--encre-900);
    background: #fff;
}

.hero {
    padding: 5rem 0 4rem;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(216, 239, 236, 0.95),
            transparent 30%
        ),
        linear-gradient(180deg, var(--ivoire-50), #fff);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 4rem;
    align-items: center;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--turquoise-700);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.7rem, 7vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy {
    max-width: 670px;
    margin: 1.5rem 0;
    color: var(--encre-700);
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trust-line {
    margin-top: 1.25rem;
    color: var(--texte-secondaire);
}

.laboratory-card {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 28px;
    background: var(--encre-900);
    box-shadow: var(--ombre);
}

.laboratory-card::before,
.laboratory-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.laboratory-card::before {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -45px;
    background: var(--turquoise-700);
    opacity: 0.6;
}

.laboratory-card::after {
    width: 110px;
    height: 110px;
    left: -25px;
    bottom: -30px;
    background: var(--ambre-500);
    opacity: 0.8;
}

.laboratory-card img {
    position: relative;
    z-index: 1;
    width: 210px;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.22));
}

.section {
    padding: 4.5rem 0;
}

.section-white {
    background: #fff;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading > p:last-child {
    color: var(--texte-secondaire);
}

.section-heading-row {
    max-width: none;
    display: flex;
    gap: 2rem;
    align-items: end;
    justify-content: space-between;
}

.text-link {
    flex: 0 0 auto;
    font-weight: 800;
}

.feature-grid,
.book-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-card,
.book-card,
.empty-works {
    border: 1px solid var(--bordure);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
}

.feature-card {
    padding: 1.5rem;
}

.feature-number {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--turquoise-700);
    font-weight: 850;
}

.feature-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.3rem;
}

.feature-card p {
    margin: 0;
    color: var(--texte-secondaire);
}

.book-card {
    overflow: hidden;
}

.cover {
    min-height: 185px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    justify-content: end;
    padding: 1.4rem;
    color: #fff;
    background:
        linear-gradient(
            145deg,
            var(--encre-700),
            var(--turquoise-700)
        );
}

.book-card:nth-child(2) .cover {
    background:
        linear-gradient(
            145deg,
            var(--ambre-500),
            var(--encre-900)
        );
}

.book-card:nth-child(3) .cover {
    background:
        linear-gradient(
            145deg,
            var(--turquoise-700),
            var(--encre-900)
        );
}

.cover span {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cover strong {
    font-family: Literata, Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.15;
}

.book-body {
    padding: 1.35rem;
}

.book-kind,
.book-author {
    color: var(--texte-secondaire);
    font-size: 0.9rem;
}

.book-body h3 {
    margin: 0.45rem 0;
    font-size: 1.35rem;
}

.book-body h3 a {
    color: var(--encre-900);
    text-decoration: none;
}

.book-summary {
    min-height: 4.8rem;
    display: -webkit-box;
    overflow: hidden;
    color: var(--encre-700);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.read-link {
    font-weight: 800;
}

.empty-works {
    padding: 2rem;
}

.empty-works h3,
.empty-works p {
    margin: 0;
}

.empty-works p {
    margin-top: 0.4rem;
    color: var(--texte-secondaire);
}

.reading-promise {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    gap: 4rem;
    align-items: center;
}

.reading-promise > div > p:last-child {
    color: var(--texte-secondaire);
    font-size: 1.08rem;
}

.reading-sample {
    padding: 2rem;
    border: 1px solid var(--bordure);
    border-radius: 16px;
    background: var(--ivoire-50);
    box-shadow: var(--ombre);
}

.reading-sample span {
    color: var(--turquoise-700);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.reading-sample h3 {
    margin: 0.4rem 0 1rem;
    font-size: 1.55rem;
}

.reading-sample mark {
    padding: 0.12rem 0.25rem;
    background: var(--ambre-100);
}

.community-callout {
    padding: 3.5rem 0;
    color: #fff;
    background: var(--encre-900);
}

.community-callout .eyebrow {
    color: #8fd0ca;
}

.community-callout h2 {
    max-width: 720px;
}

.community-callout p {
    max-width: 700px;
    color: #d8dde5;
}

.community-callout-inner {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--bordure);
    background: #fff;
}

.footer-inner {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.footer-inner p {
    margin: 0.25rem 0 0;
    color: var(--texte-secondaire);
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 850px) {
    .hero-grid,
    .reading-promise {
        grid-template-columns: 1fr;
    }

    .laboratory-card {
        min-height: 280px;
    }

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

    .section-heading-row,
    .community-callout-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .header-inner {
        padding: 0.8rem 0;
    }

    .brand img {
        max-width: 78vw;
    }


    .hero {
        padding-top: 3.5rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Couvertures réelles de l’accueil */

.book-card {
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.book-card:hover {
    border-color: #b8d8d5;
    box-shadow: 0 16px 38px rgb(23 32 51 / 11%);
    transform: translateY(-2px);
}

.book-cover-link {
    min-height: 260px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: inherit;
    background:
        radial-gradient(
            circle at top,
            rgb(255 255 255 / 80%),
            transparent 45%
        ),
        #f5f0e7;
    text-decoration: none;
}

.book-cover-link:focus-visible {
    outline: 3px solid #0b6bcb;
    outline-offset: -4px;
}

.book-cover-image {
    display: block;
    width: auto;
    max-width: calc(100% - 2rem);
    height: 238px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgb(49 39 29 / 18%);
}

.book-cover-link .cover {
    width: 100%;
    min-height: 260px;
    box-sizing: border-box;
}

@media (max-width: 850px) {
    .book-cover-image {
        height: min(64vw, 320px);
    }

    .book-cover-link,
    .book-cover-link .cover {
        min-height: min(76vw, 350px);
    }
}
