/* --- CONFIGURATION GENERALE --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Nunito', sans-serif;
    color: #444444;
    line-height: 1.6;
    background-color: #fdf6f5;
}

a { 
    color: #e9a7a1; 
    text-decoration: none; 
    transition: 0.3s;
}

a:hover { 
    color: #444444; 
}

/* --- ENTETE ET NAVIGATION --- */
header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 20px;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: lowercase;
    color: #444444;
}

.logo::after {
    content: ".";
    color: #e9a7a1;
}

.menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.menu a {
    font-weight: 700;
    color: #666666;
}

.menu a:hover {
    color: #e9a7a1;
}

/* --- CONTENU PRINCIPAL ET HERO --- */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.hero p {
    max-width: 800px;
    margin: 0 auto;
}

.hero-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.conteneur {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.divpk {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    padding: 30px;
    border-radius: 12px;
    max-width: 700px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.index-info .divpk {
    margin: 0;
    max-width: 100%;
    text-align: center;
    padding: 20px;
}

.index-info h3 {
    color: #e9a7a1;
    margin-bottom: 10px;
}

.index-info p {
    font-size: 0.9rem;
}

/* --- GRILLE ET CARTES DU CATALOGUE --- */
.grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.carte {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.carte:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.photo-placeholder {
    background-color: #f9f9f9;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carte-contenu {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.badge {
    align-self: flex-start;
    background-color: #e9a7a1;
    color: #ffffff;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 10px;
}

.infos-bas {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    padding-top: 10px;
    border-top: 1px dashed #f0f0f0;
}

/* --- FORMULAIRE ET RECHERCHE --- */
.section-recherche {
    background: none;
    border: none;
    padding: 0 0 40px 0;
}

.form-recherche {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    font-family: inherit;
    background: #ffffff;
}

input:focus, select:focus {
    outline: none;
    border-color: #e9a7a1;
}

/* --- BOUTONS --- */
.btn-submit {
    background-color: #e9a7a1;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
}

.btn-secondary {
    background-color: #666666;
}

.btn-submit:hover {
    background-color: #444444;
    color: white;
    transform: translateY(-1px);
}

.btn-secondary:hover {
    background-color: #e9a7a1;
}

/* --- TABLEAUX DE RESULTATS --- */
.table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

.table-donnees {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-top: 20px;
}

.table-donnees th {
    padding: 12px;
    color: #e9a7a1;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table-donnees td {
    padding: 12px;
    border-bottom: 1px solid #f9f9f9;
}

.txt-gras {
    font-weight: 700;
}

.lien-retour {
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- PIED DE PAGE ET RESPONSIVE --- */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #f0f0f0;
    color: #aaaaaa;
    font-size: 0.9rem;
    background-color: #ffffff;
    margin-top: 40px;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-submit { width: 100%; max-width: 250px; }
}

/* --- MISES À JOUR DU CATALOGUE --- */

.catalog-hero {
    background: none; 
    border: none; 
    padding: 0 0 40px 0;
}

.carte-titre {
    margin: 10px 0; 
    font-weight: 900;
}

.carte-description {
    font-size: 0.85rem; 
    color: #666666; 
    margin-bottom: 15px;
}

.prix-tag {
    color: #e9a7a1; 
    font-weight: 900;
}

/* --- AJUSTEMENT PHOTO --- */
.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-miniature {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    display: block;
    margin: 0 auto;
}

.txt-discret {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}