:root{
      --bg:#ffffff;
      --accent:#0b57d0;
      --text:#111;
      --nav-height:64px;
      --transition:300ms;
    }
    *{box-sizing:border-box}
    body{
      overflow-x: hidden;
      font-family: sans-serif;
      color:var(--text);
      background:var(--bg);
    }
    .main-content h1{
       font-size: 40rem;
       color: #1e40af;
       margin-bottom: 1rem;
    }
    

    /* Header / nav bar */
    .site-header{
      height:var(--nav-height);
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:0 1rem;
      border-bottom:1px solid rgba(0,0,0,.06);
      position:sticky;
      top:0;
      background:linear-gradient(#fff, #fff);
      z-index:100;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      overflow: visible; /* important pour afficher sous-menu */
    }
    .brand{
      display:flex;
      gap:.5rem;
      align-items:center;
      font-weight:700;
      letter-spacing:.3px;
      text-decoration:none;
      color:var(--text);
    }
    .brand .logo{
      width:36px;
      height:36px;
      border-radius:6px;
      background:var(--accent);
      display:inline-block;
    }

    /* Desktop nav links */
    .nav-links {
      overflow: visible; /* important */
    }
    .nav-links ul {
      display: flex;
      gap: 1rem;
      padding: 0;
      margin: 0;
      list-style: none;
      align-items: center;
    }

    .nav-links ul li {
      position: relative;
    }

    .nav-links ul li a {
      text-decoration: none;
      padding: .5rem .7rem;
      border-radius: 6px;
      transition: background var(--transition), transform var(--transition);
      color: var(--text);
      font-weight: 600;
      display: inline-block;
    }

    .nav-links ul li a:hover {
      background: rgba(11, 87, 208, 0.08);
      transform: translateY(-2px);
    }

    /* Sous-menu desktop */
    .nav-links ul li ul {
      position: absolute;
      top: 100%; /* juste sous le parent */
      left: 0;
      background: #fff;
      border-radius: 6px;
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
      display: none;
      min-width: 180px;
      padding: 0.5rem 0;
      z-index: 9999;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-links ul li ul li a {
      padding: 0.5rem 1rem;
      display: block;
      color: var(--text);
      font-weight: 500;
      white-space: nowrap;
      transition: background var(--transition), color var(--transition);
    }

    .nav-links ul li ul li a:hover {
      background: var(--accent);
      color: white;
    }

    /* Affichage du sous-menu au hover */
    .nav-links ul li:hover > ul {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }

    /* Hamburger button (mobile) */
    .hamburger{
      display:none; /* affiché uniquement sur petit écran */
      width:44px;
      height:44px;
      border-radius:8px;
      border:none;
      background:transparent;
      cursor:pointer;
      align-items:center;
      justify-content:center;
    }
    .hamburger:focus{ outline:2px solid rgba(11,87,208,.2) }

    /* Hamburger icon lines */
    .icon{
      display:inline-block;
      position:relative;
      width:22px;
      height:16px;
    }
    .icon span{
      position:absolute;
      left:0;
      right:0;
      height:2px;
      background:var(--text);
      border-radius:2px;
      transition:transform var(--transition), opacity var(--transition);
    }
    .icon span:nth-child(1){ top:0 }
    .icon span:nth-child(2){ top:7px }
    .icon span:nth-child(3){ top:14px }

    /* Mobile menu (overlay) */
    .mobile-menu{
      position:fixed;
      inset:0 0 0 0;
      display:none;
      align-items:flex-start;
      justify-content:flex-end;
      z-index:90;
      padding:var(--nav-height) 1rem 1rem 1rem;
    }
    .mobile-panel{
      width:280px;
      max-width:90%;
      background:#fff;
      border-radius:10px;
      box-shadow:0 10px 30px rgba(0,0,0,.12);
      padding:1rem;
      transform: translateX(100%);
      transition: transform 0.4s ease, opacity 0.4s ease;
      opacity:0;
    }
    .mobile-menu.open{
      display:flex;
      animation: fadeScaleSlide 0.3s ease forwards;
    }
    .mobile-menu.open .mobile-panel{
      transform: translateX(0);
      opacity:1;
    }

    .mobile-panel a{
      display:block;
      padding:.9rem .6rem;
      text-decoration:none;
      color:var(--text);
      border-radius:8px;
      font-weight:600;
      transition: background 0.3s ease;
    }
    .mobile-panel a:hover {
      background: rgba(11, 87, 208, 0.1);
    }
    .mobile-panel a + a{
      margin-top:.25rem;
    }

    /* Sous-menu mobile accordéon */
    .mobile-submenu {
      display: none;
      padding-left: 1rem;
      margin-top: 0.25rem;
    }
    .mobile-submenu a {
      font-weight: 500;
      font-size: 0.95rem;
    }
    .mobile-panel .has-submenu {
      cursor: pointer;
      position: relative;
      font-weight: 600;
      padding: .9rem .6rem;
      border-radius: 8px;
      user-select: none;
    }
    .mobile-panel .has-submenu::after {
      content: "▸";
      position: absolute;
      right: 1rem;
      font-size: 1.1rem;
      transition: transform 0.3s ease;
    }
    .mobile-panel .has-submenu.open::after {
      content: "▾";
      transform: rotate(0deg);
    }
    .mobile-panel .has-submenu.open + .mobile-submenu {
      display: block;
    }

    /* Transform hamburger into X when open */
    .hamburger.open .icon span:nth-child(1){ transform:translateY(7px) rotate(45deg) }
    .hamburger.open .icon span:nth-child(2){ opacity:0 }
    .hamburger.open .icon span:nth-child(3){ transform:translateY(-7px) rotate(-45deg) }
    /*Bouton Rond Retour en haut */
     #btnTop {
      position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background-color: #f9f9f9;
    color: #1f5078;
    border: 2px solid #1f5078;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    user-select: none;
    display: flex
;
    align-items: center;
    justify-content: center;
    padding: 0;
    }

    #btnTop:hover {
      background-color: #1f5078;
      color: white;
      box-shadow: 0 8px 20px rgba(31, 80, 120);
      transform: translateY(-3px);
    }

    #btnTop svg {
      width: 24px;
      height: 24px;
      fill: currentColor;
      transition: fill 0.3s ease;
    }
      /* Responsive breakpoints */
   .section{
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      padding: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      background: #eaf4f0; 
   }
   /*.card-grid */
     .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 24px;
      margin-top: 36px;
    }
     .card-link {
     text-decoration: none; 
     color: inherit;        
}
    .card {
      margin-top: 10px;
      overflow: hidden;
      background-color: #fff;
      border-radius: 20px;
      box-shadow: 0 12px 24px rgba(0,0,0,0.05);
      font-weight: 600;
      font-size: 1.1rem;
      user-select: none;
      transition: transform 0.3s ease; 
    }
  .card p{
      padding: 10px 15px;
    }
   .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
    .card:hover {
      box-shadow: 0 16px 36px rgba(31, 80, 120);
      transform: translateY(-10px);
    }

   /* ----------- Blog Section----------- */

.blog-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

.blog-container h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #0b3d91;
  font-weight: 700;
}

.blog-container p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

/* Filtres stylĂ©s faĂ§on Dribbble */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #f3f3f3;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #111;
  color: #fff;
}

/* Grille des posts */
.blog-container .blog-post {
  overflow: hidden;
  text-align: left;
  margin: 15px;
  vertical-align: top;
  transition: transform 0.3s ease;
}

.blog-container .blog-post:hover {
  transform: translateY(-10px);
}

.blog-post img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-post h3 {
  font-size: 1.2rem;
  margin: 15px;
  color: #222;
  font-weight: 700;
}

.blog-post p {
  margin: 0 15px 15px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.read-more {
  display: inline-block;
  margin: 0 15px 20px;
  padding: 10px 18px;
  background: #0b3d91;
  color: #fff;
  border-radius: 25px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.read-more:hover {
  background: #e63946;
}
.produit1 h1 {
      color: #0b3d91;
      font-size: 40px;
      margin-bottom: 20px;
      text-align: center;
    }

    .produit p {
    margin: 0 15px 15px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    }      
.produit h4{
  margin: 0 15px 15px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}
.produit h3{
  font-size: 2rem;
    margin-bottom: 10px;
    color: #0b3d91;
    font-weight: 700;
}
.section {
    display: flex;
    align-items: baseline;
    gap: 40px;
    padding: 60px;
    background: white;
    max-width: 1200px;
    margin: 15px auto;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    flex-wrap: nowrap;
    justify-content: space-around;
}

 /* Footer */
    .footer {
      text-align: center;
      padding: 22px;
      background-color: #fff;
      margin-top: 80px;
      box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
      font-weight: 500;
      color: #666;
      user-select: none;
    }

@media (max-width: 600px) {
  .blog-container .blog-post {
    width: 100%;
  }
  }
   @media (max-width: 860px){
      .nav-links{ display:none }
      .hamburger{ display:flex }
      .main-content{
        padding-bottom: 30px;
        padding-top: 30px;
      }
      .section{
        padding: 10px;
      }
      .text p,h3 {
      font-size: 15px;
      color: #444;
      margin-bottom: 15px;
    }
    #buttom{
      margin-top: 20px;
    }
    .product-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    flex-direction: column;
    justify-content: center;
    flex-wrap: nowrap;
}
    }