/* =========================
   BASE PAPIER ANCIEN
========================= */
body {
    margin: 0;
    font-family: 'IM Fell English', serif;
    color: #2b2114;

    background: #d5ab72; /* 🔥 ton image */
    background-size: cover;        /* remplit tout l'écran */
    background-position: center;   /* centré */
    background-repeat: no-repeat;
    background-attachment: fixed;  /* effet stylé (optionnel) */
}

/* =========================
   CONTAINER
========================= */
.container {
    width: 85%;
    margin: 40px auto;
    padding: 30px;
    background: #f8edd1;
    position: relative;
    border: 2px solid #2b2114;
}

.container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.5);
}

.container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('https://i.imgur.com/8Km9tLL.png') no-repeat;
    background-size: cover;
    opacity: 0.25;
    pointer-events: none;
}

/* =========================
   HEADER IMAGE CENTRÉE
========================= */
.header-1900 {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* IMAGE EN FOND */
.header-1900::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('https://i.postimg.cc/YrqFNBNq/9918536c-8a36-4345-90b7-74aef3934775(1).png') center/contain no-repeat;
    opacity: 0.95;
}

/* CONTENU */
.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.header-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 50px;
    margin: 0;
    letter-spacing: 4px;
}

.header-content p {
    margin: 5px 0 15px;
    font-size: 16px;
    letter-spacing: 2px;
}
.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 320px; /* 🔽 descend tout le bloc */
}

/* =========================
   MENU WESTERN PREMIUM
========================= */
.header-content nav {
    display: inline-flex;
    align-items: center;

    padding: 8px;
    
    background: linear-gradient(180deg, #6b4b2a, #3e2a17);
    border: 3px solid #2b2114;
    border-radius: 12px;

    box-shadow:
        inset 0 2px 3px rgba(255,255,255,0.15),
        inset 0 -3px 5px rgba(0,0,0,0.4),
        0 6px 15px rgba(0,0,0,0.4);

    position: relative;
}

/* contour interne doré */
.header-content nav::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 215, 160, 0.4);
    border-radius: 8px;
    pointer-events: none;
}

/* =========================
   LIENS
========================= */
.header-content nav a {
    font-family: 'Cinzel', serif;
    color: #f4e7c5;
    text-decoration: none;

    padding: 12px 22px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;

    position: relative;
    transition: all 0.25s ease;
}

/* séparateur stylé */
.header-content nav a:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #caa76b, transparent);
}

/* =========================
   HOVER STYLE
========================= */
.header-content nav a:hover {
    color: #ffd27f;
    background: rgba(255, 215, 160, 0.08);

    text-shadow: 
        0 0 6px rgba(255, 210, 127, 0.6);

    border-radius: 6px;
}

/* effet actif (clic) */
.header-content nav a:active {
    transform: translateY(2px);
}

/* =========================
   EFFET USURE (grain)
========================= */
.header-content nav::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
    opacity: 0.2;
    border-radius: 12px;
    pointer-events: none;
}
/* =========================
   GRILLE ANIMAUX
========================= */
.animaux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* =========================
   CARTE ANIMAL
========================= */
.animal-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fdf3d6;
    border: 2px solid #2b2114;
    padding: 12px;
    transition: 0.2s;
    position: relative;
    cursor: pointer;
}

.animal-card:hover {
    transform: scale(1.03);
}

/* filigrane */
.animal-card::before {
    content: "REGISTRE";
    position: absolute;
    top: 40%;
    left: 10%;
    font-size: 40px;
    color: rgba(0,0,0,0.05);
    transform: rotate(-20deg);
}

/* IMAGE */
.animal-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 2px solid #2b2114;
    margin-bottom: 8px;
}

/* NOM */
.animal-card h3 {
    font-size: 16px;
    margin: 5px 0;
    text-align: center;
    font-family: 'Cinzel', serif;
}

/* INFOS */
.animal-info {
    font-size: 13px;
    line-height: 1.4;
}

/* TELEGRAMME */
.telegraphe {
    margin-top: 5px;
    font-size: 12px;
    font-style: italic;
    letter-spacing: 2px;
    text-align: center;
    border-top: 1px dashed #2b2114;
    padding-top: 5px;
}

/* CACHEt */
.cachet {
    text-align: center;
    font-size: 11px;
    margin-top: 8px;
    opacity: 0.7;
}

/* =========================
   FICHE
========================= */
.fiche {
    max-width: 700px;
    margin: 40px auto;
    background: #fdf3d6;
    border: 3px double #2b2114;
    padding: 25px;
}

.fiche-contenu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.fiche-gauche {
    text-align: center;
    flex: 1;
}

.fiche-gauche img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 2px solid #2b2114;
}

.fiche-droite {
    flex: 2;
    font-size: 16px;
}

/* colonnes infos */
.fiche-infos {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.col-gauche,
.col-droite {
    flex: 1;
}

/* =========================
   BARRE DE RECHERCHE
========================= */
.search-bar {
    margin: 20px auto;
    max-width: 400px;
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 8px;
    border: 2px solid #2b2114;
    background: #fff8dc;
    font-family: 'IM Fell English', serif;
}

.search-bar button {
    background: #2f4a6d;
    color: #f4e7c5;
    border: 2px solid #2b2114;
    padding: 8px 15px;
    cursor: pointer;
    text-transform: uppercase;
}

.search-bar button:hover {
    background: #1e334d;
}

/* =========================
   SOINS
========================= */
.soin {
    border-left: 3px solid #2b2114;
    margin-bottom: 15px;
    background: #fff8dc;
    padding: 10px;
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-top: 2px solid #2b2114;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .header-1900 {
        height: auto;
        padding: 40px 10px;
    }

    .header-1900::before {
        background-size: cover;
    }

    .fiche-contenu {
        flex-direction: column;
    }
}

/* =========================
   FORMULAIRE CARTE
========================= */
.card {
    max-width: 500px;
    margin: 40px auto;
    padding: 25px;
    background: #f6e6c5;
    border: 2px solid #2b2114;
    box-shadow: 4px 4px 0 #2b2114;
}

/* TITRE */
.card h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* LABEL */
.card label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

/* INPUT */
.card input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 2px solid #2b2114;
    background: #f3e3c2;
    font-family: 'IM Fell English', serif;
}

/* BOUTON */
.card button {
    margin-top: 20px;
    width: 100%;
    padding: 10px;

    background: linear-gradient(180deg, #7a552f, #3e2a17);
    color: #f3e3c2;

    border: 2px solid #2b2114;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
}

.card button:hover {
    background: #2b2114;
}

/* MESSAGE */
.success {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

/* =========================
   OVERLAY ZOOM IMAGE
========================= */
#zoomOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

#zoomOverlay img {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid #2b2114;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    background: #fdf3d6;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =========================
   LIVRE (FIX ALIGNEMENT)
========================= */
.book {
    display: flex;
    width: 100%;
    height: 100%;
    perspective: 2000px;

    gap: 8px; /* 🔥 petit espace entre pages */
}

/* PAGE */
.page {
    width: 50%;
    height: 100%;
    background: #fdf3d6;

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

    box-shadow: inset 0 0 40px rgba(0,0,0,0.2);

    padding: 0; /* 🔥 enlève espace inutile */
}

/* IMAGE DANS LE LIVRE */
.page img {
    width: 95%;   /* 🔥 plus proche des bords */
    height: 95%;
    object-fit: contain;

    border: 2px solid #2b2114;
    background: #f3e3c2;

    cursor: zoom-in;
}

/* PETITE SÉPARATION STYLE LIVRE */
.page:first-child {
    border-right: 2px solid rgba(43,33,20,0.3);
}

.book::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 10px;
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #2b2114, #6b4b2a, #2b2114);
}

.badge-suivi {
background:#d9c37a;
padding:3px 6px;
font-size:12px;
text-align:center;
margin-top:5px;
}