/* root */
:root {
    --primary-color: red;
    --bg-color:yellow;
    font-size: 20px;
    font-family: 'Koulen', sans-serif;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 100px;
    height: 100px;
}

ul {
     list-style-type: none;
    background-color: var(--primary-color);
    margin: 20px;
    padding: 10px;
    overflow: hidden;
    font-size: 20px;
    display: flex; 
    justify-content: center;
    width: 100%;
    height: 100%;
}

ul a{
    float: left;
}

ul li a {
    display: block;
    text-align: center;
    padding: 20px 12px;
    color: var(--bg-color);
}

/* banniere*/

.banniere img{
    opacity: 1;
    background: linear-gradient(45deg, rgb(246, 0, 0), rgb(255, 238, 0));
    position: relative;
    padding: 20px 12px;
    margin: 5px;
    width: 400px;
    height: 400px;
}

.flex-center {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;     /* Centre verticalement */
    height: 100vh;           /* Exemple : plein écran */
}

h1{
    text-align: center;
    color: yellow;
    font-family: "Koulen", sans-serif;
}

/* categories */

.categories {
  padding: 3rem 1rem;
  background: #fff;
  text-align: center;

}

/* Grille responsive */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;  
  float: left;
  padding: 20px 12px;
  display: flex;
}

/* Carte */
.category-card {
  background: blue;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.category-card img {
    float:left;
    margin-bottom: 1.5rem;
}
/* Titre */
.category-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

/* Texte */
.category-card p {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* Bouton */
.btn {
  display: inline-block;
  padding: 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #007bff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #0056b3;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;  
  float: left;
  padding: 20px 12px;
  display: flex;
}

.form-card {
  background: yellowgreen;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.form {
    margin: auto;
    display: flex;
}
.galleries{
  padding: 3rem 1rem;
  background: #fff;
  text-align: center;
}
.galleries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;  
  float: left;
  padding: 20px 12px;
  display: flex;
}

/* Carte */
.gallery-card {
  background: blue;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-card img {
    float: left;
    margin-bottom: 1.5rem;
}
/* Titre */
.gallery-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

/* Texte */
.gallery-card p {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* Structure globale */
body {
  min-height: 100vh;          /* occupe toute la hauteur */
  display: flex;
  flex-direction: column;
  margin: 0;                  /* enlever marges par défaut */
}

main {
  flex: 1;                    /* pousse le footer en bas */
}

/* Footer */
footer {
  background-color: #DADA5F;
  color: #666;
  padding: 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between; /* logo/texte à gauche, liens à droite */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content a {
  color: #666;
  margin: 0 10px;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}
