/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.4;
    background-color: #f4f4f4;
  }
  
  a {
    text-decoration: none;
  }

a:hover {
    text-decoration: none;
    color: #6c63ff;
}

  /* ===== En-tête et navigation principale ===== */
  :root {
    --edujob-bleu: #006699;
    --edujob-bleu-fonce: #004d73;
  }

  .site-header {
    width: 100%;
    border-bottom: 3px solid var(--edujob-bleu);
    background-color: #fff;
    text-align: left;
    padding: 0;
    position: relative;
  }

  .top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 1rem;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .site-header .logo {
    text-decoration: none;
    color: var(--edujob-bleu);
    display: flex;
    flex-direction: column;
    font-size: inherit;
    font-weight: normal;
  }

  .logo-title {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
  }

  .logo-subtitle {
    font-size: 1.1rem;
    color: #666;
  }

  .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .compte-zone {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
  }

  .btn-connexion {
    display: inline-block;
    background-color: var(--edujob-bleu);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
    transition: background-color 0.2s;
  }

  .btn-connexion:hover {
    background-color: var(--edujob-bleu-fonce);
    color: #fff;
  }

  .btn-connexion-secondaire {
    background-color: #eee;
    color: #333;
  }

  .btn-connexion-secondaire:hover {
    background-color: #ddd;
    color: #333;
  }

  /* ===== Boutons réseaux sociaux (sidebar) ===== */
  .reseaux-sociaux {
    margin-top: 1.5rem;
  }

  .reseaux-liens {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .reseau-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 9px 14px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: filter 0.2s;
  }

  .reseau-btn:hover {
    color: #fff;
    filter: brightness(0.92);
  }

  .reseau-btn svg {
    flex-shrink: 0;
  }

  .reseau-whatsapp {
    background-color: #25D366;
  }

  .reseau-facebook {
    background-color: #1877F2;
  }

  .burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }

  .burger-btn span {
    display: block;
    width: 22px;
    height: 3px;
    background-color: var(--edujob-bleu);
  }

  .main-nav {
    background-color: var(--edujob-bleu);
  }

  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-item {
    position: relative;
    margin: 0;
  }

  .nav-link {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s;
  }

  .nav-link .chevron {
    font-size: 0.75rem;
    margin-left: 4px;
  }

  .nav-item:hover .nav-link,
  .nav-item.open .nav-link {
    background-color: var(--edujob-bleu-fonce);
  }

  .sticky .main-nav {
    background-color: #db4f4f;
  }

  /* Méga-menu déroulant */
  .mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 420px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-top: 2px solid var(--edujob-bleu);
    padding: 20px;
    z-index: 100;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
  }

  .mega-col h4 {
    color: var(--edujob-bleu);
    font-size: 0.9rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
  }

  .mega-col a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 5px 0;
  }

  .mega-col a:hover {
    color: var(--edujob-bleu);
    text-decoration: underline;
  }

  .dropdown:hover .mega-menu,
  .dropdown.open .mega-menu {
    display: grid;
  }

  .nav-compte-mobile {
    display: none;
  }

  .banner {
    background-color: #c5ddec;
    background-image: url('images/design/baniere_edodjob.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    aspect-ratio: 2000 / 528; /* ratio réel de la bannière : s'affiche donc en entier, sans rognage ni déformation */
    width: 100%;
  }
  .banner p{
    text-align: center;
  }
  
  .main-content {
    display: flex;
    padding: 1rem;
  }
  
  .articles {
    flex: 3;
 
  }
  /* Exemple de style global pour h1 */
  h1 {
    font-size: 1.8em; 
}
p {
font-size: 1em;
text-align: justify;
}

  .articles h2 {
    color: #333;
  }
  .articles h2 a {
    font-size: 0.8em;
    line-height: 1.1;
  }
  
  .category {
    margin-bottom: 2rem;
  }
  
  .category h3 {
    max-width: 100%;
    background-color: #333;
    color: #fff;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .grid-item {
    background-color: #fff;
    padding: 1rem;
    border: 1px solid #ddd;
    text-align: left;
  }

  .cv-carte-lien {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
  }

  .cv-carte-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eee;
  }

  .cv-carte-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .cv-carte-info strong {
    color: #1a1a1a;
  }

  .cv-carte-titre {
    color: #555;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .sidebar {
    flex: 1;
    background-color: #c5ddec;
    padding: 1rem;
    margin-left: 10px;

  }
  
  .sidebar h3 {
    margin-bottom: 1rem;
    color: #333;
  }
  .sidebar h2 {
    background-color: #7c104f;
    color: white;
    text-align: center;
    font-size: 1em;
    margin-bottom: 0.5em;
    padding: 0.3em;
  }

  .search-form input[type="text"] {
    width: calc(100% - 22px);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .search-form button {
    width: 100%;
    padding: 0.5rem;
    background-color: #333;
    color: #fff;
    border: none;
  }
  
  .sidebar h4 {
    margin-top: 1rem;
  }
  
  .sidebar ul {
    list-style: none;
  }
  
  .sidebar ul li {
    margin-bottom: 0.5rem;
  }
  
  .sidebar ul li a {
    text-decoration: none;
    color: #007bff;
  }
  
  .sidebar ul li a:hover {
    text-decoration: underline;
  }
  
 /* Styles de base pour le footer */
.footer {
        display: flex;
        justify-content: space-between; /* Espace entre les divs */
        border-top: 1px solid #ddd;
        background-color: #c5ddec;
        padding: 1rem;
        border-left: 1px solid #ddd;
        margin-left: 1rem;
        }
.footer div {
       flex: 1; /* Chaque div prend une largeur égale */
        margin: 0 10px; /* Espacement horizontal entre les divs */

        }
.footer ul {
         list-style-type: none;
        }
.footer h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        }

  .liens  a {
    margin-right:20px;
    text-decoration: none;
    font-weight: bold;
    color: skyblue;
  }
  .liens  a:hover {
    text-decoration: underline;
    font-weight: 900;
  }

  .fancy-hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, #f00, #0f0, #00f);
    margin: 20px 0;
}

form {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

fieldset {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 20px;
}

legend {
  font-size: 1.2em;
  font-weight: bold;
  padding: 0 10px;
  background-color: #007bff;
  color: #fff;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #0056b3;
}

.error-message {
  color: red;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

/* ===== Messagerie (front office) — même présentation que la messagerie admin ===== */
.puce-non-lu {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 0.75em;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 4px;
  font-weight: bold;
}

/* Onglets (Messages reçus / Messages envoyés, filtres Tous / Non lus / Lus) */
.filtres-statut {
  margin-bottom: 10px;
}

.filtres-statut a {
  display: inline-block;
  padding: 6px 12px;
  margin-right: 6px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: #eee;
  color: #333;
  text-decoration: none;
}

.filtres-statut a.filtre-actif,
.filtres-statut a.actif {
  background: var(--edujob-bleu);
  color: #fff;
}

/* Bandeau d'information (ex : confirmation d'action) */
.msg-info {
  padding: 10px 15px;
  background: #eef6fb;
  border-left: 5px solid var(--edujob-bleu);
  margin-bottom: 15px;
}

/* Bandeau d'avertissement (ex : compte entreprise en attente de validation) */
.alerte-attente {
  padding: 12px 16px;
  background: #fff8e6;
  border-left: 5px solid #e6a700;
  color: #6b4e00;
  margin: 15px 0;
  border-radius: 4px;
}

/* Tableau de messagerie : même habillage propre que côté administration */
.table-messagerie {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  background-color: #fff;
  margin: 1rem 0 1.5rem 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: 0.92em;
}

.table-messagerie th,
.table-messagerie td {
  border: 0;
  border-bottom: 1px solid #eee;
  padding: 10px 14px;
  text-align: left;
  vertical-align: middle;
}

.table-messagerie th {
  background-color: var(--edujob-bleu);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8em;
  letter-spacing: 0.03em;
}

.table-messagerie tbody tr:hover {
  background-color: #f5f7fa;
}

.table-messagerie tbody tr:last-child td {
  border-bottom: none;
}

.table-messagerie td a {
  color: var(--edujob-bleu);
  font-weight: 600;
  text-decoration: none;
}

.table-messagerie td a:hover {
  text-decoration: underline;
}

.table-messagerie tr.non-lu {
  font-weight: bold;
  background-color: #fdf6ec;
}




  /* Media Queries */
  @media (max-width: 768px) {
    nav ul {
      flex-direction: column;
    }
  
    .main-content {
      flex-direction: column;
    }
  
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
 .footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
 }
    .sidebar {
      margin-left: 0;
      margin-top: 2rem;
      border-left: none;
      border-top: 1px solid #ddd;
    }

    /* En-tête et méga-menu en mode mobile */
    .top-bar-content {
      flex-wrap: nowrap;
    }

    .top-bar-right {
      gap: 0.6rem;
    }

    .compte-zone {
      display: none; /* Repris dans le menu déroulant mobile, voir burger */
    }

    .burger-btn {
      display: flex;
    }

    .main-nav {
      display: none;
      width: 100%;
    }

    .main-nav.active {
      display: block;
    }

    .nav-list {
      flex-direction: column;
    }

    .nav-link {
      padding: 14px 1rem;
    }

    .mega-menu {
      position: static;
      width: 100%;
      min-width: 0;
      box-shadow: none;
      grid-template-columns: 1fr;
      background: #f4f6f8;
    }

    .dropdown:hover .mega-menu {
      display: none;
    }

    .dropdown.open .mega-menu {
      display: block;
    }

    .nav-compte-mobile {
      display: block;
      border-top: 1px solid rgba(255,255,255,0.25);
      margin-top: 6px;
      padding-top: 6px;
    }

    .nav-compte-mobile .nav-link {
      padding: 10px 1rem;
    }
  }

  /* Pour les très grands téléphones */
@media (max-width: 480px) {
    /* Styles pour les très grands téléphones */
    nav ul {
        flex-direction: column;
      }
    
      .main-content {
        flex-direction: column;
      }
    
      .grid-container {
       grid-template-columns: 1fr; /* 1 colonne pour les petits écrans */;
      }
  
      .sidebar {
        margin-left: 0;
        margin-top: 2rem;
        border-left: none;
        border-top: 1px solid #ddd;
      }
      
      .submenu {
        display: none; /* Masque le sous-menu sur les écrans de 768px ou moins */
      }

  }
  
    .cv-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .cv-item {
    background-color: #fff;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: left;
  }

  .cv-item-entete {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .cv-item-info h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #1a1a1a;
  }

  .cv-item-titre {
    margin: 0.2rem 0 0 0;
    color: #555;
    font-size: 0.9rem;
  }

  .cv-item-resume {
    color: #2c2c2c;
    margin: 0 0 1rem 0;
    line-height: 1.5;
  }

  .pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 2rem 0;
  }

  .pagination a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--edujob-bleu);
    text-decoration: none;
  }

  .pagination a:hover {
    background-color: var(--edujob-bleu);
    color: #fff;
  }

  /* ===== Pages de détail (CV, annonces freelance, annonces entreprises) ===== */
  .fiche-detail {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    color: #2c2c2c;
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .fiche-detail h1 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.9rem;
    border-bottom: 2px solid var(--edujob-bleu);
  }

  .fiche-meta {
    color: #666;
    font-size: 0.9rem;
    margin: -0.8rem 0 1.6rem 0;
  }

  .fiche-entete {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid #eee;
  }

  .fiche-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eee;
  }

  .fiche-nom {
    font-size: 1.15rem;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 0.35rem 0;
  }

  .fiche-contact {
    color: #444;
    font-size: 0.95rem;
    margin: 0;
  }

  .fiche-champ {
    margin-bottom: 1.6rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid #eee;
  }

  .fiche-champ:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .fiche-champ h2 {
    font-size: 1rem;
    color: var(--edujob-bleu);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.6rem 0;
  }

  .fiche-champ p {
    margin: 0;
    color: #2c2c2c;
  }

  .fiche-info-ligne {
    display: flex;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f2f2f2;
  }

  .fiche-info-ligne:last-child {
    border-bottom: none;
  }

  .fiche-info-label {
    font-weight: 600;
    color: #555;
    min-width: 160px;
    flex-shrink: 0;
  }

  .fiche-info-valeur {
    color: #2c2c2c;
  }

  .fiche-contenu-article {
    color: #2c2c2c;
  }

  .fiche-contenu-article img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
  }

  .fiche-contenu-article p {
    margin: 0 0 1rem 0;
  }

  @media (max-width: 600px) {
    .fiche-detail {
      padding: 1.2rem;
    }

    .fiche-entete {
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
    }

    .fiche-info-ligne {
      flex-direction: column;
      gap: 0.15rem;
    }

    .fiche-info-label {
      min-width: 0;
    }
  }