/*  mobile  */
header {
    background-color: blue;
}
footer {
    background-color: burlywood;
}

button {
    width: 150px;
    height: 60px;
    border: 3px solid #315cfd;
    border-radius: 45px;
    transition: all 0.3s;
    cursor: pointer;
    background: white;
    font-size: 1.2em;
    font-weight: 550;
}

button:hover {
    background: #315cfd;
    color: white;
    font-size: 1.5em;
}

.centre {
    display: flex;
    justify-content: center;
}

a {
    text-decoration: none;
}

.card {
    margin: 20px !important;
    position: relative;
    width: 90%; /* Augmenté pour mobile */
    height: auto; /* Ajuste automatiquement la hauteur */
    box-shadow: 0px 1px 13px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 120ms;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 1em;
}

img {
    width: 100%;
    height: auto; /* Ajuste automatiquement la hauteur */
    object-fit: contain; /* "contain" pour tout afficher, "cover" pour remplir */
}

.card .title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2em; /* Augmenté pour une meilleure lisibilité */
    margin-top: 10px;
    font-weight: 500;
    color: #000;
}

.card .price {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 1em; /* Augmenté pour une meilleure lisibilité */
    margin-top: 5px;
    color: green;
}

.card:active {
    transform: scale(0.98);
}

.parent {
    display: grid;
    grid-template-columns: repeat(1, 1fr); 
    gap: 20px;
    margin: 0 5%; 
    padding: 20px;
}
/* Styles par défaut (mobile) */
.card:active {
    transform: scale(0.98);
}

.parent {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Une seule colonne pour mobile */
    gap: 20px;
    margin: 0 5%; /* Marges réduites pour mobile */
    padding: 20px;
}

.card {
    width: 100%; /* Pleine largeur pour mobile */
    height: auto; /* Ajuste automatiquement la hauteur */
    padding: 1em;
}
/* Styles par défaut pour recherche.php (mobile-first) */
.recherche-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
    background-color: #f4f4f4;
}

.recherche-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.recherche-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recherche-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    display: flex;
    justify-content: center;
}

.recherche-button {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    font-weight: bold;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;

}

.recherche-button:hover {
    background-color: #0056b3;
}

/* Classe pour redimensionner les images dans table1_gestion.php */
.photo-redimensionnee {
    width: 100px; /* Largeur maximale */
    height: auto; /* Conserve les proportions */
    object-fit: contain; /* Ajuste l'image pour qu'elle soit entièrement visible */
    border: 1px solid #ccc; /* Optionnel : ajoute une bordure pour mieux délimiter l'image */
    border-radius: 5px; /* Optionnel : arrondit les coins */
    padding: 5px; /* Optionnel : ajoute un espace autour de l'image */
}
.presentation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
    background: linear-gradient(to bottom, #007bff, #0056b3);
    color: white;
    text-align: center;
}
.presentation-content {
    max-width: 800px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.presentation-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}
.presentation-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
}
/*  pc  */
@media screen and (min-width: 576px) {
    header {
        background-color: red;
    }
    footer {
        background-color: aqua;
    }
    .card {
        width: 80%; 
        height: auto; 
        padding: 1.5em; 
    }

    img {
        width: 100%;
        height: auto; 
        object-fit: contain;
    }

    .card .title {
        font-size: 1.5em; 
    }

    .card .price {
        font-size: 1.2em; 
    }

    .parent {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Trois colonnes pour PC */
        gap: 30px; /* Plus d'espacement entre les cartes */
        margin: 0 10%; /* Marges ajustées pour PC */
    }
}