/* styles.css */

:root {
    --header-bg-color: rgba(255, 128, 0, 0.9);
    --footer-bg-color: rgba(255, 128, 0, 0.9);
    --text-color: #333;
    --link-color: #0066cc;
    --link-hover-color: #004080;
}

/*To replace with background image for header::after
:root {
    /* --header-bg-color: rgba(105, 213, 227, 0.9); 
    --footer-bg-color: rgba(105, 213, 227, 0.9);
    --text-color: #333;
    --link-color: #0066cc;
    --link-hover-color: #004080;
}



header {

    background-image: url('static/logo-hover.png');
    background-size: cover;
    background-position: center;
    padding: 1rem 0;
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

*/


.merriweather-light {
    font-family: "Merriweather", serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .merriweather-regular {
    font-family: "Merriweather", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .merriweather-bold {
    font-family: "Merriweather", serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .merriweather-black {
    font-family: "Merriweather", serif;
    font-weight: 900;
    font-style: normal;
  }
  
  .merriweather-light-italic {
    font-family: "Merriweather", serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .merriweather-regular-italic {
    font-family: "Merriweather", serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .merriweather-bold-italic {
    font-family: "Merriweather", serif;
    font-weight: 700;
    font-style: italic;
  }
  
  .merriweather-black-italic {
    font-family: "Merriweather", serif;
    font-weight: 900;
    font-style: italic;
  }
  
body {
    font-family: "Merriweather", serif;
    font-weight: 300;
    font-style: normal;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    text-align: justify;
    background-color: rgba(255, 128, 0, 0.9);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: rgba(255, 128, 0, 0.9);
    
}

.content-wrapper {
    display: flex;
    flex-grow: 1;
    background-color: rgba(255, 128, 0, 0.9);
    font-family: "Merriweather", serif;
    font-weight: 300;
    font-style: normal;
    

}
/* Ici pour modifier soit pleine largeur et gauche ou centré. */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 128, 0, 0.9);
 
   
}
/*
header {

    background-image: url('final.png');
    background-size: cover;
    background-position: center;
    padding: 1rem 0;
    width: 100%;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}
*/
header {
    background-color: var(--header-bg-color);
    padding: 1rem 0;
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: left;
    align-items: left;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}


nav {
    width: 250px;
    background-color: rgba(255, 128, 0, 0.9);
    padding: 10px;
    font-weight: bold;
    font-size: larger;
}

main {
    padding: 10px;
    /*background-color: rgba(255, 128, 0, 0.9);*/
    background-position: auto;
    background-repeat: no-repeat;
   
   
}

footer {
    background-color: var(--footer-bg-color);
    padding: 1rem 0;
    text-align: center;
    width: 100%;
}

/* Table Styles */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }
  
  .responsive-table th,
  .responsive-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
  }
  
  .responsive-table th {
    background-color: #f2f2f2;
    font-weight: bold;
  }
  
  .responsive-table tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  /* Responsive Styles */
  @media screen and (max-width: 600px) {
    .responsive-table {
      border: 0;
    }
    
    .responsive-table thead {
      display: none;
    }
    
    .responsive-table tr {
      margin-bottom: 10px;
      display: block;
      border-bottom: 2px solid #ddd;
    }
    
    .responsive-table td {
      display: block;
      text-align: right;
      font-size: 13px;
      border-bottom: 1px dotted #ccc;
    }
    
    .responsive-table td:last-child {
      border-bottom: 0;
    }
    
    .responsive-table td:before {
      content: attr(data-label);
      float: left;
      font-weight: bold;
      text-transform: uppercase;
    }
  }

/* Navigation styles */
nav ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

nav ul li {
    margin-bottom: 10px;
}

nav ul li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--link-hover-color);
    background-color: rgba(0, 0, 0, 0.05);
}

nav ul ul {
    display: none;
    padding-left: 20px;
}

nav ul li:hover > ul {
    display: block;
}

/* Logo styles */


.logo {
    
    text-align: left;
    width: 85%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
 
}

/*
.logo a:hover .logo-image {
    opacity: 0;
    content: url('static/logo-hover.png');

}*/

/* Image styles */

img[src~="thumbnail"] {
    width: 150px;
    height: 100px;
}

.reg {
    width: 100%;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
   /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);*/
}

.responsive-image2 {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.responsive-banner {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Link styles */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover, a:focus {
    color: var(--link-hover-color);
}

/* Product grid styles */
.product-category {
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.product-item {
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 0.5rem;
}

.product-item p {
    margin: 0;
    font-size: 0.9em;
}

/* Scroll to top button */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #128c7e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#scroll-to-top:hover {
    background-color: #25D366;
}

/* Accessibility improvements */
a:focus {
    outline: 2px solid #4a90e2;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* All pages list styles */
.all-pages-list {
    margin-top: 2rem;
}

.all-pages-list h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.all-pages-list ul {
    list-style-type: none;
    padding-left: 0;
}

.all-pages-list li {
    margin-bottom: 0.5rem;
}

.all-pages-list a {
    text-decoration: none;
    color: var(--link-color);
}

.all-pages-list a:hover {
    text-decoration: underline;
}

.category-pages-list {
    margin-top: 2rem;
}

.category-pages-list h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.category-pages-list ul {
    list-style-type: none;
    padding-left: 0;
}

.category-pages-list li {
    margin-bottom: 0.5rem;
}

.category-pages-list a {
    text-decoration: none;
    color: var(--link-color);
}

.category-pages-list a:hover {
    text-decoration: underline;
}


/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    nav {
        width: 100%;
        order: -1;
        background-color: rgba(255, 128, 0, 0.9);
        padding: 5px;
        font-weight: bold;
        font-size: larger;
        text-align: center;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px;
    }

    .header-content {
        flex-direction: column;
    }
    /*
    header {

        background-image: none;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        padding: 1rem 0;
        width: 100%;
        height: 700px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    */

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .logo {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    .logo {
        width: 100%;
    }

    .container {
        padding: 0 10px;
    }
}

/* Additional styles for HTML5 semantic elements */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}