/* ============================================================
   EMILIEN GOUTU — Feuille de style principale
   Palette : crème, ambre, brun chaud, bordeaux discret
   Typographie : Playfair Display + Lora + Cinzel
   ============================================================ */
/* ── Polices locales (@font-face) ─────────────────────────
   Fichiers dans le dossier fonts/ à la racine du projet
   ──────────────────────────────────────────────────────── */

/* Playfair Display */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-latin-600italic.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-latin-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Lora */
@font-face {
    font-family: 'Lora';
    src: url('../fonts/lora-v37-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('../fonts/lora-v37-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('../fonts/lora-v37-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('../fonts/lora-v37-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Cinzel */
@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/cinzel-v26-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/cinzel-v26-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}





/* ── Variables ────────────────────────────────────────────── */
:root {
    --creme: #faf6ef;
    --creme-dark: #f0e9dc;
    --ambre: #c8924a;
    --ambre-light: #e8b97a;
    --brun: #5c3d1e;
    --brun-light: #8b5e3c;
    --bordeaux: #7a2d2d;
    --texte: #3a2a1a;
    --texte-doux: #6b4f38;
    --blanc: #fff9f2;
    --ombre: rgba(92, 61, 30, 0.12);
    --ombre-forte: rgba(92, 61, 30, 0.25);
    --font-titre: 'Playfair Display', Georgia, serif;
    --font-corps: 'Lora', Georgia, serif;
    --font-caps: 'Cinzel', Georgia, serif;
    --rayon: 4px;
    --transition: 0.3s ease;
    --max-width: 1100px;
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-corps);
    background-color: var(--creme);
    color: var(--texte);
    line-height: 1.75;
}

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

a {
    color: var(--ambre);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--bordeaux);
}

ul {
    list-style: none;
}

/* ── Header ───────────────────────────────────────────────── */
#header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--blanc);
    border-bottom: 1px solid var(--creme-dark);
    box-shadow: 0 2px 12px var(--ombre);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: var(--font-titre);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brun);
    line-height: 1.2;
}

.logo span {
    display: block;
    font-size: 0.62rem;
    font-family: var(--font-caps);
    letter-spacing: 0.18em;
    color: var(--ambre);
    font-weight: 400;
}

nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--texte-doux);
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--ambre);
    border-bottom-color: var(--ambre);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brun);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(200, 146, 74, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 25%, rgba(122, 45, 45, 0.08) 0%, transparent 45%),
        var(--creme);
    padding: 4rem 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='%23c8924a' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 780px;
    animation: fadeUp 1s ease both;
}

.hero-eyebrow {
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--ambre);
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-family: var(--font-titre);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--brun);
    margin-bottom: 0.4rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--bordeaux);
}

.hero-auteur {
    font-family: var(--font-caps);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--texte-doux);
    margin: 1rem 0 1.8rem;
}

.hero-description {
    font-size: 1.08rem;
    color: var(--texte-doux);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-style: italic;
    line-height: 1.8;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    border-radius: var(--rayon);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--ambre);
    color: var(--blanc);
    border-color: var(--ambre);
}

.btn-primary:hover {
    background: var(--brun);
    border-color: var(--brun);
    color: var(--blanc);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--ombre-forte);
}

.btn-outline {
    background: transparent;
    color: var(--brun);
    border-color: var(--brun);
}

.btn-outline:hover {
    background: var(--brun);
    color: var(--blanc);
    transform: translateY(-2px);
}

/* ── Sections génériques ──────────────────────────────────── */
.section {
    padding: 5rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-titre);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--brun);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--texte-doux);
    font-style: italic;
    margin-bottom: 3rem;
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--ambre);
    margin: 1rem auto 3rem;
    border: none;
}

/* ── Cartes histoires ─────────────────────────────────────── */
.cartes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.carte {
    background: var(--blanc);
    border: 1px solid var(--creme-dark);
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 3px 14px var(--ombre);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.carte::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--ambre);
}

.carte:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px var(--ombre-forte);
}

.carte-date {
    font-family: var(--font-caps);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    color: var(--ambre);
    margin-bottom: 0.6rem;
}

.carte h3 {
    font-family: var(--font-titre);
    font-size: 1.25rem;
    color: var(--brun);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.carte p {
    font-size: 0.92rem;
    color: var(--texte-doux);
    line-height: 1.7;
}

.carte-lire {
    display: inline-block;
    margin-top: 1.2rem;
    font-family: var(--font-caps);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--ambre);
    border-bottom: 1px solid var(--ambre-light);
}

.carte-lire:hover {
    color: var(--bordeaux);
    border-color: var(--bordeaux);
}

/* ── Livre aperçu (accueil) ───────────────────────────────── */
.livre-apercu {
    background: var(--blanc);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--ombre-forte);
    display: grid;
    grid-template-columns: 280px 1fr;
}

.livre-apercu-cover {
    background: linear-gradient(145deg, var(--ambre-light), var(--ambre), var(--brun-light));
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.livre-cover-placeholder {
    text-align: center;
    color: var(--blanc);
}

.livre-cover-placeholder .cover-titre {
    font-family: var(--font-titre);
    font-size: 1.15rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.livre-cover-placeholder .cover-auteur {
    font-family: var(--font-caps);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    opacity: 0.85;
}

.livre-apercu-infos {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.livre-apercu-infos .section-title {
    text-align: center;
}

.livre-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.livre-meta-item {
    background: var(--creme-dark);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    font-size: 0.75rem;
    color: var(--texte-doux);
    font-family: var(--font-caps);
    letter-spacing: 0.08em;
}

.livre-resume {
    font-style: italic;
    color: var(--texte-doux);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.97rem;
}

/* ── À propos home ────────────────────────────────────────── */
.apropos-home {
    background: linear-gradient(135deg, var(--brun) 0%, var(--brun-light) 100%);
    color: var(--creme);
    padding: 5rem 2rem;
    text-align: center;
}

.apropos-home .section-title {
    color: var(--creme);
}

.apropos-home .divider {
    background: var(--ambre-light);
}

.apropos-home p {
    max-width: 640px;
    margin: 0 auto 2rem;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(250, 246, 239, 0.88);
}

.apropos-home .btn-outline {
    border-color: var(--ambre-light);
    color: var(--ambre-light);
}

.apropos-home .btn-outline:hover {
    background: var(--ambre-light);
    color: var(--brun);
}

/* ── Page hero générique ──────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--brun) 0%, var(--bordeaux) 100%);
    padding: 5rem 2rem 4rem;
    text-align: center;
    color: var(--creme);
}

.page-hero .section-title {
    color: var(--creme);
}

.page-hero p {
    color: rgba(250, 246, 239, 0.8);
    font-style: italic;
    margin-top: 0.8rem;
    font-size: 1rem;
}

/* ── Page Histoires ───────────────────────────────────────── */
.histoires-liste {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.histoire-item {
    background: var(--blanc);
    border: 1px solid var(--creme-dark);
    border-radius: 6px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 14px var(--ombre);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.histoire-item:hover {
    box-shadow: 0 8px 28px var(--ombre-forte);
}

.histoire-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ambre), var(--bordeaux));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.histoire-item:hover::after {
    transform: scaleX(1);
}

.histoire-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.histoire-header h2 {
    font-family: var(--font-titre);
    font-size: 1.5rem;
    color: var(--brun);
}

.histoire-date {
    font-family: var(--font-caps);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    color: var(--ambre);
}

.histoire-corps {
    color: var(--texte-doux);
    font-size: 0.97rem;
    line-height: 1.85;
}

.histoire-corps p+p {
    margin-top: 1em;
}

.initiale::first-letter {
    font-family: var(--font-titre);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--ambre);
    float: left;
    line-height: 0.8;
    margin: 0.1em 0.12em 0 0;
}

.chargement {
    text-align: center;
    padding: 3rem;
    font-style: italic;
    color: var(--texte-doux);
}

.vide-msg {
    text-align: center;
    padding: 4rem 2rem;
    font-style: italic;
    color: var(--texte-doux);
}

/* ── Page Livre ───────────────────────────────────────────── */
.livre-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.livre-page-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.livre-page-cover {
    position: sticky;
    top: 90px;
}

.cover-book {
    background: linear-gradient(145deg, var(--ambre-light), var(--ambre), var(--brun-light));
    border-radius: 4px 12px 12px 4px;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: -6px 6px 20px var(--ombre-forte), 6px 3px 0 var(--brun);
    color: var(--blanc);
    text-align: center;
}

.cover-book .cover-titre {
    font-family: var(--font-titre);
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.cover-book .cover-auteur {
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    opacity: 0.85;
}

.cover-book .cover-editeur {
    font-size: 0.68rem;
    opacity: 0.65;
    margin-top: 0.4rem;
}

/* Image réelle couverture page livre */
.cover-book-img {
    width: 100%;
    height: auto;
    border-radius: 4px 12px 12px 4px;
    box-shadow: -6px 6px 20px var(--ombre-forte), 6px 3px 0 var(--brun);
    display: block;
}

.livre-infos h1 {
    font-family: var(--font-titre);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--brun);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.livre-infos h1 em {
    color: var(--bordeaux);
}

.auteur-line {
    font-family: var(--font-caps);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--ambre);
    margin-bottom: 2rem;
}

.fiche-tech {
    background: var(--creme-dark);
    border-radius: 6px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.fiche-tech h3 {
    font-family: var(--font-caps);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--ambre);
    margin-bottom: 1rem;
}

.fiche-ligne {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(92, 61, 30, 0.08);
    font-size: 0.9rem;
}

.fiche-ligne:last-child {
    border-bottom: none;
}

.fiche-label {
    font-weight: 600;
    color: var(--brun);
    min-width: 130px;
}

.fiche-valeur {
    color: var(--texte-doux);
}

.resume-titre {
    font-family: var(--font-titre);
    font-size: 1.3rem;
    color: var(--brun);
    margin: 2rem 0 1rem;
}

.resume-texte {
    font-style: italic;
    line-height: 1.85;
    color: var(--texte-doux);
    font-size: 1rem;
}

.resume-texte p+p {
    margin-top: 1em;
}

.acheter-block {
    margin-top: 2.5rem;
    padding: 2rem;
    border: 2px solid var(--ambre-light);
    border-radius: 6px;
    background: rgba(200, 146, 74, 0.05);
    text-align: center;
}

.acheter-block h2,
.acheter-block h3 {
    font-family: var(--font-titre);
    font-size: 1.2rem;
    color: var(--brun);
    margin-bottom: 1rem;
}

.acheter-liens {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.acheter-seo-text {
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--texte-doux);
    font-style: italic;
    line-height: 1.75;
    text-align: center;
}

.acheter-seo-text strong {
    font-style: normal;
    color: var(--brun);
}

/* ── Page À propos ────────────────────────────────────────── */
.apropos-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.apropos-page h2 {
    font-family: var(--font-titre);
    font-size: 1.6rem;
    color: var(--brun);
    margin: 2.5rem 0 1rem;
}

.apropos-page p {
    color: var(--texte-doux);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

.apropos-page blockquote {
    border-left: 4px solid var(--ambre);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: var(--texte-doux);
    background: var(--creme-dark);
    border-radius: 0 6px 6px 0;
}

/* ── Photo auteur (À propos) ──────────────────────────────── */
.auteur-photo-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0 3rem;
}

.auteur-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--creme-dark), var(--ambre-light));
    border: 4px solid var(--ambre);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    box-shadow: 0 6px 24px var(--ombre-forte);
}

.auteur-photo-placeholder span {
    font-family: var(--font-titre);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--brun);
    line-height: 1;
}

.auteur-photo-placeholder p {
    font-family: var(--font-caps);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--texte-doux);
    margin: 0;
    line-height: 1.4;
}

.auteur-photo-placeholder small {
    opacity: 0.7;
}

/* Vraie photo — même style arrondi */
.auteur-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ambre);
    box-shadow: 0 6px 24px var(--ombre-forte);
}

.merci-papa {
    text-align: center;
    font-family: var(--font-titre);
    font-size: 1.5rem;
    color: var(--bordeaux);
    margin: 3rem 0;
    font-style: italic;
}

/* ── Page Contact ─────────────────────────────────────────── */
.contact-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-page>p {
    color: var(--texte-doux);
    font-style: italic;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.formulaire {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-groupe {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-groupe label {
    font-family: var(--font-caps);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--brun);
}

.form-groupe input,
.form-groupe textarea {
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--creme-dark);
    border-radius: var(--rayon);
    background: var(--blanc);
    font-family: var(--font-corps);
    font-size: 0.95rem;
    color: var(--texte);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-groupe input:focus,
.form-groupe textarea:focus {
    border-color: var(--ambre);
    box-shadow: 0 0 0 3px rgba(200, 146, 74, 0.15);
}

.form-groupe textarea {
    min-height: 150px;
    resize: vertical;
}

.form-succes {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--creme-dark);
    border-radius: 6px;
    font-style: italic;
    color: var(--brun);
    font-size: 1.05rem;
}

.form-succes.visible {
    display: block;
    animation: fadeUp 0.5s ease;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
    background: var(--brun);
    color: var(--creme-dark);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

footer .footer-logo {
    font-family: var(--font-titre);
    font-size: 1.3rem;
    color: var(--ambre-light);
    margin-bottom: 0.5rem;
}

footer nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

footer nav a {
    color: rgba(240, 233, 220, 0.7);
    font-size: 0.65rem;
    border-bottom-color: transparent;
}

footer nav a:hover {
    color: var(--ambre-light);
}

footer .copyright {
    font-size: 0.75rem;
    color: rgba(240, 233, 220, 0.5);
    margin-top: 1.5rem;
    line-height: 1.8;
}

.merci-footer {
    font-family: var(--font-titre);
    font-size: 0.92rem;
    font-style: italic;
    color: rgba(232, 185, 122, 0.7);
    margin-top: 0.8rem;
}

.footer-legal {
    margin: 1rem 0 0.5rem;
}

.footer-legal ul {
    justify-content: center;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    font-size: 0.65rem;
    color: rgba(240, 233, 220, 0.4);
    letter-spacing: 0.08em;
    border-bottom: none;
}

.footer-legal a:hover {
    color: var(--ambre-light);
}

.credit-footer {
    font-size: 0.68rem;
    color: rgba(240, 233, 220, 0.3);
    margin-top: 0.6rem;
    letter-spacing: 0.05em;
}

.credit-footer a {
    color: rgba(240, 233, 220, 0.4);
    border-bottom: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.credit-footer a:hover {
    color: var(--ambre-light);
    border-bottom-color: var(--ambre-light);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
    }

    nav ul.open {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--blanc);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--creme-dark);
        box-shadow: 0 8px 20px var(--ombre);
        gap: 1.2rem;
        animation: fadeIn 0.25s ease;
    }

    .burger {
        display: flex;
    }

    .livre-apercu {
        grid-template-columns: 1fr;
    }

    .livre-apercu-cover {
        min-height: 220px;
    }

    .livre-page-inner {
        grid-template-columns: 1fr;
    }

    .livre-page-cover {
        position: static;
    }

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

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

@media (max-width: 480px) {
    .section {
        padding: 3rem 1.2rem;
    }

    .histoire-item {
        padding: 1.5rem;
    }
}

/* ── Pop-up modal contact ─────────────────────────────────── */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(58, 42, 26, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.visible {
    opacity: 1;
}

.popup-box {
    background: var(--blanc);
    border-radius: 8px;
    padding: 3rem 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(58, 42, 26, 0.35);
    border-top: 4px solid var(--ambre);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.visible .popup-box {
    transform: translateY(0);
}

.popup-icon {
    font-size: 2.5rem;
    color: var(--ambre);
    margin-bottom: 1rem;
    line-height: 1;
}

.popup-box h3 {
    font-family: var(--font-titre);
    font-size: 1.6rem;
    color: var(--brun);
    margin-bottom: 1rem;
}

.popup-box p {
    color: var(--texte-doux);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.97rem;
}

.popup-fermer {
    min-width: 140px;
}