/* styles.css */

body {
    margin:0; 
    font-family: 'Basteleur-Bold', sans-serif;
    
  }
  header { text-align:center; }
  nav { display:flex; justify-content: space-between; padding:1em; background: #f6e7da; }
  nav .menu { display:flex; list-style:none; padding:0; margin:0; }
  nav .menu li { margin:0 0.5em; }
  nav .menu-toggle { display:none; }
  .hero { padding:2em 1em; background:#208687; }
  .hero h1 { margin-bottom:0.5em; }
  .services { display:flex; flex-wrap:wrap; justify-content:center; list-style:none; padding:1em; }
  .services li { margin:0.5em 1em; flex:1 1 200px; text-align:center; }
  
  .portfolio { padding:2em 1em; }
  .portfolio .cards { display:grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap:1em; }
  .card img { width:100%; height:auto; display:block; }
  .see-all { display:block; text-align:center; margin-top:1em; text-decoration:none; font-weight:bold; }
  
  footer { background:#222222; color:#208687; padding:2em 1em; text-align:center; }
  footer .cta { display:inline-block; margin-top:1em; padding:0.75em 1.5em; background:#fafafa; color:#222; text-decoration:none; font-weight:bold; }
  @media(max-width:600px) {
    nav .menu { display:none; flex-direction:column; }
    nav .menu-toggle { display:inline-block; }
  }

  /*grille*/

  .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
  }
  
  .grid-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1; /* Garde le carré */
    overflow: hidden;
    border: 2px solid #ccc;
    transition: transform 0.3s ease;
  }
  
  .grid-item:hover {
    transform: scale(1.05);
  }
  
  .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media (max-width: 768px) {
    .grid-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 500px) {
    .grid-container {
      grid-template-columns: 1fr;
    }
  }
  .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
  }
  
  .grid-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 2px solid #ccc;
    transition: transform 0.3s ease;
  }
  
  .grid-item:hover {
    transform: scale(1.05);
  }
  
  .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  @media (max-width: 768px) {
    .grid-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 500px) {
    .grid-container {
      grid-template-columns: 1fr;
    }
  }

/*boutons de sélection, thèmes*/

  .theme-selector {
    text-align: center;
    margin-top: 20px;
  }

  .theme-selector button {
    padding: 10px 20px;
    margin: 0 5px;
    font-family:'Basteleur-Moonlight';
    border-radius: 20px;
    background:#333;
    color: #f6e7da;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .theme-selector button:hover {
    background: #208687
  }
  
  .grid-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .grid-item.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    display: none;
  }
  
/*En-tête*/
.hero {
  position: relative;
  background-color: #f6e7da; /* ta couleur de fond */
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply; /* Le cœur du mélange */
  opacity: 0.9; /* Ajuste selon ton goût */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #222; /* Assure la lisibilité du texte */
}

.hero.split {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
  }
  
  .hero-text {
    flex: 1;
  }
  
  .hero-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
  }

  .random-gallery {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  
  .random-img {
    position: absolute;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
  }
  
  

  /*boutons de l'entête*/

  .btn {
    background-color: #333;     /* couleur par défaut */
    color: #f6e7da;
    padding: 10px 20px;
    border: none;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 20px;
  }
  
  /* Changement de couleur au survol */
  .btn:hover {
    background-color: #208687;  /* couleur au survol */
    color: #fff;
  }
  
  
/*scroll*/

html {
    scroll-behavior: smooth;
  } 
  
/*police*/

@font-face {
    font-family: 'Basteleur-Bold';
    src: url('fonts/Basteleur-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
  }


  @font-face {
    font-family: 'Basteleur-Moonlight';
    src: url('fonts/Basteleur-Moonlight.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
  }
  