@charset "UTF-8";
/* CSS Document */

    body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background: #000;
      color: #1a202c;
      line-height: 1.7;
    }
html {
    scroll-behavior: smooth
}
header a {
  color: white;
  background: red;
  padding: 10px;
  display: block;
  max-width: max-content;
  margin: 0 auto;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
}
    .top-bar {
      background: #222;
      color: white;
      text-align: center;
      padding: 12px;
    }
    .top-bar h1 {
      margin: 0;
      font-size: 24px;
    }
    .top-bar p {
      margin: 5px 0;
      font-size: 14px;
    }
    .tel-fixe {
      position: relative;
      top: 0;
      right: 0;
      /*! transform: translateY(-50%); */
      background: #e11d48;
      color: white;
      padding: 14px 20px;
      border-radius: 30px;
      font-weight: bold;
      font-size: 16px;
      animation: flash 1.5s infinite;
      z-index: 999;
      max-width: max-content;
      margin: 0 auto;
    }
    @keyframes flash {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }
    .menu {
      background: #4a5568;
      color: white;
      text-align: center;
      padding: 12px 0;
    }
    .menu a {
      margin: 0 20px;
      color: white;
      text-decoration: none;
      font-weight: bold;
    }
    .photo {
      width: 100%;
      height: 240px;
      background: url('couvreur-fuite-reparation-91.jpg') center/cover no-repeat;
    }
    .section {
      max-width: 900px;
      margin: 40px auto;
      padding: 0 20px;
    }
    .section h2 {
      color: #e53e3e;
      border-bottom: 2px solid #e53e3e;
      padding-bottom: 6px;
    }
    .section p {
      margin-bottom: 14px;
      text-align: justify;
    }
    footer {
      background: #222;
      color: white;
      padding: 20px;
      text-align: center;
      font-size: 14px;
    }
    @media (max-width: 768px) {
      .tel-fixe { top: auto; bottom: 20px; right: 10px;
      }
    }

      .grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 20px;
        padding: 0 20px;
        margin: 2em auto;
        max-width: 1200px;
      }

      .grid-item {
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 8px;
        background-color: #f9f9f9;
      }

      .grid-item h2 {
        color: #333;
        margin-top: 0;
        margin-bottom: 15px;
      }

      .grid-item p {
        margin-bottom: 15px;
      }

      .grid-item ul {
        list-style-type: disc;
        padding-left: 20px;
        margin-bottom: 0;
      }

      .grid-item li {
        margin-bottom: 8px;
      }

      .grid-item img {
        max-width: 100%;
        height: auto;
        margin-bottom: 10px;
      }

      .menu {
        background-color: #333;
        overflow: hidden;
        margin-bottom: 20px; /* Add some space below the menu */
        padding: 10px 0;
        display: flex;
        justify-content: center;
      }

      .menu a {
        float: left;
        display: block;
        color: white;
        text-align: center;
        padding: 10px;
        text-decoration: none;
        margin: 0;
      }

      .menu a:hover {
        background-color: #ddd;
        color: black;
      }

      /* Adjust for screens smaller than 768px */
      @media (max-width: 768px) {
        .grid-container {
          grid-template-columns: repeat(2, 1fr);
        }
        .menu a {
          float: none;
          width: 100%;
          text-align: left;
        }
      }

      /* Adjust for screens smaller than 480px */
      @media (max-width: 480px) {
        .grid-container {
          grid-template-columns: 1fr;
        }
      }