/* ------------------------------
   POLICES
------------------------------ */
@font-face {
    font-family: 'DinosaurAlternate';
    src: url('fonts/DinosaurAlternate-LV4Y3.otf') format('woff2'),
         url('fonts/DinosaurAlternate-LV4Y3.otf') format('woff');
}

@font-face {
    font-family: 'TheDinosaur';
    src: url('fonts/The-Dinosaur.woff2') format('woff2'),
         url('fonts/The-Dinosaur.woff') format('woff');
}

/* ------------------------------
   BASE
------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'TheDinosaur', sans-serif;
    background: #e5e5e5;
    color: #111;
    line-height: 1.6;
}

main {
    padding: 25px;
    max-width: 1100px;
    margin: auto;
}

/* ------------------------------
   TITRES
------------------------------ */
h1, h2, h3 {
    font-family: 'DinosaurAlternate';
    letter-spacing: 1px;
    color: #b30000;
}

h1 {
    font-size: 2.6rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.4rem;
}

/* ------------------------------
   HEADER
------------------------------ */
header {
    background: #111;
    color: #f2c94c;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 6px solid #b30000;
}

header svg {
    height: 60px;
}

header nav a {
    font-family: 'TheDinosaur';
    color: #f2c94c;
    margin-left: 20px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.2s;
}

header nav a:hover {
    color: #b30000;
}

/* ------------------------------
   CARTES
------------------------------ */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 20px;
}

.card {
    background: #fff;
    width: 240px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #1f4d2b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card h3 {
    color: #1f4d2b;
    margin: 10px;
}

.card p {
    margin: 5px 10px;
    font-size: 0.95rem;
}

.card a {
    display: inline-block;
    margin: 8px 10px 0;
    text-decoration: none;
    color: #b30000;
    font-weight: bold;
}

.card a:hover {
    text-decoration: underline;
}

.card a:not(.delete) {
    color: #b30000;
    font-weight: bold;
}


/* ------------------------------
   BOUTONS
------------------------------ */
.btn,
button,
.delete {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'DinosaurAlternate';
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn,
button {
    background: #1f4d2b;
    color: #fff;
    border: none;
}

.btn:hover,
button:hover {
    background: #163a20;
}

.delete {
    background: #b30000;
    color: #fff !important;
    display: inline-block;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'DinosaurAlternate';
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.delete:hover {
    background: #7a0000;
}

/* ------------------------------
   PAGE DÉTAIL
------------------------------ */
.detail-img {
    max-width: 350px;
    display: block;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 4px solid #1f4d2b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

ul {
    margin: 15px 0;
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
}

/* ------------------------------
   FORMULAIRE
------------------------------ */
form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 3px solid #1f4d2b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    max-width: 600px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #1f4d2b;
}

input[type="text"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 2px solid #1f4d2b;
    border-radius: 5px;
    background: #f9f9f9;
}

textarea {
    height: 120px;
    resize: vertical;
}

.errors {
    background: #ffdddd;
    border: 2px solid #b30000;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
    background: #111;
    color: #f2c94c;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 6px solid #b30000;
}

footer a {
    color: #f2c94c;
    text-decoration: none;
}

footer a:hover {
    color: #b30000;
}
