 :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);
    }

    /* 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;
      background:rgba(0,0,0,.35);
      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;
    }
    .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) }

     /* Main content */
    .main-content {
      text-align: center;
      padding: 50px 20px 80px;
      max-width: 960px;
      margin: auto;
    }
    .main-content h1{
      text-align: center;
      font-size: 40px;
      background: linear-gradient(to right, #007bff, #6f42c1);
           -webkit-background-clip: text;
           -webkit-text-fill-color: transparent;
    }
    .main-content h2{
        font-size: 1.5rem;
        color: #007bff;
    }
    .main-content p,h3{
        max-width: 800px;
        margin: auto;
        color: #4b5563;
        font-size: 1.1rem;
    }
    .section{
      display: flex;
      flex-direction: row-reverse;
      align-items: center;
      justify-content: center;
       gap: 40px;
      padding: 60px;
      background: white;
      max-width: 1200px;
      margin: 20px 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;
    }
    .section.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .section img {
      width: 400px;
      height: auto;
      border-radius: 16px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .section img:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 25px rgba(0,0,0,0.25);
    }

    .text {
      max-width: 600px;
      text-align: justify;
    }

    .text h1,h2 {
      color: #0b3d91;
      font-size: 2.5rem;
      margin-bottom: 20px;
    }

    .text p {
      font-size: 18px;
      color: #444;
      margin-bottom: 20px;
    }
    .section li {
        list-style-type: none;
        font-size: 18px;
        color: #0b3d91;
    }
    /* 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%; /* Cercle parfait */
      cursor: pointer;
      font-size: 0; /* Pas de texte */
      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;
    }
    /* boutton voir plus  */
    #buttom{
      background: white;
      padding-top: 5px;
      padding-bottom: 5px;
      padding-left: 15px;
      padding-right: 15px;
      border-radius: 10px;
      border: 2px solid #1f5078;
      text-decoration: none;
      font-size: 14px;
      font-family: sans-serif;
      font-style: italic;
      color: #1f5078;
    }
     #buttom:hover{
      background-color: #1f5078;
      color: white;
    }
    #buttom2{
      margin-top: 20px;
      background: white;
      padding-top: 5px;
      padding-bottom: 5px;
      padding-left: 15px;
      padding-right: 15px;
      border-radius: 10px;
      border: 2px solid #1f5078;
      text-decoration: none;
      font-size: 14px;
      font-family: sans-serif;
      font-style: italic;
      color: #1f5078;
    }
    #buttom2:hover{
      background-color: #1f5078;
      color: white;
    }
    
    
    /*.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 Style faĂ§on Dribbble ----------- */
.blog-container {
  max-width: 1200px;
  margin: 80px 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 {
  display: inline-block;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: left;
  margin: 15px;
  width: calc(33.333% - 30px);
  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;
}
/* Section contact */
    .contact-section {
      background: white;
      padding: 3rem 1rem;
      margin-top: 3rem;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
      text-align: center;
    }
    .contact-section h2 {
      color: #1e40af;
      margin-bottom: 1.5rem;
    }
    .contact-info p {
      font-size: 1.2rem;
      margin: 0.7rem 0;
    }
    .contact-info a {
      color: #2563eb;
      text-decoration: none;
    }
    .contact-info a:hover {
      text-decoration: underline;
    }
 /* 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;
    }
/* Responsive */
@media (max-width: 992px) {
  .blog-container .blog-post {
    width: calc(50% - 30px);
  }
}

@media (max-width: 600px) {
  .blog-container .blog-post {
    width: 100%;
  }
}
    /* Responsive breakpoints */
    @media (max-width: 860px){
      .nav-links{ display:none }
      .hamburger{ display:flex }
      .main-content{
        padding-bottom: 30px;
        padding-top: 30px;
      }
      .section{
        padding: 20px;
      }
      .text p,h3 {
      font-size: 15px;
      color: #444;
      margin-bottom: 15px;
    }
    #buttom{
      margin-top: 20px;
    }
    body {
  font-size: 18px;
}
  body {
    font-size: 16px;
    line-height: 1.5; /* espacement pour améliorer la lecture */
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 18px;
  }

  p, a, li, button {
    font-size: 16px;
  }
    }