/* Base */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #111111; /* obsidienne */
    color: #F5F3F0; /* blanc cassé */
    line-height: 1.6;
}

/* Layout */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


/* Header */

.site-header {
    background: rgba(17, 17, 17, 0.9); /* obsidienne */
    color: #F5F3F0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
}

#accueil, #univers, #livres, #apropos, #contact {
    scroll-margin-top: 63px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.branding h1 {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7A4E2D; /* bronze sombre */
}

.tagline {
    font-size: 0.85rem;
    opacity: 0.8;
}

.main-nav a {
    color: #F5F3F0;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.9rem;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #8C3F24; /* rouille mystique */
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero */

.hero {
    background: #2C3E50; /* bleu runique */
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #7A4E2D; /* bronze sombre */
}

.hero-text p {
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.hero-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8C3F24; /* rouille mystique */
}

/*Logo*/
.logo-image {
	position: relative;
	opacity: 1;
	animation: fadeIn 1s 1s forwards;
}

.logo-image img {
	width: 100%;
	max-width: 500px;
	transform: perspective(1000px) rotateY(-15deg);
	transition: var(--transition);
}

.logo-image:hover img {
	transform: perspective(1000px) rotateY(0deg);
}
/**********/

/* Buttons */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: #7A4E2D; /* bronze sombre */
    color: #F5F3F0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
    background: #8C3F24; /* rouille mystique */
    transform: translateY(-1px);
}

.btn-secondary {
    background: #2C3E50; /* bleu runique */
    color: #F5F3F0;
}

.btn-secondary:hover {
    background: #111111; /* obsidienne */
    transform: translateY(-1px);
}

/* Sections */

.section {
    padding: 3rem 0;
    background: #111111; /* obsidienne */
}

.section-alt {
    background: #2C3E50; /* bleu runique */
}

.section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #7A4E2D; /* bronze sombre */
}

.section-intro {
    margin-bottom: 1.5rem;
    max-width: 520px;
}

/* Univers */

.univers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.univers-card {
    background: #1E1E1E; /* anthracite */
    border-radius: 14px;
    padding: 1.3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Livres */

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.8rem;
}

.book-card {
    background: #1E1E1E; /* anthracite */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
}

.book-cover-placeholder {
    background: linear-gradient(135deg, #111111, #2C3E50);
    color: #F5F3F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.book-cover-placeholder img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}


.book-content {
    padding: 1rem 1.2rem;
}

.book-content h4 {
    margin-bottom: 0.4rem;
    color: #7A4E2D; /* bronze sombre */
}

.book-universe {
    font-size: 0.85rem;
    color: #BFC6D1; /* argent ancien */
    margin-bottom: 0.6rem;
}

.book-release {
    font-size: 0.85rem;
    color: #D8BFA3; /* bronze clair, cohérent avec ton thème */
    margin-bottom: 0.6rem;
    font-style: italic;
}

.book-desc {
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

/* À propos */

.apropos-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: center;
}

.apropos-card {
    background: #2C3E50; /* bleu runique */
    color: #F5F3F0;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
	max-width: 260px; /* réduit la largeur */
	margin: 0 auto;   /* centre le bloc */
	padding: 1rem;
}

.apropos-card img.portrait-image {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(216, 191, 163, 0.3);
  transition: transform 0.3s ease;
}

.apropos-card img.portrait-image:hover {
  transform: scale(1.03);
}

.apropos-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.apropos-desc {
  opacity: 0.9;
  line-height: 1.4;
}


/* Contact */

.contact-box {
    background: #1E1E1E; /* anthracite */
    border-radius: 12px;
    padding: 1rem 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.contact-box a {
    color: #8C3F24; /* rouille mystique */
    text-decoration: none;
    border-bottom: 1px solid #7A4E2D;
}

.contact-box a:hover {
    border-bottom-color: #8C3F24;
}

/* Footer */

.site-footer {
    background: #111111; /* obsidienne */
    color: #F5F3F0;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-inner {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Responsive */

@media (max-width: 800px) {
    .hero-inner,
    .apropos-layout,
    .book-card {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .main-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .book-cover-placeholder {
        min-height: 140px;
    }
}
