/* ====== RESET DE BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* ====== STYLE GLOBAL ====== */
  html, body {
    /* Fond général plus clair */
    background: #f5f5f5;
    color: #333;
    
    /* Police générale */
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* ====== BARRE DE NAVIGATION ====== */
  header {
    background: #222;       /* Couleur sombre pour la barre de nav */
    width: 100%;
    position: fixed;        /* fixée en haut */
    top: 0;
    left: 0;
    z-index: 99;            /* au-dessus du contenu */
  }
  
  header nav ul {
    list-style: none;
    display: table;
    margin: 0 auto;         /* centré horizontalement */
    padding: 0;
    text-align: center;
  }
  
  header nav ul li {
    display: table-cell;
    position: relative;
    padding: 10px 0;
  }
  
  header nav ul li a {
    color: #fff;            /* Texte en blanc sur fond sombre */
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.15em;
  
    display: inline-block;
    padding: 15px 20px;
    position: relative;
    transition: color 0.2s ease;
  }
  
  /* Effet de soulignement dynamique */
  header nav ul li a::after {
    content: "";
    position: absolute;
    background: #fff;
    height: 2px;
    width: 0;
    left: 50%;
    bottom: 0;
    transition: width 0.3s ease, left 0.3s ease;
  }
  
  header nav ul li a:hover::after {
    width: 100%;
    left: 0;
  }
  
  /* Évite que le contenu soit caché par la barre fixe */
  body {
    padding-top: 60px;
  }
  
  /* ====== SECTIONS (BLOCS) ====== */
  section {
    background: #fff;               /* Blocs en fond blanc */
    max-width: 800px;
    margin: 2rem auto;             /* centré, espace vertical */
    padding: 2rem;
    color: #333;
    border-radius: 5px;            /* arrondi léger */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* ombre légère */
  }
  
  /* Centrer le titre principal (ex: "Mes Projets") */
  h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
  }
  
  /* On peut laisser h2 et h3 à gauche, ou les centrer aussi si tu veux */
  h2, h3 {
    margin-bottom: 1rem;
    /* h2, h3 { text-align: center; } si tu veux tout centré */
  }
  
  /* Liens PDF à l'intérieur des sections */
  section ul {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem; /* un léger décalage pour les puces */
  }
  
  section ul li {
    margin: 0.5rem 0;
  }
  
  section ul li a {
    color: #0066cc;      /* Un bleu plus voyant pour tes PDF */
    text-decoration: underline;
    transition: color 0.2s ease;
  }
  
  section ul li a:hover {
    color: #004999;      /* Couleur foncée au survol */
  }
  
  /* ====== FOOTER ====== */
  footer {
    background: #222;
    color: #fff;
    padding: 1rem;
    text-align: center;
    margin-top: 2rem;     /* un peu d'espace avant le footer */
  }

  .doc-list {
    display: flex;
    gap: 1.5rem;           /* espace horizontal entre les cartes */
    flex-wrap: wrap;       /* si l'écran est petit, ça passe à la ligne */
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
  
  .doc-item {
    background: #fff;      /* fond blanc (ou autre couleur) */
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 1rem;
    flex: 1 1 30%;         /* chaque carte fait ~30% de la largeur (à adapter) */
    min-width: 200px;
    text-align: center;    /* tout centrer à l'intérieur */
  }
  
  .doc-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
  }
  
  .doc-item a {
    display: inline-block;
    margin-top: 0.5rem;
    color: #007acc;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #007acc;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    transition: 0.2s;
  }
  
  .doc-item a:hover {
    background: #007acc;
    color: #fff;
  }
  
  /* .pdf-preview, si besoin, tu peux ajuster l’affichage */
  .pdf-preview {
    margin-top: 2rem;
    text-align: center; /* si tu veux centrer l’embed */
  }
  .pdf-preview embed {
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  .sub-section {
    background: #fff;       /* ou autre couleur */
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  .sub-section h4 {
    margin-bottom: 0.5rem;
    color: #333;
  }
  
  
  
